Skip to content

Commit

Permalink
Fix invalid HTML: /> syntax on non-void elements
Browse files Browse the repository at this point in the history
  • Loading branch information
zcorpan authored Jun 12, 2023
1 parent 94b18d4 commit f620b1e
Show file tree
Hide file tree
Showing 57 changed files with 62 additions and 65 deletions.
2 changes: 1 addition & 1 deletion accessibility/crashtests/map-update-crash.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<img usemap="#map2">
<map id=map name="map2">
<command id=command>
<article id=article ></article>
<article id=article></article>
</command>
</map>
<script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
});

</script>
<iframe src="embedded-popup-expect-no-hints.html" />
<iframe src="embedded-popup-expect-no-hints.html"></iframe>
</body>
</html>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<script src='/resources/testharnessreport.js'></script>
</head>
<body>
<div id="log"/>
<div id="log"></div>
<script>
async_test(function(t) {
document.addEventListener("securitypolicyviolation", t.unreached_func("Loading allowed fonts should not trigger a violation."));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<script src='/resources/testharnessreport.js'></script>
</head>
<body>
<div id="log"/>
<div id="log"></div>
<script>
async_test(function(t) {
var link = document.createElement('link');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<script src='/resources/testharnessreport.js'></script>
</head>
<body>
<div id="log"/>
<div id="log"></div>
<script>
async_test(function(t) {
var link = document.createElement('link');
Expand Down
2 changes: 1 addition & 1 deletion content-security-policy/font-src/font-self-allowed.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<script src='/resources/testharnessreport.js'></script>
</head>
<body>
<div id="log"/>
<div id="log"></div>
<script>
async_test(function(t) {
document.addEventListener("securitypolicyviolation", t.unreached_func("Loading allowed fonts should not trigger a violation."));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<script src='/resources/testharnessreport.js'></script>
</head>
<body>
<div id="log"/>
<div id="log"></div>
<script>
async_test(function(t) {
var link = document.createElement('link');
Expand Down
2 changes: 1 addition & 1 deletion content-security-policy/img-src/img-src-4_1.sub.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<script src='/resources/testharnessreport.js'></script>
</head>
<body>
<div id='log'/>
<div id='log'></div>

<script>
async_test(function(t) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<script src='/resources/testharnessreport.js'></script>
</head>
<body>
<div id='log'/>
<div id='log'></div>

<script>
var t1 = async_test("img src does not match full host and wildcard csp directive");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<script src='/resources/testharnessreport.js'></script>
</head>
<body>
<div id='log'/>
<div id='log'></div>

<script>
var t1 = async_test("img src matches correctly partial wildcard host csp directive");
Expand Down
2 changes: 1 addition & 1 deletion content-security-policy/img-src/img-src-none-blocks.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<script src='/resources/testharnessreport.js'></script>
</head>
<body>
<div id='log'/>
<div id='log'></div>

<script>
var t1 = async_test("img-src with 'none' source should not match");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<script src='/resources/testharnessreport.js'></script>
</head>
<body>
<div id='log'/>
<div id='log'></div>

<script>
var t1 = async_test("img-src with wildcard port should match any port");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<script src='/resources/testharnessreport.js'></script>
</head>
<body>
<div id='log'/>
<div id='log'></div>

<script>
var t1 = async_test("img-src with wildcard should match all");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<script src="/resources/testharnessreport.js"></script>

<script>
var window_url = encodeURIComponent("javascript:'<iframe src=/content-security-policy/support/fail.js />'");
var window_url = encodeURIComponent("javascript:'<iframe src=/content-security-policy/support/fail.js></iframe>'");
var report_cookie_name = encodeURIComponent("javascript-url-navigation-inherits-csp");
window.open("support/test_csp_self_window.sub.html?window_url=" + window_url + "&report_cookie_name=" + report_cookie_name);
setTimeout(function() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
}
}
</script>
<iframe src="support/generate-csp-report.html"/>
<iframe src="support/generate-csp-report.html"></iframe>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<div id="dirty" class="none">PASS</div>
<script>
const root = host.attachShadow({mode:"open"});
root.innerHTML = "<slot />";
root.innerHTML = "<slot></slot>";
requestAnimationFrame(() => {
root.firstChild.name = "skip-slot";
dirty.className = "";
Expand Down
2 changes: 1 addition & 1 deletion css/css-backgrounds/background-clip-content-box.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
background-color:red;
}
</style>
<head/>
</head>
<body>
<p>
"Test passes if the background color is limited to the content only and border is blue dotted without red."
Expand Down
2 changes: 1 addition & 1 deletion css/css-backgrounds/reference/reference.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
}

</style>
<head/>
</head>
<body>
<p>
"Test passes if the border is blue dotted without red."
Expand Down
2 changes: 1 addition & 1 deletion css/css-cascade/scope-deep.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
`.trim();
}

// <div class=s0><div class=s1>...<span/>...</div></div>
// <div class=s0><div class=s1>...<span></span>...</div></div>
function createElementChain(length, i) {
if (length < 1)
throw 'Invalid length';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
<div id="host"><span>two</span> <span>words</span></div>
<script>
host.offsetTop;
host.attachShadow({mode:"open"}).innerHTML = "<slot />";
host.attachShadow({mode:"open"}).innerHTML = "<slot></slot>";
</script>
2 changes: 1 addition & 1 deletion css/css-masking/mask-image/mask-image-5-ref.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
</style>
</head>
<body>
<div/>
<div></div>
</body>
</html>
2 changes: 1 addition & 1 deletion css/css-masking/mask-image/mask-image-5.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
</style>
</head>
<body>
<div class="mask-by-data-url"/>
<div class="mask-by-data-url"></div>
</body>
</html>
2 changes: 1 addition & 1 deletion css/css-scoping/keyframes-004.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
animation: myanim 10s infinite;
}
</style>
<slot />
<slot></slot>
`;

assert_equals(document.getElementById('in-document').getAnimations().length, 1);
Expand Down
4 changes: 2 additions & 2 deletions css/css-scoping/shadow-cascade-order-001.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
// <my-list>
// <:shadow>
// <style>::slotted(my-item) { color: blue; }</style>
// <slot/>
// <slot></slot>
// </:shadow>
// <my-item style="color: green;">
// <:shadow>
// <style>:host { color: yellow; }</style>
// <slot/>
// <slot></slot>
// </:shadow>
// ITEM
// </my-item>
Expand Down
2 changes: 1 addition & 1 deletion css/css-scoping/slotted-with-pseudo-element.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<script>
function attachShadowWithSlottedStyle(host, styleString) {
var root = host.attachShadow({mode:"open"});
root.innerHTML = "<style>"+styleString+"</style><slot/>";
root.innerHTML = "<style>"+styleString+"</style><slot></slot>";
}

attachShadowWithSlottedStyle(host1, "::slotted(span)::before { content: 'PASS' }");
Expand Down
2 changes: 1 addition & 1 deletion css/selectors/modal-pseudo-class.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<dialog id="dialog">Just another dialog.</dialog>
<div id="container">
<button id="btn"/>
<button id="btn"></button>
</div>

<script>
Expand Down
2 changes: 1 addition & 1 deletion element-timing/background-image-multiple-elements.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
<div width=200 height=100 id="div2" class="my_div" elementtiming="et2">
Sample text inside div.
</div>
<div id="div3"/>
<div id="div3">
I am a div that should not be observed!
</div>
</body>
2 changes: 1 addition & 1 deletion element-timing/image-rect-iframe.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@
});
}, 'Element Timing entry in iframe has coordinates relative to the iframe.');
</script>
<iframe src="resources/iframe-with-square-sends-entry.html"/>
<iframe src="resources/iframe-with-square-sends-entry.html"></iframe>
</body>
2 changes: 1 addition & 1 deletion element-timing/observe-video-poster.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@
margin: 0;
}
</style>
<video elementtiming='my_poster' id='the_poster' src='/media/test.mp4' poster='resources/circle.svg'/>
<video elementtiming='my_poster' id='the_poster' src='/media/test.mp4' poster='resources/circle.svg'></video>
2 changes: 1 addition & 1 deletion html/editing/dnd/canvas/002.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</script>
</head>
<body onload="paint('gray')">
<div draggable="true" ondragstart="start(event)"/>
<div draggable="true" ondragstart="start(event)"></div>
<p>Drag green box above to the gray canvas below. Canvas should turn green when you drop green box on it.</p>
<p>
<canvas width="100" height="100" ondragenter="event.preventDefault()" ondragover="return false">Canvas</canvas>
Expand Down
2 changes: 1 addition & 1 deletion html/editing/dnd/canvas/005.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
</script>
</head>
<body>
<div draggable="true" ondragstart="start(event)"/>
<div draggable="true" ondragstart="start(event)"></div>
<p>Drag green box above to the gray canvas below. Canvas should turn green when you drop green box on it.</p>
<p><iframe src="helper-drop-here-canvas.xhtml">Canvas</iframe></p>
<script>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<div>
<video controls />
<video controls></video>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
<link rel="help" href="https://html.spec.whatwg.org/multipage/rendering.html#embedded-content-rendering-rules" />
<link rel="match" href="video-controls-vertical-writing-mode-ref.html" />
<div style="writing-mode:vertical-lr">
<video controls />
<video controls></video>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
var t = async_test("Document.write() silently fails from an Async script");

var log = t.step_func(function() {
document.write("<span id='writtenText'/>");
document.write("<span id='writtenText'></span>");
assert_equals(null, document.getElementById('writtenText'));
t.done();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,13 @@
doc, 'thead', '<col id="col3" width="150"/>', 'col3', 'COL'],

['Clearing stack back to a table body context. Test <colgroup> in <tbody>',
doc, 'tbody', '<colgroup id="colgroup1" width="150"/>', 'colgroup1', 'COLGROUP'],
doc, 'tbody', '<colgroup id="colgroup1" width="150"></colgroup>', 'colgroup1', 'COLGROUP'],

['Clearing stack back to a table body context. Test <colgroup> in <tfoot>',
doc, 'tfoot', '<colgroup id="colgroup2" width="150"/>', 'colgroup2', 'COLGROUP'],
doc, 'tfoot', '<colgroup id="colgroup2" width="150"></colgroup>', 'colgroup2', 'COLGROUP'],

['Clearing stack back to a table body context. Test <colgroup> in <thead>',
doc, 'thead', '<colgroup id="colgroup3" width="150"/>', 'colgroup3', 'COLGROUP'],
doc, 'thead', '<colgroup id="colgroup3" width="150"></colgroup>', 'colgroup3', 'COLGROUP'],

['Clearing stack back to a table body context. Test <tbody> in <tbody>',
doc, 'tbody', '<tbody id="tbody1"></tbody>', 'tbody1', 'TBODY', 1],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
doc, '<caption id="caption1">Table caption</caption>', 'caption1', 'CAPTION'],

['Clearing stack back to a table context. Test <colgroup>',
doc, '<colgroup id="colgroup1" width="100%"/>', 'colgroup1', 'COLGROUP'],
doc, '<colgroup id="colgroup1" width="100%"></colgroup>', 'colgroup1', 'COLGROUP'],

['Clearing stack back to a table context. Test <tbody>',
doc, '<tbody id="tbody1"></tbody>', 'tbody1', 'TBODY', 1],
Expand Down
2 changes: 1 addition & 1 deletion largest-contentful-paint/video-poster.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@
observer.observe({type: 'largest-contentful-paint', buffered: true});
}, "Able to observe a video's poster image.");
</script>
<video id='the_poster' src='/media/test.mp4' poster='/images/blue.png'/>
<video id='the_poster' src='/media/test.mp4' poster='/images/blue.png'></video>
4 changes: 2 additions & 2 deletions mediacapture-image/ImageCapture-grabFrame.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<body>
<canvas id='canvas0' width=10 height=10/>
<canvas id='canvas1' width=10 height=10/>
<canvas id='canvas0' width=10 height=10></canvas>
<canvas id='canvas1' width=10 height=10></canvas>
</body>
<script>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<body>
<canvas id='canvas' width=10 height=10/>
<canvas id='canvas' width=10 height=10></canvas>
</body>
<script>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<body>
<canvas id='canvas' width=10 height=10/>
<canvas id='canvas' width=10 height=10></canvas>
</body>
<script>

Expand Down
2 changes: 1 addition & 1 deletion mediacapture-image/MediaStreamTrack-getSettings-fast.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<body>
<canvas id='canvas' width=10 height=10/>
<canvas id='canvas' width=10 height=10></canvas>
</body>
<script>

Expand Down
2 changes: 1 addition & 1 deletion mediacapture-image/detached-HTMLCanvasElement.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

async_test(t => {
let iframe = document.createElement('iframe');
let html = "<canvas id='canvas' width=10 height=10 />";
let html = "<canvas id='canvas' width=10 height=10></canvas>";
iframe.srcdoc = html;
iframe.onload = t.step_func_done(() => {
// This detaches the frame while retaining a reference to an
Expand Down
2 changes: 1 addition & 1 deletion mediacapture-image/getPhotoCapabilities.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<script src="/resources/testharnessreport.js"></script>
<script src="/mediacapture-image/resources/imagecapture-helpers.js"></script>
<body>
<canvas id='canvas' width=10 height=10/>
<canvas id='canvas' width=10 height=10></canvas>
</body>
<script>

Expand Down
2 changes: 1 addition & 1 deletion mediacapture-image/getPhotoSettings.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<script src="/resources/testharnessreport.js"></script>
<script src="/mediacapture-image/resources/imagecapture-helpers.js"></script>
<body>
<canvas id='canvas' width=10 height=10/>
<canvas id='canvas' width=10 height=10></canvas>
</body>
<script>

Expand Down
Loading

0 comments on commit f620b1e

Please sign in to comment.