- From: Tab Atkins Jr. <jackalmage@gmail.com>
- Date: Wed, 5 Apr 2017 12:21:10 -0700
- To: Gregg Kellogg <gregg@greggkellogg.net>
- Cc: Martynas Jusevičius <martynas@atomgraph.com>, Marcos Caceres <w3c@marcosc.com>, "spec-prod@w3.org Prod" <spec-prod@w3.org>
On Tue, Apr 4, 2017 at 5:51 PM, Gregg Kellogg <gregg@greggkellogg.net> wrote: >> On Apr 4, 2017, at 7:35 AM, Martynas Jusevičius <martynas@atomgraph.com> wrote: >> >> Hey all, >> >> now I had time to try Shane's suggestion to use data-lt. I don't think >> it works. I have defined >> >> <dfn data-lt="iri-set">IRI</dfn> >> >> <dfn data-lt="iri-function">iri</dfn> >> >> yet when I reference using <a data-lt="iri-function">iri</a>, the link >> that gets generated is #dfn-iri. >> >> If I use a some other link text such as <a >> data-lt="iri-function">wtf</a>, then the link is correctly generated >> as #dfn-iri-function. But that is of no use for me. >> >> Can you suggest a workaround? > > I believe this effectively creates “iri-function” as an alias for #dfn-iri. If you don’t wan’t “iri” defined, you can use @data-lt-noDefault as follows: > > <dfn data-lt=“iri-function” data-lt-noDefault>iri</dfn> > > This defines #dfn-iri-function, but not #dfn-iri. :/ This isn't compliant with the Bikeshed Definition Model. If you have a data-lt, that defines *all* of the linking texts; in particular, if you still want the visible text to be a linking text, you have to move it into the data-lt as well. ~TJ
Received on Wednesday, 5 April 2017 19:22:03 UTC