mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Update web-platform-tests and CSS tests.
- Update CSS tests to revision e05bfd5e30ed662c2f8a353577003f8eed230180. - Update web-platform-tests to revision a052787dd5c069a340031011196b73affbd68cd9.
This commit is contained in:
parent
fb4f421c8b
commit
296fa2512b
21852 changed files with 2080936 additions and 892894 deletions
|
@ -1,5 +1,6 @@
|
|||
var namespaces = {
|
||||
"html":"http://www.w3.org/1999/xhtml",
|
||||
"math":"http://www.w3.org/1998/Math/MathML",
|
||||
"mathml":"http://www.w3.org/1998/Math/MathML",
|
||||
"svg":"http://www.w3.org/2000/svg",
|
||||
"xlink":"http://www.w3.org/1999/xlink",
|
||||
|
@ -94,6 +95,18 @@ function test_serializer(element) {
|
|||
lines.push(format("|%s%s=\"%s\"", indent_spaces, attr[0], attr[1]));
|
||||
}
|
||||
);
|
||||
if ("HTMLTemplateElement" in window &&
|
||||
Object.prototype.toString.call(element) === "[object HTMLTemplateElement]") {
|
||||
indent += 2;
|
||||
indent_spaces = (new Array(indent)).join(" ");
|
||||
lines.push(format("|%scontent", indent_spaces));
|
||||
indent += 2;
|
||||
Array.prototype.forEach.call(element.content.childNodes,
|
||||
function(node) {
|
||||
serialize_element(node, indent);
|
||||
});
|
||||
indent -= 4;
|
||||
}
|
||||
break;
|
||||
}
|
||||
indent += 2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue