28 Sep 19:21
name as a standard attribute
From: Omar Syed <osyed1 <at> gmail.com>
Subject: name as a standard attribute
Newsgroups: gmane.comp.web.dom.general
Date: 2008-09-28 17:24:04 GMT
Subject: name as a standard attribute
Newsgroups: gmane.comp.web.dom.general
Date: 2008-09-28 17:24:04 GMT
Are there any plans to make 'name' a standard attribute for all tags similar to 'id'
so that unlike 'id' which needs to be unique within the document the 'name' needs
to only be locally unique. Thus one can use something like:
document.names.s1.p to access element id e3 in this document:
...
<body>
<p id=e1 name=p>
<span id=e2 name=s1>
<p id=e3 name=p>
</span>
</body>
....
Thanks.
Omar
so that unlike 'id' which needs to be unique within the document the 'name' needs
to only be locally unique. Thus one can use something like:
document.names.s1.p to access element id e3 in this document:
...
<body>
<p id=e1 name=p>
<span id=e2 name=s1>
<p id=e3 name=p>
</span>
</body>
....
Thanks.
Omar
RSS Feed