You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/test/runtime/samples/svg-slot-namespace/_config.js

18 lines
366 B

export default {
html: `
<div>
<svg>
<line x1="0" y1="0" x2="100" y2="100" />
</svg>
</div>
`,
test({ assert, target }) {
const div = target.querySelector('div');
assert.equal(div.namespaceURI, 'http://www.w3.org/1999/xhtml');
const line = target.querySelector('line');
assert.equal(line.namespaceURI, 'http://www.w3.org/2000/svg');
}
};