-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validate any valid spec URL #84
Comments
@ddbeck do you think we need to do more than we're already doing for this? |
@foolip We don't need to do anything, but we should probably log the idea somewhere that we wanted to validate the URL fragments (see also: w3c/browser-specs#931). More nice-to-have than need-to-have (at least for now). |
Ah, so given that w3c/browser-specs#931 was done we could write some code now. I think we'd also be well served by aligning exactly with the rules that BCD uses, and there are some minor differences. But how? A new package that both depend on feels like a bit much? Perhaps |
Maybe? I'm not sure how that interacts with But it seems to me that a reverse lookup would make the most sense, given the goals browser- and web-specs: you give it a complete URL and you get back the corresponding |
Not sure if that's meant to cover fragments. If so, I don't think we'll include them in browser-specs directly. We can look into providing the information in a more directly usable way in Webref though. Webref effectively contains browser-specs, so it should be possible to get all the validation info you need relying on Webref rather than on browser-specs. |
Ah, right, it was fixed for pages, not fragment identifiers... I've filed w3c/webref#1198 for that. |
via #78
What I want
web-specs
web-specs
web-specs
How it works now
Right now, the tests allow linking only to the single URL known to
web-specs
. For examplehttps://html.spec.whatwg.org/multipage/
is a validspec
URL, buthttps://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).
The text was updated successfully, but these errors were encountered: