mirror of https://github.com/sveltejs/svelte
fix: ensure logic blocks keep consistent namespacing (#14817)
* fix: ensure logic blocks keep consitent namespacing * lint * add test * handle `<title>` ambiguity the same as `<a>` * update changeset --------- Co-authored-by: Rich Harris <rich.harris@vercel.com>pull/14921/head
parent
793f6f3b11
commit
cd1adbc4e6
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: inherit correct namespace for `<title>` elements
|
@ -0,0 +1,11 @@
|
||||
import { test, ok } from '../../test';
|
||||
|
||||
export default test({
|
||||
html: `<svg><title>potato</title></svg>`,
|
||||
test({ assert, target }) {
|
||||
const title = target.querySelector('title');
|
||||
ok(title);
|
||||
|
||||
assert.equal(title.namespaceURI, 'http://www.w3.org/2000/svg');
|
||||
}
|
||||
});
|
After Width: | Height: | Size: 56 B |
Loading…
Reference in new issue