We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8af2aa commit 8597a27Copy full SHA for 8597a27
html5lib/html5parser.py
@@ -1220,7 +1220,7 @@ def startTagRawtext(self, token):
1220
self.parser.parseRCDataRawtext(token, "RAWTEXT")
1221
1222
def startTagOpt(self, token):
1223
- if self.tree.elementInScope("option"):
+ if self.tree.openElements[-1].name == "option":
1224
self.parser.phase.processEndTag(impliedTagToken("option"))
1225
self.tree.reconstructActiveFormattingElements()
1226
self.parser.tree.insertElement(token)
0 commit comments