w3c / sensors

Generic Sensor API
https://www.w3.org/TR/generic-sensor/
Other
127 stars 59 forks source link

Fix broken references to WebDriver definitions. #446

Closed rakuco closed 1 year ago

rakuco commented 1 year ago

We were hardcoding some dfn URLs anchors section that have changed in the WebDriver spec, resulting in broken links.

Several of those actually became exported definitions in w3c/webdriver#1639, so we can simply rely on Bikeshed autolinking working for them. In these cases, remove the hardcoded dfns and adjust the wording in the spec (e.g. "WebDriver error" -> "error").

Additionally, use the "WebDriver-2" shortname to refer to the spec, as it points to the current version which includes the exported definitions that we need.

Finally, also adapt to w3c/webdriver#1345 which renamed the "Handling Errors" section to "Errors".

Fixes #443.


Preview | Diff

rakuco commented 1 year ago

Bikeshed and SpecRef don't seem to agree on whether the spec is called "webdriver-2" or "webdriver2", I've commented in tabatkins/bikeshed#2416.

For now, I've tweaked the commit a bit to at least make the spec validation step pass here.