[TYPO3-english] Minor Bug in FORM-Object (Typoscript)?

Christopher Torgalson bedlamhotel at gmail.com
Fri May 1 17:25:48 CEST 2009


On Fri, May 1, 2009 at 4:54 AM, Francois Suter <fsuter at cobweb.ch> wrote:

<snip>

> In xHTML underscores are not allowed in id attributes, so it's not
> really wrong, although this cleanup could be made to depend on doc type.

This is *not* true. Underscores are permitted in id attributes and id
selectors. The html 4 spec [1], the xhtml 1.0 spec [2] and the css 2.1
[3] spec are all quite clear about it.

[1] http://www.w3.org/TR/html4/types.html#h-6.2
[2] http://www.w3.org/TR/xhtml1/guidelines.html#C_8
[3] http://www.w3.org/TR/CSS2/syndata.html#characters

They may not *begin* with anything but letters, but underscores and
hyphens can appear anywhere after the first letter, so there's no
standards-related reason for excluding -_ from id attributes.

-- 
Christopher Torgalson
http://www.typo3apprentice.com/


More information about the TYPO3-english mailing list