Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf8e251a

Browse files
committed
remove obsolete comment in tokenizer and add one in html5parser
--HG--extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/trunk%401022
1 parentb35cf3d commitf8e251a

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

‎src/html5lib/html5parser.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
# * Phases and insertion modes are one concept in parser.py.
33
# * EOF handling is slightly different to make sure <html>, <head> and <body>
44
# always exist.
5-
5+
# * We're not detecting all DOCTYPE modes yet
6+
#
7+
# XXXAvK: I think there are some other quirks, but it might make sense to
8+
# wait with fixing them until browsers start more seriously implementing the
9+
# HTML5 parsing algorithm.
610

711
try:
812
frozenset

‎src/html5lib/inputstream.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
fromcollectionsimportdeque
1111
exceptImportError:
1212
fromutilsimportdeque
13-
13+
1414
classHTMLInputStream(object):
1515
"""Provides a unicode stream of characters to the HTMLTokenizer.
1616

‎src/html5lib/tokenizer.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,6 @@ def consumeNumberEntity(self, isHex):
126126
If not present self.tokenQueue.append({"type": "ParseError"}) is invoked.
127127
"""
128128

129-
# XXX More need to be done here. For instance, #13 should prolly be
130-
# converted to #10 so we don't get \r (#13 is \r right?) in the DOM and
131-
# such. Thoughts on this appreciated.
132129
allowed=digits
133130
radix=10
134131
ifisHex:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp