Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
inet
active_desktop
active_scrptng
asp.components
asp.db
asp.general
comctl32
comp.packaging
components.dev
dbweb
dhtml_editing
docobjects
html_authoring
html_objmodel
iis
iis.ftp
iis.security
iis.smtp_nntp
indexserver
misc
mshtml_hosting
scripting.jscript
scripting.vbscript
sdk_setup
shell_objmodel
urlmonikers
webbrowser_ctl
wininet
  
 
date: Mon, 25 Jul 2005 17:46:17 -0400,    group: microsoft.public.inetsdk.programming.html_objmodel        back       


Permissible values for the id property   
Hi,

I came accross something that I found rather inconsistent today.  I 
inherited some HTML that I am responsible for maintaining, and I noticed 
that some of the pages have <option> elements with id property values that 
break the documented rules for id values.

The Microsoft DHTML documentation states that id values need to be 
"alphanumeric string that begins with a letter. The underscore (_) can also 
be used."  Despite this, however, I have an <option> element with an id of 
"< 1".  To my amazement, the following code returns that element:

window.document.all("< 1")

Obviously this behavior is not a big deal, but I have some concerns that 
this is going to be "fixed" in a subsequent version of IE, and things will 
stop working.  Any insight on whether the Microsoft DHTML documentation is 
wrong or IE 6 is wrong would be much appreciated.

Thanks,
Steve
date: Mon, 25 Jul 2005 17:46:17 -0400   author:   Stephen MarcAurele

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us