W3C home > Mailing lists > Public > www-html@w3.org > June 2003

Re: ID and NAME tokens (CDATA problems)

From: Toby A Inkster <tobyink@goddamn.co.uk>
Date: Wed, 4 Jun 2003 19:25:00 +0100
To: "Peter Foti (PeterF)" <PeterF@SystolicNetworks.com>
Cc: "'www-html@w3.org'" <www-html@w3.org>
Message-ID: <20030604182500.GA20180@ophelia.goddamn.co.uk>
On Wed, Jun 04, 2003 at 02:16:43PM -0400, Peter Foti (PeterF) wrote:
| http://www.w3.org/TR/html4/types.html#type-cdata
| However, I question whether the period should be allowed, as this is the
| character used to access properties in JavaScript/ECMAScript:
|
|    <input name="readme.txt-title">
| 
| document.myform.readme.txt-title
| 
| causes the script interpreter to look for input named "readme"

By no means an expert, but:

	document.getElementByName("readme.txt-title")

?

-- 
Toby A Inkster BSc (Hons) ARCS | mailto:tobyink@goddamn.co.uk | pgp:0x6A2A7D39
    aim:inka80 | icq:6622880 | yahoo:tobyink | jabber:tai@jabber.linux.it
            http://www.goddamn.co.uk/tobyink/ | "You've got spam!"
                             playing://(nothing)

Received on Wednesday, 4 June 2003 14:25:13 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:55 GMT