that actually makes sense. sometimes the world is less crazy than it appears.
On May 2, 3:09 pm, Sanford Whiteman <[email protected]> wrote: > > then why can you get the elements by class name or just by tag type? > > An `id` has to be a unique document-wide ID attribute in order to be > queried that way. You can create an attribute that happens to be named > `id`, but you can't technically have ID attributes in a disconnected > DOM "island". > > You can, however, query the id as a simple attribute: > > getElement('[id=myid]') > > Classes and tags are not so closely tied to the document (and thus to > the DTD). > > -- S.
