Re: Confirmation of xml:id behaviour

[ Sorry for the tardy reply; life has been ... interesting :-) ]

/ Cameron McCormack <cam@mcc.id.au> was heard to say:
| Daniel Veillard:
|>   Everything else you seems to assume looks dependand on how the
|> application interpret the XML, including the svg and script element,
|> and that xml:id cannot garantee it in itself.
|
| OK, so given Document.getElementById() says:
|
|   Returns the Element that has an ID attribute with the given value. If
|   no such element exists, this returns null.
|     — http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-getElBId
|
| I think it should alert true.

So do I.

| It just seemed surprising to me that invalid IDs were effectively
| treated the same as valid ones, but if that’s what’s meant to happen,
| I’ll go with it.

Yes, that's what's meant to happen. An invalid ID is an error, but if
you ignore the error, you get an attribute of type ID even if the
normalized string value is not a valid XML ID.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | Truth lies within a little uncertain
http://nwalsh.com/            | compass, but error is immense.

Received on Wednesday, 7 May 2008 11:41:23 UTC