W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2008

name as a standard attribute

From: Omar Syed <osyed1@gmail.com>
Date: Sun, 28 Sep 2008 12:24:04 -0500
Message-ID: <41b749ee0809281024m6010f4d8qa0f19eb9634f8e33@mail.gmail.com>
To: www-dom@w3.org
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
Received on Sunday, 28 September 2008 20:34:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:59 GMT