mirror of
https://github.com/servo/servo.git
synced 2025-10-01 09:09:15 +01:00
Fix namespaces of elements created in XML documents
This commit is contained in:
parent
7ae9c96467
commit
bef86cbf36
5 changed files with 18 additions and 15 deletions
|
@ -25384,7 +25384,7 @@
|
|||
"testharness"
|
||||
],
|
||||
"mozilla/document_head.html": [
|
||||
"31892b141aba3b317502e38a4a38fcd8531cb8aa",
|
||||
"b861fe5a1159ba5fba44d3aee048cdb27d378be9",
|
||||
"testharness"
|
||||
],
|
||||
"mozilla/document_images_cache.html": [
|
||||
|
|
|
@ -13,8 +13,8 @@
|
|||
|
||||
test(function() {
|
||||
var new_document = new Document();
|
||||
new_document.appendChild(new_document.createElement("html"));
|
||||
var new_head = new_document.createElement("head");
|
||||
new_document.appendChild(new_document.createElementNS('http://www.w3.org/1999/xhtml', "html"));
|
||||
var new_head = new_document.createElementNS('http://www.w3.org/1999/xhtml', 'head');
|
||||
|
||||
assert_not_equals(new_head, null, "test2-0, append head to a new document");
|
||||
assert_true(new_head instanceof HTMLHeadElement, "test2-1, append head to a new document: should be HTMLHeadElement");
|
||||
|
@ -30,9 +30,9 @@
|
|||
|
||||
test(function() {
|
||||
var new_document = new Document();
|
||||
var html = new_document.createElement("html");
|
||||
var foo = new_document.createElement("foo");
|
||||
var head = new_document.createElement("head");
|
||||
var html = new_document.createElementNS('http://www.w3.org/1999/xhtml', "html");
|
||||
var foo = new_document.createElementNS('http://www.w3.org/1999/xhtml', "foo");
|
||||
var head = new_document.createElementNS('http://www.w3.org/1999/xhtml', "head");
|
||||
new_document.appendChild(html);
|
||||
html.appendChild(foo);
|
||||
foo.appendChild(head);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue