From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Thu, 14 Dec 2023 14:08:55 +0000 (+0530) Subject: fix(mathml): update known mathML tags (#9829) X-Git-Tag: v3.4.0-beta.3~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ebd78d2c99d9587307e444e6b7baa7bc920d42e7;p=thirdparty%2Fvuejs%2Fcore.git fix(mathml): update known mathML tags (#9829) --- diff --git a/packages/shared/src/domTagConfig.ts b/packages/shared/src/domTagConfig.ts index 4cbb02b5f7..000432298f 100644 --- a/packages/shared/src/domTagConfig.ts +++ b/packages/shared/src/domTagConfig.ts @@ -27,12 +27,13 @@ const SVG_TAGS = 'polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,' + 'text,textPath,title,tspan,unknown,use,view' -// https://developer.mozilla.org/en-US/docs/Web/MathML/Element +// https://www.w3.org/TR/mathml4/ (content elements excluded) const MATH_TAGS = - 'math,maction,annotation,annotation-xml,menclose,merror,mfenced,mfrac,mi,' + + 'annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,' + + 'merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,' + 'mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,' + - 'semantics,mspace,msqrt,mstyle,msub,msup,msubsup,mtable,mtd,mtext,mtr,' + - 'munder,munderover' + 'mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,' + + 'msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics' const VOID_TAGS = 'area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr'