respec
respec copied to clipboard
Internal slots doesn't work with data-link-for
Important info
- URL to affected spec:
- ReSpec version: Click the ReSpec pill in top-right corner (e.g., 25.12.0).
- [x] I did a "hard refresh", but it's still busted.
Description of problem
What happened (e.g., it crashed)?:
<section data-dfn-for="Foo" data-link-for="Foo">
<h2>Start your spec!</h2>
<pre class="idl">
[Exposed=Window]
interface Foo {
attribute DOMString bar;
undefined doTheFoo();
};
</pre>
<p>Attribute {{bar}}</p>
<p>The <dfn>[[\internal slot]]</dfn> represents a {{[[internal slot]]}}</p>
<p>represents a {{Foo/[[internal slot]]}}</p>
</section>
Expected behavior (e.g., it shouldn't crash):
Both form of links should work, but only latter works
We opted to require the "for" context explicitly for internal slots, but we could add support for this I guess.
Hmm, is that documented? Last time I failed to find such phrase.
Not document, as ReSpec gets upset if you are missing the for context.
We did send this out to the community though (ignore the missing "\" typo there, I mention that in a follow up): https://lists.w3.org/Archives/Public/spec-prod/2021AprJun/0030.html