File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/runtime-vapor/__tests__/dom Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -34,22 +34,22 @@ describe('MathML support', () => {
34
34
expect ( e0 . querySelector ( '#e5' ) ! . namespaceURI ) . toMatch ( 'svg' )
35
35
} )
36
36
37
- test . todo ( 'should patch elements with correct namespaces' , async ( ) => {
37
+ test ( 'should patch elements with correct namespaces' , async ( ) => {
38
38
const cls = ref ( 'foo' )
39
39
define ( {
40
40
setup ( ) {
41
41
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>' ,
43
43
true ,
44
44
)
45
+
45
46
const n2 = t0 ( ) as HTMLElement
46
47
const n1 = child ( n2 ) as HTMLElement
47
48
const p0 = child ( n1 ) as HTMLElement
48
49
const n0 = child ( p0 ) as HTMLElement
49
50
renderEffect ( ( ) => {
50
- const _cls = cls
51
+ const _cls = cls . value
51
52
setClass ( n1 , _cls )
52
- // problem is n0 is undefined here
53
53
setClass ( n0 , _cls )
54
54
} )
55
55
return n2
You can’t perform that action at this time.
0 commit comments