File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -95,6 +95,35 @@ module('Rendering | Heading', function (hooks) {
9595 assert .dom (' #a' ).hasTagName (' h1' );
9696 assert .dom (' #b' ).hasTagName (' h2' );
9797 });
98+
99+ test (' h1 wrapped in <header><div><a>, h2 wrapped in <a>' , async function (assert ) {
100+ await render (
101+ <template >
102+ <header >
103+ <div >
104+ <a href =" #" >
105+ <Heading id =" a" >one</Heading >
106+ </a >
107+ </div >
108+ </header >
109+ <section >
110+ <a href =" #" >
111+ <Heading id =" b" >two</Heading >
112+ </a >
113+
114+ <section >
115+ <a href =" #" >
116+ <Heading id =" c" >three</Heading >
117+ </a >
118+ </section >
119+ </section >
120+ </template >
121+ );
122+
123+ assert .dom (' #a' ).hasTagName (' h1' );
124+ assert .dom (' #b' ).hasTagName (' h2' );
125+ assert .dom (' #c' ).hasTagName (' h3' );
126+ });
98127 });
99128
100129 module (' in shadow' , function () {
You can’t perform that action at this time.
0 commit comments