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

Seems like Gecko's been somewhat fixed since last time I tested. They used to truncate to "hello" for --a below:

```
<div id="a"></div>
<div id="b"></div>

<script type="text/javascript">
var css = document.createElement("style");
css.innerHTML = '* { --a: hello\0world; font-family: "foo\0test"; }';
document.body.appendChild(css);

a.innerHTML = getComputedStyle(document.body).getPropertyValue('--a');
b.innerHTML = getComputedStyle(document.body).getPropertyValue('font-family');
</script>
```

Gecko does not replace with a replacement character in custom idents, it seems.


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

Received on Tuesday, 12 June 2018 09:24:06 UTC