File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,52 @@ module('Rendering | Heading', function (hooks) {
124124 assert .dom (' #b' ).hasTagName (' h2' );
125125 assert .dom (' #c' ).hasTagName (' h3' );
126126 });
127+
128+ test (' [extraneous handling] h1 wrapped in <header><div><a>, h2 wrapped in <a>' , async function (assert ) {
129+ await render (
130+ <template >
131+ <header >
132+ <div >
133+ <a href =" #" >
134+ <Heading id =" a" >one</Heading >
135+ </a >
136+ <section >
137+ <a href =" #" >
138+ <Heading id =" d" >two</Heading >
139+ </a >
140+ </section >
141+ </div >
142+ </header >
143+ <section >
144+ <a href =" #" >
145+ <Heading id =" b" >two</Heading >
146+ </a >
147+
148+ <Heading id =" f" >two</Heading >
149+
150+ <section >
151+ <a href =" #" >
152+ <Heading id =" c" >three</Heading >
153+ </a >
154+
155+ <section >
156+ <a href =" #" >
157+ <Heading id =" e" >four</Heading >
158+ </a >
159+ </section >
160+ </section >
161+ </section >
162+ </template >
163+ );
164+
165+ assert .dom (' #a' ).hasTagName (' h1' );
166+ assert .dom (' #b' ).hasTagName (' h2' );
167+ assert .dom (' #c' ).hasTagName (' h3' );
168+
169+ assert .dom (' #d' ).hasTagName (' h2' );
170+ assert .dom (' #e' ).hasTagName (' h4' );
171+ assert .dom (' #f' ).hasTagName (' h2' );
172+ });
127173 });
128174
129175 module (' in shadow' , function () {
You can’t perform that action at this time.
0 commit comments