Closed Bug 1573438 Opened 1 year ago Closed 1 year ago

Remove <math>'s mode attribute


(Core :: MathML, task)

Not set



Tracking Status
firefox70 --- fixed


(Reporter: fredw, Assigned: fredw)


(Blocks 1 open bug, )


(Keywords: dev-doc-complete, site-compat)


(1 file)

This attribute is from MathML 1 and was probably implemented before we ever had MathML reftests. It has been deprecated from MathML 2 in favor of the display attribute (released 16 years ago) [1] and we have been sending deprecation warnings for it since Mozilla 20 (released 6 years ago) [2]. So I believe it is safe to remove it without introducing a new runtime preference.

[2] Bug 553917

Keywords: dev-doc-needed

What's the policy here, should we wait a bit for feedback on the intent to unship thread before landing this?

Flags: needinfo?(emilio)

It's trivial to backout, so I'd just land it and if someone raises up questions or concerns we can re-evaluate.

Flags: needinfo?(emilio)
Keywords: checkin-needed

Pushed by
Remove <math>'s mode attribute. r=emilio

Keywords: checkin-needed
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla70
Assignee: nobody →

Regarding the note for developers: The "mode" attribute on the <math> element can be replaced with the "display" attribute, substituing the attribute value "display" with the attribute value "block". See

For backward compatibility with legacy documents, one can use the following polyfill as a Mozilla extension (for users) or as a page script (for authors):

(In reply to Kohei Yoshino [:kohei] (Bugzilla UX) (FxSiteCompat) from comment #7)

Posted site compatibility note:

Thanks! I don't think this attribute has ever been implemented in WebKit/Safari, though.

(In reply to Frédéric Wang (:fredw) from comment #8)

I don't think this attribute has ever been implemented in WebKit/Safari, though.

Thank you! Updated the note along with other changes in Firefox 70:

You need to log in before you can comment on or make changes to this bug.