Skip to content
Marcos Cáceres edited this page Nov 27, 2017 · 10 revisions

The data-dfn-for attribute links a WebIDL attribute or method to a definition.

Example

The following example automatically links up the bar attribute and the doTheFoo() method to the Foo interface.

<pre class="idl">
interface Foo {
  attribute Bar bar;
  void doTheFoo();
};
</pre>
<p>The <dfn>Foo</dfn> interface is nice. Lets you do stuff.</p>
<p>The <dfn data-dfn-for="Foo">bar</dfn> attribute, returns 🍺.</p>
<p>The <dfn data-dfn-for="Foo">doTheFoo()</dfn> method, returns nothing.</p>

Guides

Configuration options

W3C Configuration options

Linter rules

Internal properties

Handled by ReSpec for you.

Special <section> IDs

HTML elements

Custom Elements

WebIDL

HTML attributes

CSS Classes

Special properties

Clone this wiki locally