Skip to content

Commit

Permalink
Parser: handle template attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Parnassius committed Dec 2, 2023
1 parent 3dbf647 commit b6f871a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion spec_parser/spec_parser/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,12 @@ def _get_attributes(self) -> None:
):
continue

if element.string == "bdo" and attribute == "dir":
if element.string == "template" and attribute in (
"shadowrootmode",
"shadowrootdelegatesfocus",
):
pass
elif element.string == "bdo" and attribute == "dir":
# Global attribute with different semantics
pass
else:
Expand Down

0 comments on commit b6f871a

Please sign in to comment.