Skip to content

WebIDL thing is not defined

Marcos Cáceres edited this page Jun 12, 2017 · 21 revisions

Defining WebIDL things

You probably landed here because you got a warning like:

  • attribute thing not defined in SomeInterface.

This is trying to tell you that you forgot to define this part of the interface. Or that you forgot to explicitly define the interface itself!

What you need to do

Given:

<section>
<pre class="idl">
interface SomeInterface {
  readonly attribute DOMString thing;
}
</pre>
</section>

You want to add the following [data-dfn-for] and [data-link-for] attributes:

<section data-dfn-for="SomeInterface" data-dfn-for="SomeInterface">
<!-- explicitly define the interface -->
<h2><dfn>SomeInterface</dfn> interface</h2>
<pre class="idl">
interface SomeInterface {
  readonly attribute DOMString thing;
}
</pre>
<p>The <a>SomeInterface</a> let's you do really neat things!</p>
<!-- define the thing attribute -->
  <section>
    <h3><dnf>thing</dfn> attribute</h3>
    <p>The <a>thing</a> attribute, when getting, gives you the thing.</p> 
  </section>
</section>

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