Skip to content

Commit 6c68e52

Browse files
committed
add a comment on where we differ from the current spec
--HG-- extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/trunk%40377
1 parent 0e8388b commit 6c68e52

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/parser.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
# Differences from the current specification (23 December 2006) are as follows:
2+
# * Phases and insertion modes are one concept in parser.py.
3+
# * EOF handling is slightly different to make sure <html>, <head> and <body>
4+
# always exist.
5+
# * We also deal with content when there's no DOCTYPE.
6+
# It is expected that the specification will catch up with us in due course ;-)
7+
#
8+
# It should be trivial to add the following cases. However, we should probably
9+
# also look into comment handling and such then...
10+
# * A <p> element end tag creates an empty <p> element when there's no <p>
11+
# element in scope.
12+
# * A <br> element end tag creates an empty <br> element.
13+
114
try:
215
frozenset
316
except NameError:

0 commit comments

Comments
 (0)