Skip to content

Commit 8597a27

Browse files
author
James Graham
committed
Change option parsing spec rev ]5488
1 parent e8af2aa commit 8597a27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

html5lib/html5parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1220,7 +1220,7 @@ def startTagRawtext(self, token):
12201220
self.parser.parseRCDataRawtext(token, "RAWTEXT")
12211221

12221222
def startTagOpt(self, token):
1223-
if self.tree.elementInScope("option"):
1223+
if self.tree.openElements[-1].name == "option":
12241224
self.parser.phase.processEndTag(impliedTagToken("option"))
12251225
self.tree.reconstructActiveFormattingElements()
12261226
self.parser.tree.insertElement(token)

0 commit comments

Comments
 (0)