Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #16267

Re: document.elementname vs document.getElementById("id")

Path csiph.com!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail
From "Jukka K. Korpela" <jkorpela@cs.tut.fi>
Newsgroups comp.lang.javascript
Subject Re: document.elementname vs document.getElementById("id")
Date Sun, 30 Sep 2012 13:44:26 +0300
Organization A noiseless patient Spider
Lines 20
Message-ID <k497qb$p60$1@dont-email.me> (permalink)
References <k47drn$q7j$1@dont-email.me> <k48a8p$he5$1@speranza.aioe.org> <1835562.mW7zK3R6x3@PointedEars.de>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
Injection-Date Sun, 30 Sep 2012 10:44:27 +0000 (UTC)
Injection-Info mx04.eternal-september.org; posting-host="9e0ae8574c58208bf47738e1c9986fe4"; logging-data="25792"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX196m4qXpkZ5Qknmnv+wWa1E"
User-Agent Mozilla/5.0 (Windows NT 6.1; rv:15.0) Gecko/20120907 Thunderbird/15.0.1
In-Reply-To <1835562.mW7zK3R6x3@PointedEars.de>
X-Antivirus-Status Clean
X-Antivirus avast! (VPS 120930-0, 30.09.2012), Outbound message
Cancel-Lock sha1:qiCSzkdhfOVhIub+wY4zypZmjr0=
Xref csiph.com comp.lang.javascript:16267

Show key headers only | View raw


2012-09-30 13:22, Thomas 'PointedEars' Lahn wrote:

>> <http://www.w3.org/TR/xhtml1/diffs.html>
> Nothing there supports your argument.  What is stated there instead is that
> the `id' attribute is of*type*  ID in XHTML 1.0, as opposed to HTML 4.01
> where it is of type NAME

As usual, the resident troll gets things all wrong in his eagerness to 
lecture pointlessly on marginal or completely off-topic issues that he 
has digested rather poorly. Surely if you read just the infamous 
Appendix C, and maybe the sloppy wording in HTML 4.01 spec prose, you 
might get such fancy ideas. But the HTML 4.01 Document Type Definitions, 
which are all that matters regarding attribute type defined per the 
spec, say:

<!ENTITY % coreattrs
  "id          ID             #IMPLIED  -- document-wide unique id --

-- 
Yucca, http://www.cs.tut.fi/~jkorpela/

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

document.elementname vs document.getElementById("id") Denis McMahon <denismfmcmahon@gmail.com> - 2012-09-29 18:15 +0000
  Re: document.elementname vs document.getElementById("id") Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-09-29 22:17 +0200
  Re: document.elementname vs document.getElementById("id") dann90038@gmail.com - 2012-09-29 16:21 -0700
  Re: document.elementname vs document.getElementById("id") "J.R." <groups_jr-1@yahoo.com.br> - 2012-09-29 23:20 -0300
    Re: document.elementname vs document.getElementById("id") "J.R." <groups_jr-1@yahoo.com.br> - 2012-09-29 19:53 -0700
    Re: document.elementname vs document.getElementById("id") "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2012-09-30 11:02 +0300
      Re: document.elementname vs document.getElementById("id") Denis McMahon <denismfmcmahon@gmail.com> - 2012-09-30 13:10 +0000
      Re: document.elementname vs document.getElementById("id") Denis McMahon <denismfmcmahon@gmail.com> - 2012-09-30 13:14 +0000
        Re: document.elementname vs document.getElementById("id") "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2012-09-30 17:20 +0300
          Re: document.elementname vs document.getElementById("id") Eric Bednarz <bednarz@fahr-zur-hoelle.org> - 2012-09-30 21:09 +0200
            Re: document.elementname vs document.getElementById("id") "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2012-09-30 22:28 +0300
              Re: document.elementname vs document.getElementById("id") Eric Bednarz <bednarz@fahr-zur-hoelle.org> - 2012-09-30 21:53 +0200
            Re: document.elementname vs document.getElementById("id") Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-09-30 21:53 +0200
          Re: document.elementname vs document.getElementById("id") Denis McMahon <denismfmcmahon@gmail.com> - 2012-09-30 22:07 +0000
            Re: document.elementname vs document.getElementById("id") "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2012-10-01 06:23 +0300
              Re: document.elementname vs document.getElementById("id") Denis McMahon <denismfmcmahon@gmail.com> - 2012-10-01 08:11 +0000
                Re: document.elementname vs document.getElementById("id") Stefan Weiss <krewecherl@gmail.com> - 2012-10-01 11:25 +0200
      Re: document.elementname vs document.getElementById("id") "J.R." <groups_jr-1@yahoo.com.br> - 2012-09-30 15:10 -0300
        Re: document.elementname vs document.getElementById("id") Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-09-30 20:43 +0200
    Re: document.elementname vs document.getElementById("id") Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-09-30 12:22 +0200
      Re: document.elementname vs document.getElementById("id") "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2012-09-30 13:44 +0300
        Re: document.elementname vs document.getElementById("id") Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-09-30 13:46 +0200
  Re: document.elementname vs document.getElementById("id") Dr J R Stockton <reply1239@merlyn.demon.co.uk.invalid> - 2012-09-30 20:10 +0100

csiph-web