Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 1221a95

Browse files
author
James Graham
committed
Remove more dead code
1 parent 159cfe1 commit 1221a95

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

html5lib/html5parser.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1609,15 +1609,6 @@ def clearStackToTableContext(self):
16091609
self.tree.openElements.pop()
16101610
# When the current node is <html> it's an innerHTML case
16111611

1612-
def getCurrentTable(self):
1613-
i = -1
1614-
while -i <= len(self.tree.openElements) and self.tree.openElements[i].name != "table":
1615-
i -= 1
1616-
if -i > len(self.tree.openElements):
1617-
return self.tree.openElements[0]
1618-
else:
1619-
return self.tree.openElements[i]
1620-
16211612
# processing methods
16221613
def processEOF(self):
16231614
if self.tree.openElements[-1].name != "html":
@@ -1690,8 +1681,6 @@ def startTagForm(self, token):
16901681

16911682
def startTagOther(self, token):
16921683
self.parser.parseError("unexpected-start-tag-implies-table-voodoo", {"name": token["name"]})
1693-
if "tainted" not in self.getCurrentTable()._flags:
1694-
self.getCurrentTable()._flags.append("tainted")
16951684
# Do the table magic!
16961685
self.tree.insertFromTable = True
16971686
self.parser.phases["inBody"].processStartTag(token)
@@ -1718,8 +1707,6 @@ def endTagIgnore(self, token):
17181707

17191708
def endTagOther(self, token):
17201709
self.parser.parseError("unexpected-end-tag-implies-table-voodoo", {"name": token["name"]})
1721-
if "tainted" not in self.getCurrentTable()._flags:
1722-
self.getCurrentTable()._flags.append("tainted")
17231710
# Do the table magic!
17241711
self.tree.insertFromTable = True
17251712
self.parser.phases["inBody"].processEndTag(token)

0 commit comments

Comments
 (0)