-
-
Notifications
You must be signed in to change notification settings - Fork 40
Closed
Description
This is a write up of a project around specification links that @sideshowbarker and I started to work on and that I'd like to introduce here some more, so that it becomes more transparent why we should do some work on this and what work is involved exactly.
Problem statement
- The specification sections on MDN oftentimes present links to outdated or irrelevant specs. Browser engineers are unhappy to see links non-current specs and web developers get the wrong information about what is the latest standard. Some old specs are redirected by the W3C already, other links just continue to point to dated material or are 404.
- The spec links aren't machine readable like the compat data is. Various tools need a mapping between: mdn url, spec url and compat data.
- The MDN spec sections are inconsistent. If they were rendered from data, like the compat table, we could change the design of this section from a central place and iterate more on it.
- Currently, to add a spec to MDN, one has to add to the specdata kumascript macro in yari to first register a spec. Then it is possible to call a spec macro to display a link. This process is unnecessarily complicated and costs time.
Priority assessment
This table checks this project against the OWD prioritization criteria.
Criteria | Assessment |
---|---|
Effort | Large as this affects all MDN reference pages. However, thanks to the scraping work that Mike has done, we were able to quickly get spec_urls in for javascript and HTML pages already. |
Dependencies | BCD and MDN are both involved. In order to render the spec section from a template like the yari compat table, we need yari engineering time. Collecting the spec_urls into BCD doesn't have a dependency, though. |
Community enablement | Anyone can submit and review spec_urls to BCD features. Is shareable. Some knowledge about what makes a spec a current spec required. |
Momentum | I think the momentum comes from being able to use this data in a machine-readable form in some spec tooling. No direct web developer momentum, I think. |
Enabling learners | N / A |
Enabling professionals | Professionals appreciate a precise spec section on MDN |
Underrepresented topics / ethical web | N/A |
Operational necessities | N / A |
Addressing needs of the Web industry | N / A |
Proposed solutions
- Add a spec_url property to BCD and review all spec_urls for correctness and if they point to the most recent spec version. (See Add spec_url values for all features for which we have the data mdn/browser-compat-data#6765)
- Source the MDN "Specification" section from the BCD spec_url. Source specification section from BCD; improve rendering mdn/content#1146
- Improve the rendering of the MDN "Specification" section.
Task list
- Define spec_url for BCD and agree on what sorts of specs qualify as correct and current.
- Populate spec_url for all BCD features (upstream from https://github.com/w3c/browser-compat-data but review data from there)
- Source the Specification section from BCD data
- Remove the specdata macro implementation
- (possibly more here)
sideshowbarker and teoli2003
Metadata
Metadata
Assignees
Labels
No labels