This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 19321 - It appears to me to be unspecified what characters are _allowed_ for attribute names. Is it the ASCII [0-9a-zA-Z] as for tag names, or a specific set of Unicode character classes, or any Unicode character at all?
Summary: It appears to me to be unspecified what characters are _allowed_ for attribut...
Status: RESOLVED WORKSFORME
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-07 20:45 UTC by contributor
Modified: 2012-10-08 03:29 UTC (History)
1 user (show)

See Also:


Attachments

Description contributor 2012-10-07 20:45:40 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/syntax.html
Multipage: http://www.whatwg.org/C#syntax-attribute-name
Complete: http://www.whatwg.org/c#syntax-attribute-name

Comment:
It appears to me to be unspecified what characters are _allowed_ for attribute
names. Is it the ASCII [0-9a-zA-Z] as for tag names, or a specific set of
Unicode character classes, or any Unicode character at all?

Posted from: 184.94.55.234
User agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/536.11 (KHTML, like Gecko) Ubuntu/12.04 Chromium/20.0.1132.47 Chrome/20.0.1132.47 Safari/536.11
Comment 1 Michael[tm] Smith 2012-10-08 03:29:54 UTC
Any unicode character except for space, tab, LF, FF, CR. NULL, ", ', >, /, =, or control characters.

http://www.whatwg.org/specs/web-apps/current-work/multipage/syntax.html#syntax-attribute-name
«Attribute names must consist of one or more characters other than the space characters, U+0000 NULL, U+0022 QUOTATION MARK ("), U+0027 APOSTROPHE ('), U+003E GREATER-THAN SIGN (>), U+002F SOLIDUS (/), and U+003D EQUALS SIGN (=) characters, the control characters, and any characters that are not defined by Unicode.»