Skip to content

Commit f21a519

Browse files
author
James Graham
committed
Fix in select logic
1 parent e229566 commit f21a519

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

html5lib/html5parser.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2220,10 +2220,11 @@ def startTagSelect(self, token):
22202220

22212221
def startTagInput(self, token):
22222222
self.parser.parseError("unexpected-input-in-select")
2223-
if not self.tree.elementInScope("select", variant="select"):
2224-
assert self.parser.innerHTML
2223+
if self.tree.elementInScope("select", variant="select"):
22252224
self.endTagSelect(impliedTagToken("select"))
22262225
return token
2226+
else:
2227+
assert self.parser.innerHTML
22272228

22282229
def startTagScript(self, token):
22292230
return self.parser.phases["inHead"].processStartTag(token)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy