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
Allow linking to fully qualified method name #1024
Comments
I literally just send a fix for this today 🎉 Let me fix the wiki. |
@alvestrand, so, you can just do: <section data-dfn-for="Foo" data-link-for="Foo">
<pre>
interface Foo{
void clone();
};
</pre>
<dfn>clone()</dfn>
<p>The <a>clone()</a>...</p>
</section> And it will work. I realized I didn't actually add support for I'm going to get ReSpec to automatically add "data-link-for=" to |
fixed idl above. |
Btw, which spec are you fixing up? Im happy to help.
… On 10 Jan 2017, at 7:46 pm, Harald Alvestrand ***@***.***> wrote:
In this page:
https://github.com/w3c/respec/wiki/WebIDL-Guide
we see
Similarly, to define the Request.clone() method, you'd write <dfn>Request.clone</dfn>().
but later:
<p data-dfn-for="Request">
The <dfn data-lt="clone()">clone</dfn> method.
The <dfn>url</dfn> attribute.
</p>
Are the parentheses supposed to be inside or outside the <dfn> or the link, or doesn't it matter?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Thanks - the question was whether <dfn>clone()<</dfn> works the same as <dfn>clone</dfn>() - the ambiguity still remains in the wiki. I THINK the example with the parentheses outside is likely to be wrong, since there's only one of it and a dozen of the other, but I'd like to be sure. WRT "what spec": I'm trying to fix errors in webrtc-stats - seems that dom has already fixed up webrtc-pc. |
It should work the same. If not, that's a bug.
Actually,
It's actually ok... it's for backwards compat. |
In this page:
https://github.com/w3c/respec/wiki/WebIDL-Guide
we see
Similarly, to define the Request.clone() method, you'd write <dfn>Request.clone</dfn>().
but later:
<p data-dfn-for="Request">
The <dfn data-lt="clone()">clone</dfn> method.
The <dfn>url</dfn> attribute.
</p>
Are the parentheses supposed to be inside or outside the <dfn> or the link, or doesn't it matter?
The text was updated successfully, but these errors were encountered: