Skip to content

Commit e98d0a1

Browse files
committed
add a newline to tests/README and start with inRow
--HG-- extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/trunk%40117
1 parent c9d5476 commit e98d0a1

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

parser.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1298,8 +1298,16 @@ def endTagOther(self, name):
12981298
self.parser.processEndTag(name)
12991299

13001300

1301-
class InRow(InsertionMode): pass
1302-
1301+
class InRow(InsertionMode):
1302+
# http://www.whatwg.org/specs/web-apps/current-work/#in-row
1303+
1304+
# helper methods (XXX unify this with other table helper methods)
1305+
def clearStackToTableBodyContext(self):
1306+
while self.parser.openElements[:-1].name in ("tr", "html"):
1307+
self.parser.openElements.pop()
1308+
self.parser.parseError()
1309+
1310+
# the rest
13031311

13041312
class InCell(InsertionMode): pass
13051313

tests/README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ The testcases require the use of simplejson
33
be run directly through a python interpreter (e.g. python
44
test_tokenizer.py). However the tests are designed to work with the
55
nose unit-test framework (http://nose.python-hosting.com). If nose is
6-
installed the command nosetests will run all avaliable unit tests.
6+
installed the command nosetests will run all avaliable unit tests.

0 commit comments

Comments
 (0)