respec icon indicating copy to clipboard operation
respec copied to clipboard

Internal slots doesn't work with data-link-for

Open saschanaz opened this issue 4 years ago • 3 comments

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

saschanaz avatar Jul 30 '21 22:07 saschanaz

We opted to require the "for" context explicitly for internal slots, but we could add support for this I guess.

marcoscaceres avatar Aug 02 '21 00:08 marcoscaceres

Hmm, is that documented? Last time I failed to find such phrase.

saschanaz avatar Aug 02 '21 01:08 saschanaz

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

marcoscaceres avatar Aug 04 '21 02:08 marcoscaceres