Re: [csswg-drafts] [css-syntax] Consider disallowing NULL code points in stylesheets

Yes, both of those examples are showing between-rules NULL; the first gloms into the second selector and invalidates it, the second is in a comment and does nothing.

```html
<!doctype html>
<style id="s">
</style>
<div>Which color?</div>
<script>
  s.innerHTML = "div { color: green; } div { color: red\0 }";
</script>
```

Shows green in Chrome, but iirc (can't test at the moment) it shows red in Firefox.

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

Received on Monday, 11 June 2018 23:18:53 UTC