mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Update web-platform-tests to revision b'b728032f59a396243864b0f8584e7211e3632005'
This commit is contained in:
parent
ace9b32b1c
commit
df68c4e5d1
15632 changed files with 514865 additions and 155000 deletions
|
@ -7,19 +7,20 @@
|
|||
<link rel="help" href="https://dvcs.w3.org/hg/innerhtml/raw-file/tip/index.html#widl-Element-outerHTML">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="../html-element-list.js"></script>
|
||||
<script src="../../resources/common.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
test(function() {
|
||||
elements_with_end_tag.forEach(function(ele) {
|
||||
const non_void_elements = HTML5_ELEMENTS.filter(el => !HTML5_VOID_ELEMENTS.includes(el));
|
||||
non_void_elements.forEach(function(ele) {
|
||||
test(function() {
|
||||
var e = document.createElement(ele);
|
||||
assert_equals(e.outerHTML, "<" + ele + "></" + ele + ">", ele + " node created." );
|
||||
}, "Node for " + ele);
|
||||
});
|
||||
elements_without_end_tag.forEach(function(ele) {
|
||||
HTML5_VOID_ELEMENTS.forEach(function(ele) {
|
||||
test(function() {
|
||||
var e = document.createElement(ele);
|
||||
assert_equals(e.outerHTML, "<" + ele + ">", ele + " node created." );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue