mirror of https://github.com/sveltejs/svelte
18 lines
420 B
18 lines
420 B
export default {
|
|
html: `
|
|
<svg>
|
|
<foreignObject x="0" y="0" width="100" height="100">
|
|
<p>some text</p>
|
|
</foreignObject>
|
|
</svg>
|
|
`,
|
|
|
|
test({ assert, target }) {
|
|
const foreignObject = target.querySelector('foreignObject');
|
|
assert.equal(foreignObject.namespaceURI, 'http://www.w3.org/2000/svg');
|
|
|
|
const p = target.querySelector('p');
|
|
assert.equal(p.namespaceURI, 'http://www.w3.org/1999/xhtml');
|
|
}
|
|
};
|