-
Notifications
You must be signed in to change notification settings - Fork 72
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
WebIDL snippets with default values are being dropped #34
Comments
Oh, good catch. That suggests that some attempt is being made to parse the IDL before accepting it, but that doesn't jive with my experience of fixing lots of broken IDL in specs that was already in reffy-reports... curious to learn what's behind this :) |
@tidoust @dontcallmedom can either of you help out with this? |
Argh. The problem is that right now, Reffy needs to use a pinned version of Respec (23.7.1) because newer versions of Respec do not run under JSDOM (notably because of the use of I don't know how to make the latest version of Respec run with JSDOM. We may have to get back to running a headless browser instead. In the meantime, I'll have Reffy extract the IDL from the body of the spec instead of relying on the IDL index at the end of the spec. |
Reffy gladly used the IDL index at the end of the spec to extract the IDL definitions, but ReSpec generates this IDL index on-the-fly and we're currently stuck to an old version of ReSpec (see #134), which chokes on recent WebIDL constructs and fails to include them in the IDL index, as described in: w3c/webref#34 With this update, Reffy now ignores the IDL index and extracts IDL definitions from main spec sections, and not from the IDL index appendix. Useless leading spaces are now discarded as well (#130).
Results generated from the latest version of Reffy, which now extracts WebIDL definitions from the main body of the spec, and not from the IDL index appendix.
Reffy will now ignore the final IDL index from now on, and rather extract IDL definitions from the core part of the spec. Not to have to wait for tomorrow's automatic report, I also pushed a manual update of the IDL files for Performance Timeline, Push API, User Timing, Wake Lock, WebNFC and Web Share, which had missing IDL definitions because of this. Please reopen the issue if I missed something! |
Sweet, thanks for fixing this, @tidoust! |
e.g. w3c/wake-lock@5c34f9a lead to https://github.com/web-platform-tests/wpt/pull/17904/files#diff-d83394caf586049a88f0c0cdd880c7bbL12
e.g. w3c/push-api@9179964 lead to https://github.com/web-platform-tests/wpt/pull/17826/files#diff-173f90f4b0be112b694720eda63bce08L11
The text was updated successfully, but these errors were encountered: