Skip to content

Validate any valid spec URL #84

Open
@ddbeck

Description

@ddbeck

via #78

What I want

  • To be able to link to any valid page (or fragment) within a specification known to web-specs
  • To not be able to link an invalid page (or fragment) within a specification known to web-specs
  • To not be able to link to a specification unknown to web-specs

How it works now

Right now, the tests allow linking only to the single URL known to web-specs. For example https://html.spec.whatwg.org/multipage/ is a valid spec URL, but https://html.spec.whatwg.org/multipage/custom-elements.html#custom-elements is not.

How it could work in the future

We could change the tests to allow any valid derivative URL (i.e., any URL where the scheme and domain are the same and the path starts with the path known to web-specs).

If we wanted to go further, we could periodically scrape spec URLs to fully enumerate all of the pages and anchors and validate against them (I don't think this would be too bad—there's not that many specs, but not exactly zero effort).

Metadata

Metadata

Assignees

No one assigned

    Labels

    tools and infrastructureProject internal tooling, such as linters, GitHub Actions, or repo settings

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions