Skip to content

Commit 2807a8b

Browse files
committed
wip: save
1 parent 307baff commit 2807a8b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/runtime-vapor/__tests__/dom/mathML.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,22 +34,22 @@ describe('MathML support', () => {
3434
expect(e0.querySelector('#e5')!.namespaceURI).toMatch('svg')
3535
})
3636

37-
test.todo('should patch elements with correct namespaces', async () => {
37+
test('should patch elements with correct namespaces', async () => {
3838
const cls = ref('foo')
3939
define({
4040
setup() {
4141
const t0 = template(
42-
'<div><math id="f1"><annotation encoding="text/html"><div id="f2"></div></annotation></math></div>',
42+
'<div><math id="f1"><annotation encoding="text/html"><a id="f2"></a></annotation></math></div>',
4343
true,
4444
)
45+
4546
const n2 = t0() as HTMLElement
4647
const n1 = child(n2) as HTMLElement
4748
const p0 = child(n1) as HTMLElement
4849
const n0 = child(p0) as HTMLElement
4950
renderEffect(() => {
50-
const _cls = cls
51+
const _cls = cls.value
5152
setClass(n1, _cls)
52-
// problem is n0 is undefined here
5353
setClass(n0, _cls)
5454
})
5555
return n2

0 commit comments

Comments
 (0)