Skip to content

Commit 6603b37

Browse files
committed
remove check in startTagHtml because it's wrong. Leave it as an open issue for now
--HG-- extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/trunk%40358
1 parent 8f81243 commit 6603b37

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/parser.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -440,10 +440,8 @@ def processStartTag(self, name, attributes):
440440
self.startTagHandler[name](name, attributes)
441441

442442
def startTagHtml(self, name, attributes):
443-
if self.parser.openElements:
444-
# XXX Is this check right? Need to be sure there has _never_
445-
# been a HTML tag open
446-
self.parser.parseError()
443+
# XXX Need a check here to see if the first start tag token emitted is
444+
# this token... If it's not, invoke self.parser.parseError().
447445
for attr, value in attributes.iteritems():
448446
if attr not in self.parser.openElements[0].attributes:
449447
self.parser.openElements[0].attributes[attr] = value

0 commit comments

Comments
 (0)