Skip to content

Commit cc9f28a

Browse files
kovidgoyalgsnedders
authored andcommitted
oops
1 parent 64e8b0b commit cc9f28a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

html5lib/treebuilders/_base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,8 @@ def apply_html_attributes(self, attrs):
276276

277277
def apply_body_attributes(self, attrs):
278278
for attr, value in attrs.items():
279-
if attr not in self.tree.openElements[1].attributes:
280-
self.tree.openElements[1].attributes[attr] = value
279+
if attr not in self.openElements[1].attributes:
280+
self.openElements[1].attributes[attr] = value
281281

282282
def _getInsertFromTable(self):
283283
return self._insertFromTable

0 commit comments

Comments
 (0)