W3C home > Mailing lists > Public > public-xml-id@w3.org > January 2005

Re: 4. ID assignment and the empty string

From: Norman Walsh <Norman.Walsh@Sun.COM>
Date: Wed, 05 Jan 2005 10:27:02 -0500
To: Ian Hickson <ian@hixie.ch>
Cc: public-xml-id@w3.org
Message-id: <87vfabyjzt.fsf@nwalsh.com>
/ Ian Hickson <ian@hixie.ch> was heard to say:
| |   2. ID assignment is performed.
| It should be stated explicitly that the value used for ID assignment
| is the normalised value obtained in the previous step.

Agreed. Done.

| Also, should the following:
|    xml:id=""
| ...be special-cased in the spec? At the moment a strict reading of the
| spec leads me to believe that such an attribute would make the element
| have an ID consisting of the empty string, which would thus be found
| by using, e.g.:
|    document.getElementById('')
| I would assume that much software has been written with the assumption
| that the empty string implies the lack of an ID. I would recommend
| changing step 2 of the processing section to read:
|    2. If this normalised value is not the empty string, ID assignment
|       is performed using the normalised attribute as the ID.
| This would take care of both these comments.

I'm inclined to agree.

                                        Be seeing you,

Norman.Walsh@Sun.COM / XML Standards Architect / Sun Microsystems, Inc.
NOTICE: This email message is for the sole use of the intended
recipient(s) and may contain confidential and privileged information.
Any unauthorized review, use, disclosure or distribution is prohibited.
If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.

Received on Wednesday, 5 January 2005 15:27:22 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:53:49 UTC