From 430b7c0c22dbc803ee06d13a5250a31b36fe9537 Mon Sep 17 00:00:00 2001 From: Parnassius Date: Mon, 1 Jan 2024 14:38:03 +0100 Subject: [PATCH] Parser: handle another attribute exception --- spec_parser/spec_parser/parser.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec_parser/spec_parser/parser.py b/spec_parser/spec_parser/parser.py index dda421d..4fdfbaf 100644 --- a/spec_parser/spec_parser/parser.py +++ b/spec_parser/spec_parser/parser.py @@ -87,6 +87,10 @@ def _get_attributes(self) -> None: "shadowrootdelegatesfocus", ): pass + elif ( + element.string == "body" and attribute == "onpagereveal" + ): + pass elif element.string == "bdo" and attribute == "dir": # Global attribute with different semantics pass