simpler to just leave these in (without children) and ignore them

pull/12215/head
Rich Harris 4 months ago
parent 0366bd2ae2
commit af05454d5d

@ -1,27 +0,0 @@
import { test } from '../../test';
export default test({
test({ assert, target, variant }) {
// if created on client side, should not build noscript
if (variant === 'dom') {
assert.equal(target.querySelectorAll('noscript').length, 0);
assert.htmlEqual(
target.innerHTML,
`
<div>foo</div>
<div>foo<div>foo</div></div>
`
);
} else {
assert.equal(target.querySelectorAll('noscript').length, 3);
assert.htmlEqual(
target.innerHTML,
`
<noscript>foo</noscript>
<div>foo<noscript>foo</noscript></div>
<div>foo<div>foo<noscript>foo</noscript></div></div>
`
);
}
}
});

@ -1,5 +0,0 @@
<noscript>foo</noscript>
<div>foo<noscript>foo</noscript></div>
<div>foo<div>foo<noscript>foo</noscript></div></div>
Loading…
Cancel
Save