Skip to content

Commit 36f73ec

Browse files
committed
Pass all tree construction tests on this branch except whitespace-in-table tests
1 parent 83b78fd commit 36f73ec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/html5lib/html5parser.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -849,8 +849,8 @@ def __init__(self, parser, tree):
849849
("plaintext",self.startTagPlaintext),
850850
(headingElements, self.startTagHeading),
851851
("a", self.startTagA),
852-
(("b", "big", "em", "font", "i", "s", "small", "strike", "strong",
853-
"tt", "u"),self.startTagFormatting),
852+
(("b", "big", "code", "em", "font", "i", "s", "small", "strike",
853+
"strong", "tt", "u"),self.startTagFormatting),
854854
("nobr", self.startTagNobr),
855855
("button", self.startTagButton),
856856
(("applet", "marquee", "object"), self.startTagAppletMarqueeObject),
@@ -887,7 +887,7 @@ def __init__(self, parser, tree):
887887
("p",self.endTagP),
888888
(("dd", "dt", "li"), self.endTagListItem),
889889
(headingElements, self.endTagHeading),
890-
(("a", "b", "big", "em", "font", "i", "nobr", "s", "small",
890+
(("a", "b", "big", "code", "em", "font", "i", "nobr", "s", "small",
891891
"strike", "strong", "tt", "u"), self.endTagFormatting),
892892
(("applet", "button", "marquee", "object"), self.endTagAppletButtonMarqueeObject),
893893
("br", self.endTagBr),

0 commit comments

Comments
 (0)