Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement <template> #7531

Merged
merged 6 commits into from Sep 8, 2015
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Enable template tests

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.

servo/html5ever#164
w3c/DOM-Parsing#1
  • Loading branch information
nox committed Sep 8, 2015
commit 880364b56dc60a08c122bb62bdbc1d99e4c9ae4d

This file was deleted.

@@ -0,0 +1,11 @@
[template-clone-children.html]
type: testharness
[Clone template node. Test call to cloneNode(true)]
expected: FAIL

[Clone template node. Test call to cloneNode() with the default parameter (false by default)]
expected: FAIL

[Clone template node. Test call to cloneNode(false)]
expected: FAIL

@@ -0,0 +1,3 @@
[templates-copy-document-owner.html]
type: testharness
expected: CRASH
@@ -0,0 +1,14 @@
[template-contents-owner-document-type.html]
type: testharness
[The template contents owner document type is HTML document (case when document has browsing context and the template is created by HTML parser)]
expected: FAIL

[The template contents owner document type is HTML document (case when document has browsing context and the template is created by createElement())]
expected: FAIL

[The template contents owner document type is HTML document (case when document has no browsing context and the template is created by createElement())]
expected: FAIL

[The template contents owner document type is HTML document (case when document has no browsing context and the template is created via innerHTML)]
expected: FAIL

@@ -0,0 +1,8 @@
[template-contents-owner-test-001.html]
type: testharness
[Test the template contents owner document when enclosing document has no browsing content. Template element is created by createElement()]
expected: FAIL

[Test the template contents owner document when enclosing document has no browsing content. Template element is created by innerHTML]
expected: FAIL

@@ -0,0 +1,11 @@
[template-contents-owner-test-002.html]
type: testharness
[The template contents owner document must be different from template owner document, which has browsing context. Template element is created by createElement()]
expected: FAIL

[The template contents owner document must be different from template owner document, which has browsing context. Template element is created via innerHTML]
expected: FAIL

[The template contents owner document must be different from template owner document, which has browsing context. Template element is created by HTML parser]
expected: FAIL

@@ -0,0 +1,3 @@
[template-contents.html]
type: testharness
expected: CRASH
@@ -0,0 +1,11 @@
[innerhtml.html]
type: testharness
[innerHTML of template element replaces all referenced by the content attribute]
expected: FAIL

[innerHTML of template element replaces all referenced by the content attribute. Test nested template]
expected: FAIL

[innerHTML of template element replaces all referenced by the content attribute. Test loading of HTML document from a file]
expected: FAIL

@@ -0,0 +1,11 @@
[outerhtml.html]
type: testharness
[Template contents should be serialized instead of template element if serializing template element]
expected: FAIL

[Template contents should be serialized instead of template element if serializing template element. Test nested template]
expected: FAIL

[Template contents should be serialized instead of template element if serializing template element. Test serializing whole document]
expected: FAIL

@@ -0,0 +1,23 @@
[content-attribute.html]
type: testharness
[Content attribute of template element is read-only. Test empty template]
expected: FAIL

[Content attribute of template element is read-only. Test not empty template populated by appendchild()]
expected: FAIL

[Content attribute of template element is read-only. Test not empty template populated by innerHTML]
expected: FAIL

[Content attribute of template element is read-only. Test that custom content attribute named 'content' doesn't make content IDL attribute writable]
expected: FAIL
[Content attribute of template element is read-only. Test that custom content attribute named 'content' doesn't affect content IDL attribute]
expected: FAIL

[Content attribute of template element is read-only. Text value of content attribute of template tag should be ignored, when loading document from a file]
expected: FAIL

[Content attribute of template element is read-only. Test content attribute of a document loaded from a file]
expected: FAIL

@@ -0,0 +1,3 @@
[node-document-changes.html]
type: testharness
expected: CRASH
@@ -0,0 +1,8 @@
[template-as-a-descendant.html]
type: testharness
[Template element as a descendant of the FRAMESET element. Template element is created by innerHTML]
expected: FAIL

[Template element as an indirect descendant of the FRAMESET element. Template element is created by innerHTML]
expected: FAIL

@@ -0,0 +1,3 @@
[template-content-node-document.html]
type: testharness
expected: CRASH
@@ -0,0 +1,3 @@
[template-content.html]
type: testharness
expected: TIMEOUT
@@ -0,0 +1,5 @@
[template-descendant-body.html]
type: testharness
[Template element as a descendant of the body element. Test loading from a file]
expected: FAIL

@@ -0,0 +1,11 @@
[template-descendant-frameset.html]
type: testharness
[Template element as a descendant of the frameset element. Test loading from a file]
expected: FAIL

[Template element as a descendant of the frameset element. Test template element is assigned to frameset's innerHTML)]
expected: FAIL
[Template element as a descendant of the frameset element. Test template element appended to frameset by appendChild()]
expected: FAIL
@@ -0,0 +1,5 @@
[template-descendant-head.html]
type: testharness
[Template element as a descendant of the head element. Test loading from a file]
expected: FAIL

ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.