Skip to content
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

Use <pre class=idl> for IDL blocks #31

Closed
foolip opened this issue Dec 1, 2016 · 2 comments
Closed

Use <pre class=idl> for IDL blocks #31

foolip opened this issue Dec 1, 2016 · 2 comments

Comments

@foolip
Copy link
Member

foolip commented Dec 1, 2016

A friendly request. In https://github.com/mdittmer/web-apis @mdittmer is working on tooling for extracting the IDL from specs linked to from Chromium's source code, for the purpose of comparing the IDLs. This will hopefully be a powerful tool for avoiding accidental differences.

In order to avoid having to use a real browser to scrape the IDL, it's useful if a <pre class=idl> block is used. This is one spec that Mark found relying on ReSpec's <dl class=pre> feature.

Note that this is already a ReSpec warning: "Defining WebIDL in dl elements is deprecated. Please use Contiguous IDL instead: https://github.com/w3c/respec/wiki/User's-Guide#webidl-support"

@garykac
Copy link
Member

garykac commented Dec 1, 2016

I'm actually converting the spec to bikeshed at the moment and I'll be using:

<pre class="idl" data-highlight="webidl">

for all IDL.

This change should happen within the next week.

@foolip
Copy link
Member Author

foolip commented Dec 2, 2016

@garykac, great! See whatwg/fullscreen#49 for some sanity checks that are useful when converting specs. In whatwg/fetch#398 these techniques revealed a few issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants