Closed Bug 1573438 Opened 5 years ago Closed 5 years ago

Remove <math>'s mode attribute

Categories

(Core :: MathML, task)

task
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla70
Tracking Status
firefox70 --- fixed

People

(Reporter: fredw, Assigned: fredw)

References

(Blocks 1 open bug, )

Details

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

Attachments

(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.

[1] https://www.w3.org/TR/MathML2/chapter7.html#interf.toplevel
[2] Bug 553917

Keywords: dev-doc-needed
Keywords: site-compat

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 rmaries@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/9ea2d91e7e91
Remove <math>'s mode attribute. r=emilio

Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla70
Assignee: nobody → fred.wang

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 https://www.w3.org/TR/MathML2/chapter7.html#interf.toplevel

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): https://github.com/mathml-refresh/mathml/issues/5#issuecomment-521525157

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

Posted site compatibility note: https://www.fxsitecompat.dev/en-CA/docs/2019/mode-attribute-on-math-has-been-removed/

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: https://www.fxsitecompat.dev/en-CA/docs/2019/various-legacy-mathml-features-have-been-deprecated-or-removed/

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

Attachment

General

Created:
Updated:
Size: