You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FWIW, while I appreciate the sentiment, I don't think this is doable. This would add massive complexity and doesn't really buy us much. It would mostly lead to slower code.
clelland
transferred this issue from w3c/webappsec-permissions-policy
Dec 1, 2020
Currently DOM permits a lot of trees that couldn't be represented in HTML or are semantically invalid.
For example this tree couldn't be represented in HTML but can be constructed in DOM anyway:
Another example is this tree that can be represented in HTML but could break accessibility:
I propose a feature policy
well-formed-dom
that fails to construct DOM if it would break the content model specified by HTML.The text was updated successfully, but these errors were encountered: