Skip to content

Commit 7841a45

Browse files
committed
[selectors] Add issue about relaxing #id syntax requirements.
1 parent d57fda0 commit 7841a45

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

selectors/Overview.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2281,6 +2281,11 @@ <h3 id=id-selectors><span class=secno>6.7. </span> ID selectors</h3>
22812281
An ID selector represents an element instance that has an identifier that
22822282
matches the identifier in the ID selector.
22832283

2284+
<p class=issue> In Quirks Mode, we accept all hash tokens, not just ones
2285+
whose value matches the ident syntax. Should we change the Standards Mode
2286+
to do that, too? Note that HTML5 loosened the definition of valid ids to
2287+
allow things starting with numbers, etc.
2288+
22842289
<p>Selectors does not specify how a UA knows the ID-typed attribute of an
22852290
element. The UA may, e.g., read a document's DTD, have the information
22862291
hard-coded or ask the user.

selectors/Overview.src.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1487,6 +1487,11 @@ <h3 id="id-selectors">
14871487
An ID selector represents an element instance that has an
14881488
identifier that matches the identifier in the ID selector.
14891489

1490+
<p class='issue'>
1491+
In Quirks Mode, we accept all hash tokens, not just ones whose value matches the ident syntax.
1492+
Should we change the Standards Mode to do that, too?
1493+
Note that HTML5 loosened the definition of valid ids to allow things starting with numbers, etc.
1494+
14901495
<p>Selectors does not specify how a UA knows the ID-typed attribute of
14911496
an element. The UA may, e.g., read a document's DTD, have the
14921497
information hard-coded or ask the user.

0 commit comments

Comments
 (0)