Re: ID and NAME tokens (CDATA problems)

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 UTC