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

RE: ID and NAME tokens (CDATA problems)

From: Peter Foti (PeterF) <PeterF@SystolicNetworks.com>
Date: Wed, 4 Jun 2003 15:03:55 -0400
Message-ID: <A10A983C9DFBD4119F0300104B2EA6B72602D3@ZIPPY>
To: "'L. David Baron'" <dbaron@dbaron.org>
Cc: "'www-html@w3.org'" <www-html@w3.org>

Hi David,

I looked over that portion of the ECMA-262 spec very carefully, and I
thought I had properly tested this and found that it also did not work.
However, after re-typing my example with this syntax, it worked.  Must have
been a typo on my part the first time through.  

I respectfully withdraw my request, and thank you for pointing this out.  :)

Thanks,
Peter



>-----Original Message-----
>From: www-html-request@w3.org [mailto:www-html-request@w3.org]On Behalf
>Of L. David Baron
>Sent: Wednesday, June 04, 2003 2:32 PM
>To: www-html@w3.org
>Subject: Re: ID and NAME tokens (CDATA problems)
>
>
>
>On Wednesday 2003-06-04 14:16 -0400, Peter Foti (PeterF) wrote:
>> However, I question whether the period should be allowed, as 
>this is the
>> character used to access properties in JavaScript/ECMAScript:
>
>These tokens are used by attributes that have uses other than property
>access in ECMAScript.  If using a certain character doesn't make sense
>for a certain use, then you don't have to use it.
>
>> There does not seem to be any way to access those input 
>items using their
>> names, because the dot notation:
>> 
>> document.myform.readme.txt-title
>
>document.myform["readme.txt-title"] should work fine.  See ECMA-262
>Edition 3 section 11.2.1.  (If you want to limit yourself to what is
>required by the DOM HTML spec, though, you should use
>document.forms["myform"]["readme.txt-title"] .)
>
>-David
>
>-- 
>L. David Baron                                <URL: 
http://dbaron.org/ >
Received on Wednesday, 4 June 2003 14:50:48 GMT

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