whatwg / html

HTML Standard
https://html.spec.whatwg.org/multipage/
Other
8.03k stars 2.62k forks source link

Exporting definitions linked to by 3+ specs #9159

Open dontcallmedom opened 1 year ago

dontcallmedom commented 1 year ago

In an effort to help specifications use auto-links to the HTML spec (which relies on relevant definitions from the HTML spec being marked as exported), I've looked at non-exported definitions that 3 specs or more link to (sorted by number of specs with such a link):

I'd be happy to provide a PR that mark the relevant definitions as exported - could someone take a look and check in the list above the ones that are reasonable targets?

cc @tidoust

domenic commented 1 year ago

Most of these should not be linked, as they are either misused or used by monkeypatch specs (which we don't want to encourage, and indeed want people to understand they are doing something unusual). Randomly selecting a few:

A good first step, I think, would be to remove consideration of portals, fenced-frame, prefetch, prerendering-revamped, and speculation-rules and see what's left. But I think mostly this issue is highlighting a lot of specs that are reaching into internal implementation details of HTML, that could change any time, and thus these specs are in trouble. (Or are monkeypatch specs.)

dontcallmedom commented 1 year ago

Updated list without portals, fenced-frame, prefetch, prerendering-revamped, and speculation-rules, and removing the 4 definitions I'm suggesting marking as exported in #9163