Emilio Cobos Álvarez

Results 777 comments of Emilio Cobos Álvarez

(That's what happens with `` as well, fwiw, you don't get a pointer-identical `CSSStyleSheet` either, as authors could mutate them independently)

What text should those stylesheets have? The serialized representation of their CSS rules? Or the original text that was passed to `replace()` / `replaceSync()`? Because for inline style you don't...

That diffing would need to be either precisely defined or not exist at all, because node identity is observable by JS.

It would not different to accessing the root node, but it can be `O(1)` rather that going through all the parents. I just got a case where I wanted to...

I guess `getRootNode()` would also work, kinda. You wouldn't have the "is a shadow root" check built-in but that seems acceptable.

The appveyor build failure doesn't seem caused by this change.

You could try with https://github.com/servo/rust-bindgen. I recently made a PR to freetype to do the same (avoiding manual bindings), so probably you could get inspired by the script in there:...

So to be clear the proposal is to only allow adopts from a document's own template-owner document right? Not between arbitrary template/document pairs. If so I think that should be...

What about `prependStyleSheet` / `appendStyleSheet` / `removeStyleSheet`? That makes the ordering explicit, and if you want something else you just go ahead and manipulate the list yourself.