Re: [csswg-drafts] [css-nesting-1] Need to specify error-handling when writing selectors via OM (#7971)

Gonna close this as fixed for now.

* the `selectorText` setter has been specified to "do nothing and return" if you try to set a nested rule's selector to something invalid (like it does with any other invalid selector)
* CSSOM already has a step in its "insert a CSS rule" algo that checks if inserting the rule would violate "a constraint imposed by CSS", so I just added a Note emphasizing that the selector syntax restriction on nested rules counts as such a constraint, so inserting a style rule into a nesting context with an invalid nesting selector will throw a HierarchyError.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7971#issuecomment-1439086355 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 21 February 2023 21:00:28 UTC