Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/syntax/parsing/adoption_agency_check_the_end_tag_name.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>The adoption agency algorithm should check the end tag's name</title>
<link rel="author" href="mailto:n4ag3a2sh1i@gmail.com">
<link rel="help" href="https://html.spec.whatwg.org/multipage/parsing.html#adoption-agency-algorithm">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
'use strict';
test(() => {
const wrapper = document.createElement('div');
const html = '<code some-attribute=""><div><code><code><code><code></code></code></code></code></div></code>';
wrapper.innerHTML = html;
assert_equals(wrapper.innerHTML, html);
}, 'The algorithm should not reparent properly nested tags');
</script>