mirror of https://github.com/sveltejs/svelte
Merge pull request #471 from sveltejs/gh-470
replace all invalid characters in attribute names when creating variablespull/477/head
commit
d7320ba9fd
@ -0,0 +1,14 @@
|
||||
export default {
|
||||
data: { 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' );
|
||||
}
|
||||
};
|
After Width: | Height: | Size: 42 B |
Loading…
Reference in new issue