File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -626,6 +626,15 @@ describe('SSR hydration', () => {
626
626
expect ( spy ) . toHaveBeenCalled ( )
627
627
} )
628
628
629
+ test ( 'elements with camel-case in svg ' , ( ) => {
630
+ const { vnode, container } = mountWithHydration (
631
+ '<animateTransform></animateTransform>' ,
632
+ ( ) => h ( 'animateTransform' )
633
+ )
634
+ expect ( vnode . el ) . toBe ( container . firstChild )
635
+ expect ( `Hydration node mismatch` ) . not . toHaveBeenWarned ( )
636
+ } )
637
+
629
638
test ( 'SVG as a mount container' , ( ) => {
630
639
const svgContainer = document . createElement ( 'svg' )
631
640
svgContainer . innerHTML = '<g></g>'
Original file line number Diff line number Diff line change @@ -158,7 +158,8 @@ export function createHydrationFunctions(
158
158
if ( shapeFlag & ShapeFlags . ELEMENT ) {
159
159
if (
160
160
domType !== DOMNodeTypes . ELEMENT ||
161
- vnode . type !== ( node as Element ) . tagName . toLowerCase ( )
161
+ ( vnode . type as string ) . toLowerCase ( ) !==
162
+ ( node as Element ) . tagName . toLowerCase ( )
162
163
) {
163
164
nextNode = onMismatch ( )
164
165
} else {
You can’t perform that action at this time.
0 commit comments