We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e229566 commit f21a519Copy full SHA for f21a519
html5lib/html5parser.py
@@ -2220,10 +2220,11 @@ def startTagSelect(self, token):
2220
2221
def startTagInput(self, token):
2222
self.parser.parseError("unexpected-input-in-select")
2223
- if not self.tree.elementInScope("select", variant="select"):
2224
- assert self.parser.innerHTML
+ if self.tree.elementInScope("select", variant="select"):
2225
self.endTagSelect(impliedTagToken("select"))
2226
return token
+ else:
2227
+ assert self.parser.innerHTML
2228
2229
def startTagScript(self, token):
2230
return self.parser.phases["inHead"].processStartTag(token)
0 commit comments