Skip to content

Commit 95e8f9a

Browse files
author
James Graham
committed
Update list of possible errors
1 parent 959db30 commit 95e8f9a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

html5lib/constants.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939
_(u"Named entity expected. Got none."),
4040
"attributes-in-end-tag":
4141
_(u"End tag contains unexpected attributes."),
42+
'self-closing-flag-on-end-tag':
43+
_(u"End tag contains unexpected self-closing flag."),
4244
"expected-tag-name-but-got-right-bracket":
4345
_(u"Expected tag name. Got '>' instead."),
4446
"expected-tag-name-but-got-question-mark":
@@ -68,6 +70,10 @@
6870
_(u"Unexpected end of file. Expected attribute value."),
6971
"expected-attribute-value-but-got-right-bracket":
7072
_(u"Expected attribute value. Got '>' instead."),
73+
'equals-in-unquoted-attribute-value':
74+
_(u"Unexpected = in unquoted attribute"),
75+
'unexpected-character-in-unquoted-attribute-value':
76+
_(u"Unexpected character in unquoted attribute"),
7177
"eof-in-attribute-value-double-quote":
7278
_(u"Unexpected end of file in attribute value (\")."),
7379
"eof-in-attribute-value-single-quote":
@@ -80,6 +86,10 @@
8086
_(u"Unexpected character after / in tag. Expected >"),
8187
"expected-dashes-or-doctype":
8288
_(u"Expected '--' or 'DOCTYPE'. Not found."),
89+
"unexpected-bang-after-double-dash-in-comment":
90+
_(u"Unexpected ! after -- in comment"),
91+
"unexpected-space-after-double-dash-in-comment":
92+
_(u"Unexpected space after -- in comment"),
8393
"incorrect-comment":
8494
_(u"Incorrect comment."),
8595
"eof-in-comment":

0 commit comments

Comments
 (0)