chromium/third_party/blink/web_tests/external/wpt/html/syntax/parsing/adoption_agency_check_the_end_tag_name.html

<!DOCTYPE html>
<title>The adoption agency algorithm should check the end tag's name</title>
<link rel="author" href="mailto:[email protected]">
<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';

// This is a regression test for https://crbug.com/1217523.
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>