data lt noDefault - speced/respec GitHub Wiki

data-lt-noDefault

Applies to: <dfn>

Prevents the element's text content from being used as a linking term. Only the values defined in data-lt are used for linking. Useful for disambiguating two definitions that would otherwise have the same default link text.

Usage

<dfn>The Foo</dfn>
<!-- Links as "The Foo" -->

<dfn data-lt="alternative foo" data-lt-noDefault>The Foo</dfn>
<!-- Links only as "alternative foo" — "The Foo" text is ignored -->

Notes

  • Without data-lt-noDefault, having two <dfn> elements with the same text content would cause a disambiguation error
  • data-lt-noDefault lets you give a definition a unique programmatic name (via data-lt) while the display text can still match another definition
⚠️ **GitHub.com Fallback** ⚠️