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/attribute-namespaced/_config.js

14 lines
278 B

export default {
props: { foo: 'bar' },
html: `
<svg>
<use xlink:href="#bar"/>
</svg>
`,
test({ assert, component, target }) {
const use = target.querySelector( 'use' );
assert.equal( use.getAttributeNS( 'http://www.w3.org/1999/xlink', 'href' ), '#bar' );
}
};