-
-
Notifications
You must be signed in to change notification settings - Fork 415
WebIDL thing is not defined
Marcos Cáceres edited this page Jun 12, 2017
·
21 revisions
You probably landed here because you got a warning like:
- attribute
thing
not defined inSomeInterface
.
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!
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>
💖 Support ReSpec by becoming a sponsor via Open Collective. 💖
✨ View rendered version of this documentation at https://respec.org/docs/ ✨
- addSectionLinks
- authors
- caniuse
- edDraftURI
- editors
- favicon
- format (markdown)
- formerEditors
- github
- highlightVars
- isPreview
- license
- lint
- localBiblio
- logos
- maxTocLevel
- mdn
- modificationDate
- noTOC
- otherLinks
- pluralize
- postProcess
- preProcess
- previousDiffURI
- previousMaturity
- previousPublishDate
- prevRecShortname
- prevRecURI
-
processVersion(Deprecated) - publishDate
-
refNote(Deprecated) - shortName
- specStatus
- subjectPrefix
- subtitle
- testSuiteURI
- xref
- additionalCopyrightHolders
-
addPatentNote(Deprecated) - alternateFormats
- canonicalURI
- charterDisclosureURI
- copyrightStart
- crEnd
-
darkMode(deprecated, use dark mode) - doJsonLd
- errata
- group
- implementationReportURI
- lcEnd
- level
- noRecTrack
- prevED
- submissionCommentNumber
-
wg(Deprecated) -
wgId(Deprecated) -
wgPatentPolicy(Deprecated) -
wgPatentURI(Deprecated) - wgPublicList
-
wgURI(Deprecated)
a11y
check-punctuation
local-refs-exist
no-headingless-sections
no-http-props
no-unused-vars
no-unused-dfns
informative-dfn
privsec-section
wpt-tests-exist
Handled by ReSpec for you.
- data-abbr
-
data-cite(Not recommended) - data-dfn-for
- data-dfn-type
- data-format
- data-include-format
- data-include-replace
- data-include
- data-link-for
- data-link-type
- data-local-lt
- data-lt-no-plural
- data-lt-noDefault
- data-lt
- data-number
- data-oninclude
- data-sort
- data-tests
-
data-transform(Deprecated) - data-type
- dir
- lang