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-foreignobject-namespace/_config.js

15 lines
282 B

export default {
html: `
<svg>
<foreignObject x="0" y="0" width="100" height="100">
<p>some text</p>
</foreignObject>
</svg>
`,
test({ assert, target }) {
const p = target.querySelector('p');
assert.equal(p.namespaceURI, 'http://www.w3.org/1999/xhtml');
}
};