mirror of https://github.com/sveltejs/svelte
fix: ensure svg namespace for `<a>` elements is correct (#14756)
* fix: ensure svg namespace persists from parent of if blocks * better fix * better fix * address feedbackpull/14770/head
parent
bfa0b34663
commit
8705d44c64
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'svelte': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix: ensure svg namespace for `<a>` elements is correct
|
@ -0,0 +1,11 @@
|
|||||||
|
import { test, ok } from '../../test';
|
||||||
|
|
||||||
|
export default test({
|
||||||
|
html: `<svg><a href="/docs"><text class="small" x="20" y="40"></text></a></svg>`,
|
||||||
|
test({ assert, target }) {
|
||||||
|
const a = target.querySelector('a');
|
||||||
|
ok(a);
|
||||||
|
|
||||||
|
assert.equal(a.namespaceURI, 'http://www.w3.org/2000/svg');
|
||||||
|
}
|
||||||
|
});
|
After Width: | Height: | Size: 109 B |
Loading…
Reference in new issue