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

```html
<!DOCTYPE html>
<style>*{}</style>
<script>document.styleSheets[0].cssRules[0].insertRule("a{}", 0);</script>
```

> Uncaught DOMException: Failed to execute 'insertRule' on 'CSSStyleRule': the rule 'a{}' is invalid and cannot be parsed.

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


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

Received on Wednesday, 22 February 2023 12:52:22 UTC