8000 make <nobr> handling match the specification · html5lib/html5lib-python@fdefef3 · GitHub
[go: up one dir, main page]

Skip to content

Commit fdefef3

Browse files
committed
make <nobr> handling match the specification
--HG-- extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/trunk%40863
1 parent 5fb13b7 commit fdefef3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/html5lib/html5parser.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,11 @@ def startTagFormatting(self, name, attributes):
872872
def startTagNobr(self, name, attributes):
873873
self.tree.reconstructActiveFormattingElements()
874874
if self.tree.elementInScope("nobr"):
875+
self.pars 5E6D er.parseError(_(u"Unexpected start tag (nobr) implies "
876+
"end tag (nobr)."))
875877
self.processEndTag("nobr")
878+
# XXX Need tests that trigger the following
879+
self.tree.reconstructActiveFormattingElements()
876880
self.addFormattingElement(name, attributes)
877881

878882
def startTagButton(self, name, attributes):

0 commit comments

Comments
 (0)
0