Skip to content

Commit 3cda98a

Browse files
timbenniksyyx990803
authored andcommitted
Added picture to isHTMLTag map (#5675)
This change will make sure the below error is not seen while unit testing components using <picture> in their template. [Vue warn]: Unknown custom element: <picture> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
1 parent 0b2f110 commit 3cda98a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/platforms/web/util/element.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const namespaceMap = {
1111
export const isHTMLTag = makeMap(
1212
'html,body,base,head,link,meta,style,title,' +
1313
'address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,' +
14-
'div,dd,dl,dt,figcaption,figure,hr,img,li,main,ol,p,pre,ul,' +
14+
'div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,' +
1515
'a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,' +
1616
's,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,' +
1717
'embed,object,param,source,canvas,script,noscript,del,ins,' +

0 commit comments

Comments
 (0)