Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upImplement <template> #7531
Implement <template> #7531
Conversation
|
Cc @Manishearth |
|
I fixed the innerHTML bugs following w3c/DOM-Parsing#1. |
|
r? @jdm |
|
Reviewed 2 of 2 files at r1, 19 of 19 files at r2, 15 of 15 files at r3, 9 of 12 files at r4. components/script/dom/htmltemplateelement.rs, line 57 [r3] (raw file): var doc1, doc2;
var templateA = doc1.createElement("template");
var templateB = doc1.createElement("template");
doc2.adoptNode(templateA)
assert_equals(templateA.content.ownerDocument, templateB.content.ownerDocument);and I suspect there's a bug with the temporary document used for fragment parsing too. Oh, hm, the spec handles this. components/script/dom/htmltemplateelement.rs, line 72 [r4] (raw file): components/script/dom/node.rs, line 1426 [r1] (raw file): Comments from the review on Reviewable.io |
|
@Ms2ger I put back the merged loops in Node::adopt(), because that's how I specified how adopting steps should be run in whatwg/dom#66. If you really want me to split them, and I don't think it's necessary given there is only one use of them in HTML for template, I would like the spec to be changed to two loops first. |
|
I do really want you to split them. |
|
@Ms2ger Done and reported upstream. whatwg/dom#71 |
|
@Ms2ger I find that quite pointless though, bind_to_tree and unbind_to_tree do the exact same thing. |
|
You didn't split them. -S-awaiting-review +S-needs-code-changes Reviewed 3 of 12 files at r4, 3 of 3 files at r5. Comments from the review on Reviewable.io |
|
|
Implement <template> All tests using iframes can't currently pass, same for innerHTML-related tests with <template> elements. The latter contradicts the spec, see the links below. Apart from this, they work, AFAICT. servo/html5ever#164 https://www.w3.org/Bugs/Public/show_bug.cgi?id=27314 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7531) <!-- Reviewable:end -->
|
|
The failing <img> test comes from the now-correct parsing of <font face> elements in SVG.
HTMLDocument isn't a thing anymore.
|
@bors-servo r=Ms2ger Fixed test expectations. |
|
|
Implement <template> All tests using iframes can't currently pass, same for innerHTML-related tests with <template> elements. The latter contradicts the spec, see the links below. Apart from this, they work, AFAICT. servo/html5ever#164 https://www.w3.org/Bugs/Public/show_bug.cgi?id=27314 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7531) <!-- Reviewable:end -->
|
|
|
@bors-servo retry |
|
|
|
|
nox commentedSep 3, 2015
All tests using iframes can't currently pass, same for innerHTML-related tests with elements. The latter contradicts the spec, see the links below.
Apart from this, they work, AFAICT.
servo/html5ever#164
https://www.w3.org/Bugs/Public/show_bug.cgi?id=27314