Skip to content

Commit 9521e25

Browse files
giacomo-petripkragithub-actions[bot]
authored
Empty or non-matching values for ID reference and ID reference list - Clarification on author responsibilities (#2235)
Co-authored-by: pkra <pkra@users.noreply.github.com> Co-authored-by: Peter Krautzberger <p.krautzberger@gmail.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent a3a9d99 commit 9521e25

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

index.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11880,7 +11880,7 @@ <h3>Value</h3>
1188011880
<code>undefined</code> is not expandable.
1188111881
</dd>
1188211882
<dt id="valuetype_idref">ID reference</dt>
11883-
<dd>Reference to the ID of another <a>element</a> in the same document</dd>
11883+
<dd>Reference to the ID of another <a>element</a> in the same document.</dd>
1188411884
<dt id="valuetype_idref_list">ID reference list</dt>
1188511885
<dd>A list of one or more ID references.</dd>
1188611886
<dt id="valuetype_integer">integer</dt>
@@ -16519,7 +16519,10 @@ <h2>State and Property Attribute Processing</h2>
1651916519
</p>
1652016520
<section id="mapping_additional_relations_error_processing">
1652116521
<h3>ID Reference Error Processing</h3>
16522-
<p>[=user agents=] SHOULD ignore ID references that do not match the ID of another <a>element</a> in the same document.</p>
16522+
<p>
16523+
The author MAY set either an empty value or a value that does not match the ID of another <a>element</a> in the same document. This flexibility acknowledges the dynamic nature of modern
16524+
websites, where the DOM can be populated accordingly when necessary. [=user agents=] SHOULD ignore ID references that do not match the ID of another <a>element</a> in the same document.
16525+
</p>
1652316526
<p>
1652416527
It is the author's responsibility to ensure that IDs are unique. If more than one element has the same ID, the user agent SHOULD use the first element found with the given ID. The behavior
1652516528
will be the same as <code>getElementById</code>.

0 commit comments

Comments
 (0)