Skip to content

Conversation

@lukewarlow
Copy link
Member

@lukewarlow lukewarlow commented Jan 8, 2026

This moves most of the HTMLHyperlinkElementUtils to a new HyperlinkElementUtils mixin, except for the href IDL and getter algorithm.

The "update href algorithm" and "set the url" algorithm are now declared by the implementing type not as part of HyperlinkElementUtils, this is so that SVG's <a> can correctly define it's own algorithms.

Likewise the href IDL and getter steps can't be shared because SVG's IDL is different and a MathML <a> won't want the stringifier behaviour on its href.

See #12063

  • At least two implementers are interested (and none opposed):
  • Tests are written and can be reviewed and commented upon at:
  • Implementation bugs are filed:
    • Chromium: …
    • Gecko: …
    • WebKit: …
    • Deno (only for timers, structured clone, base64 utils, channel messaging, module resolution, web workers, and web storage): …
    • Node.js (only for timers, structured clone, base64 utils, channel messaging, and module resolution): …
  • Corresponding HTML AAM & ARIA in HTML issues & PRs:
  • MDN issue is filed: …
  • The top of this comment includes a clear commit message to use.

(See WHATWG Working Mode: Changes for more details.)


/image-maps.html ( diff )
/index.html ( diff )
/links.html ( diff )
/text-level-semantics.html ( diff )

@lukewarlow lukewarlow changed the title WIP: Refactor href getter, setter out of HTMLHyperlinkEelementUtils Editorial: Refactor HTMLHyperlinkElementUtils Jan 14, 2026
@lukewarlow
Copy link
Member Author

lukewarlow commented Jan 14, 2026

This will need a corresponding update to the SVG specification to define the two required algorithms and also change the mixin that's used.

Draft SVG PR: w3c/svgwg#1052 (doesn't yet have the algorithms)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant