Skip to content

Navigation Menu

Sign in
Sign up

Ignore inputs inside a select fragment context. #120

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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
View file Open in desktop
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

AltStyle によって変換されたページ (->オリジナル) /