Skip to content

Firefox preview support for MathMLAnchorElement download, ping, rel, … - #30916

Merged
Elchi3 merged 2 commits into
mdn:mainfrom
chrisdavidmills:add-missing-mathmlanchorelement-properties
Oct 22, 2026
Merged

Elchi3 merged 2 commits into
mdn:mainfrom
chrisdavidmills:add-missing-mathmlanchorelement-properties

Conversation

@chrisdavidmills

@chrisdavidmills chrisdavidmills commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

…relList, and referrerPolicy properties

Summary

Firefox Nightly 159 adds support for the MathMLAnchorElement download, ping, rel, relList, and referrerPolicy properties; see https://bugzilla.mozilla.org/show_bug.cgi?id=2064612.

This PR adds data points for these new properties.

Note that the spec URL situation is a bit odd — the impl bug points to https://w3c.github.io/mathml-core/#the-a-element for the spec, which I guess isn't totally unreasonable, as download, ping, rel, and referrerPolicy at least are just reflected properties.

I couldn't find a spec URL of any kind for relList, so I've just marked that as non-standard for now.

Test results and supporting details

I tested all of these, and verified that they worked in Nightly 159. I viewed the example at https://developer.mozilla.org/en-US/docs/Web/API/MathMLAnchorElement#examples in the MDN Playground. I updated the first link to include these attributes:

download="yes"
ping="https://example-tracking.com https://example-analytics.com"
rel="help alternate"
referrerPolicy="no-referrer"

Then I added the following code to access the new properties:

outputValue("download");
outputValue("ping");
outputValue("rel");
console.log(mathAnchor.relList[0]);
outputValue("referrerPolicy");

Related issues

@github-actions github-actions Bot added data:api Compatibility data for Web API features. https://developer.mozilla.org/docs/Web/API size:l Pull request changing 101-1,000 lines of code. labels Oct 19, 2026
@github-actions

github-actions Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Tip: Review these changes grouped by change (recommended for most PRs), or grouped by feature (for large PRs).

@Elchi3

Elchi3 commented Oct 20, 2026

Copy link
Copy Markdown
Member

I couldn't find a spec URL of any kind for relList, so I've just marked that as non-standard for now.

@fred-wang I don't see relList in w3c/mathml-core#335. Was that an oversight?

@Elchi3

Elchi3 commented Oct 22, 2026

Copy link
Copy Markdown
Member

Also, I wondered why I didn't detect these new IDL properties from webref and the reason is in the Firefox patch:

// FIXME: This is different from the current MathML core spec.
// We should move attributes below to HyperlinkElementUtils mixin
// once we are ready to share the mixin with HTML and SVG anchor element.
// We have these attributes temporarily in MathMLAnchorElement.idl for now.
[CEReactions, SetterThrows] attribute DOMString download;
[CEReactions, SetterThrows] attribute USVString ping;
[CEReactions, SetterThrows] attribute DOMString rel;
[PutForwards=value] readonly attribute DOMTokenList relList;
[CEReactions, SetterThrows] attribute DOMString referrerPolicy;

So, it is not really standardized for now, but I guess it is likely that this will end up in some spec, either MathMLAnchorElement or HyperlinkElementUtils. Strictly speaking that makes everything here non-standard for now. I could maybe live with your workaround to mark it as standardized if you point me to another vendor that feels positive towards this plan.

@chrisdavidmills

Copy link
Copy Markdown
Contributor Author

Strictly speaking that makes everything here non-standard for now.

I think you're right. I've set them all to non-standard for now.

@Elchi3 Elchi3 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, Chris! 👍

@Elchi3
Elchi3 merged commit 702d166 into mdn:main Oct 22, 2026
10 checks passed
@mdn-bot mdn-bot mentioned this pull request Oct 22, 2026
@chrisdavidmills
chrisdavidmills deleted the add-missing-mathmlanchorelement-properties branch October 22, 2026 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data:api Compatibility data for Web API features. https://developer.mozilla.org/docs/Web/API size:l Pull request changing 101-1,000 lines of code.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants