MathML Core does not support some attributes anymore, like fontstyle, fontweight etc.
Created attachment 378294 [details] Patch
Can you please use bug 195797 as a meta bug for MathML Core bugs? I think this is a duplicate of bug 197492?
Comment on attachment 378294 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=378294&action=review > Source/WebCore/mathml/MathMLElement.cpp:144 > + if (!document().settings().coreMathMLEnabled()) maybe use a local variable to avoid repeating it? > Source/WebCore/mathml/MathMLElement.cpp:162 > + if (document().settings().coreMathMLEnabled() || hasTagName(mathTag) || hasTagName(mrowTag) || hasTagName(mstyleTag) || isMathMLToken()) This is a separate bug: You are making dir allowed on all tags. I'm not sure we actually need to protect this change with the coreMathMLEnabled(), but I guess it's ok.
Comment on attachment 378294 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=378294&action=review Make sure you disable the MathML Core flag when running internal tests assuming MathML3 behavior. >> Source/WebCore/mathml/MathMLElement.cpp:144 >> + if (!document().settings().coreMathMLEnabled()) > > maybe use a local variable to avoid repeating it? Actually I would disable all the attributes in one go: if (!document().settings().coreMathMLEnabled()) { // FIXME: The following are deprecated attributes that should lose if there is a conflict with a non-deprecated attribute. else if (name == fontsizeAttr) addPropertyToPresentationAttributeStyle(style, CSSPropertyFontSize, value); else if (name == backgroundAttr) addPropertyToPresentationAttributeStyle(style, CSSPropertyBackgroundColor, value); else if (name == colorAttr) addPropertyToPresentationAttributeStyle(style, CSSPropertyColor, value); else if (name == fontstyleAttr) addPropertyToPresentationAttributeStyle(style, CSSPropertyFontStyle, value); else if (name == fontweightAttr) addPropertyToPresentationAttributeStyle(style, CSSPropertyFontWeight, value); else if (name == fontfamilyAttr) addPropertyToPresentationAttributeStyle(style, CSSPropertyFontFamily, value); }
*** This bug has been marked as a duplicate of bug 197492 ***