Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/nu/validator/htmlparser/impl/TreeBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -2203,6 +2203,12 @@ public final void startTag(ElementName elementName,
case INPUT:
// https://html.spec.whatwg.org/multipage/parsing.html#parsing-main-inbody
// "A start tag whose tag name is "input""
// "If the parser was created as part of the HTML fragment
// parsing algorithm and the context element is a select element:"
if (fragment && "select" == contextName) {
errStartTagWithSelectOpen(name);
break starttagloop;
}
// "If the stack of open elements has a select element
// in scope:"
eltPos = findLastInScope("select");
Expand Down
Loading