Auto-legacy mode for dfns extraction #1120
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Dfns extraction expected specs to always follow the data definitions model specified in Bikeshed's documentation. Older specs don't follow that model. Terms they define are still extracted but with a
private
access level.This update makes the code peak at all definitions found in the spec. When some definition has a
data-dfn-type
attribute or some other attribute directly related to the data definitions model, extraction proceeds as before. When no definition has any of these attributes, the "legacy" extraction mode is activated and all extracted definitions are considered to be "public".This makes a few existing dfns public that used to be private for specs such as TC39 specs, css-page-4 (see below for details), but that is precisely what we want!
This would fix #1117 the lazy way, meaning without introducing extra crawling options ;)
css-page-4 - https://drafts.csswg.org/css-page-4/
css-style-attr - https://drafts.csswg.org/css-style-attr/
ecma-402 - https://tc39.es/ecma402/
html - https://html.spec.whatwg.org/multipage/
rfc7231 - https://httpwg.org/specs/rfc7231.html
rfc9110 - https://httpwg.org/specs/rfc9110.html
svg-integration - https://svgwg.org/specs/integration/
svg-strokes - https://svgwg.org/specs/strokes/
SVG2 - https://svgwg.org/svg2-draft/
tc39-decorators - https://tc39.es/proposal-decorators/
tc39-import-assertions - https://tc39.es/proposal-import-assertions/
tc39-intl-enumeration - https://tc39.es/proposal-intl-enumeration/
tc39-intl-numberformat - https://tc39.es/proposal-intl-numberformat-v3/out/numberformat/proposed.html
tc39-shadowrealm - https://tc39.es/proposal-shadowrealm/