Skip to content

Commit d7c0a1a

Browse files
committed
Fix spelling mistakes in parse errors.
Done at the prompting of Google Code #216, so thanks to the Dart porters!
1 parent 17f9dba commit d7c0a1a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

html5lib/constants.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"eof-in-attribute-name":
5757
_("Unexpected end of file in attribute name."),
5858
"invalid-character-in-attribute-name":
59-
_("Invalid chracter in attribute name"),
59+
_("Invalid character in attribute name"),
6060
"duplicate-attribute":
6161
_("Dropped duplicate attribute on tag."),
6262
"expected-end-of-tag-name-but-got-eof":
@@ -81,7 +81,7 @@
8181
_("Unexpected end of file in attribute value."),
8282
"unexpected-EOF-after-solidus-in-tag":
8383
_("Unexpected end of file in tag. Expected >"),
84-
"unexpected-character-after-soldius-in-tag":
84+
"unexpected-character-after-solidus-in-tag":
8585
_("Unexpected character after / in tag. Expected >"),
8686
"expected-dashes-or-doctype":
8787
_("Expected '--' or 'DOCTYPE'. Not found."),
@@ -236,7 +236,7 @@
236236
_("Unexpected end tag token (%(name)s)"
237237
" in the after body phase."),
238238
"unexpected-char-in-frameset":
239-
_("Unepxected characters in the frameset phase. Characters ignored."),
239+
_("Unexpected characters in the frameset phase. Characters ignored."),
240240
"unexpected-start-tag-in-frameset":
241241
_("Unexpected start tag token (%(name)s)"
242242
" in the frameset phase. Ignored."),

html5lib/tokenizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1097,7 +1097,7 @@ def selfClosingStartTagState(self):
10971097
self.state = self.dataState
10981098
else:
10991099
self.tokenQueue.append({"type": tokenTypes["ParseError"], "data":
1100-
"unexpected-character-after-soldius-in-tag"})
1100+
"unexpected-character-after-solidus-in-tag"})
11011101
self.stream.unget(data)
11021102
self.state = self.beforeAttributeNameState
11031103
return True

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