Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #18286
| Newsgroups | comp.lang.javascript |
|---|---|
| Subject | Re: FAQ Topic - Why does my code fail to access an element? (2013-01-26) |
| From | "Evertjan." <exxjxw.hannivoort@inter.nl.net> |
| References | <51031c8a$0$289$14726298@news.sunsite.dk> <q7VcV3KhTYBRFwQv@invalid.uk.co.demon.merlyn.invalid> <BqidnVGAKqG4xJvMnZ2dnUVZ_vWdnZ2d@westnet.com.au> <XnsA156A595A1093eejj99@194.109.133.133> <Jd2dnRnQztPfcpvMnZ2dnUVZ_sadnZ2d@westnet.com.au> |
| Date | 2013-01-29 00:03 +0100 |
| Message-ID | <XnsA157A128963eejj99@194.109.133.133> (permalink) |
Andrew Poulos wrote on 28 jan 2013 in comp.lang.javascript: > On 29/01/2013 2:16 AM, Evertjan. wrote: >> Andrew Poulos wrote on 28 jan 2013 in comp.lang.javascript: >> >>> On 28/01/2013 6:49 AM, Dr J R Stockton wrote: >>>> In comp.lang.javascript message >>>> <51031c8a$0$289$14726298@news.sunsite.dk >>>>> , Sat, 26 Jan 2013 00:00:03, FAQ server >>>>> <javascript@dotinternet.be> >>>> posted: >>>> >>>>> >>>>> An element can only be accessed after it exists in the document. >>>>> >>>> >>>> False. An element cannot be accessed after it exists; it can only >>>> be accessed while it exists. >>> >>> And how have you defined "exists". Surely an element "exists" in the >>> HTML even if the browser has not yet parsed the relevant HTML? >> >> HTML is just a string of text, the only elements being character >> numbers. > > Are saying that when some agent parses some HTML then and only then > has the document come into existence? Hence an element can't exist > until the document does? Quite so, if you define document as part of the DOM-tree. [However you could define document as a piece of parchment, or a .docx or .xlsx file or a driving licence on a plastic card.] And "exist": A document's element, in the sense of accessability by clientside code, surely must be defined with the above DOM-tree definition. Some elements are part of the document in one browser, but not in another. For example an 'empty text' element, where the source-html is the same. That is why sometimes the count of a childNodes-collection differs to anyones amazement. "..ML": A "mark-up language" just defines source-text, that contains simple text AND markup, specially defined text-parts that are not to be displayed but serve as suggestions of how to visualize this text in the widest sense. Widest, because it can suggest dynamic views, sounds, smells, etc. Suggestions, because the browser engine has and must have much freedom of interpretation. The different parts are called elements of the build document. "HT..": "hypertext" just defines the ability to make externally-pointing links in the document, you could perhaps call an interactive dynamic property. -- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress)
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
FAQ Topic - Why does my code fail to access an element? (2013-01-26) "FAQ server" <javascript@dotinternet.be> - 2013-01-26 00:00 +0000
Re: FAQ Topic - Why does my code fail to access an element? (2013-01-26) Dr J R Stockton <reply1300@merlyn.demon.co.uk.invalid> - 2013-01-27 19:49 +0000
Re: FAQ Topic - Why does my code fail to access an element? (2013-01-26) "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-01-28 01:32 +0100
Re: FAQ Topic - Why does my code fail to access an element? (2013-01-26) Richard Yates <richard@yatesguitar.com> - 2013-01-27 19:16 -0800
Re: FAQ Topic - Why does my code fail to access an element? (2013-01-26) "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-01-28 11:58 +0100
Re: FAQ Topic - Why does my code fail to access an element? (2013-01-26) Dr J R Stockton <reply1300@merlyn.demon.co.uk.invalid> - 2013-01-29 23:12 +0000
Re: FAQ Topic - Why does my code fail to access an element? (2013-01-26) Gene Wirchenko <genew@telus.net> - 2013-01-29 16:45 -0800
Re: FAQ Topic - Why does my code fail to access an element? (2013-01-26) Andrew Poulos <ap_prog@hotmail.com> - 2013-01-30 14:38 +1100
Re: FAQ Topic - Why does my code fail to access an element? (2013-01-26) "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-01-30 09:52 +0100
Re: FAQ Topic - Why does my code fail to access an element? (2013-01-26) "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-01-30 09:31 +0100
Re: FAQ Topic - Why does my code fail to access an element? (2013-01-26) Andrew Poulos <ap_prog@hotmail.com> - 2013-01-28 21:55 +1100
Re: FAQ Topic - Why does my code fail to access an element? (2013-01-26) "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-01-28 16:16 +0100
Re: FAQ Topic - Why does my code fail to access an element? (2013-01-26) Andrew Poulos <ap_prog@hotmail.com> - 2013-01-29 08:35 +1100
Re: FAQ Topic - Why does my code fail to access an element? (2013-01-26) Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-01-28 23:40 +0100
Re: FAQ Topic - Why does my code fail to access an element? (2013-01-26) "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-01-29 00:21 +0100
Re: FAQ Topic - Why does my code fail to access an element? (2013-01-26) Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-01-29 00:53 +0100
Re: FAQ Topic - Why does my code fail to access an element? (2013-01-26) "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-01-29 21:24 +0100
Re: FAQ Topic - Why does my code fail to access an element? (2013-01-26) John G Harris <niam@jghnorth.org.uk.invalid> - 2013-01-30 14:31 +0000
Re: FAQ Topic - Why does my code fail to access an element? (2013-01-26) "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-01-30 20:22 +0100
Re: FAQ Topic - Why does my code fail to access an element? (2013-01-26) John G Harris <niam@jghnorth.org.uk.invalid> - 2013-01-31 10:55 +0000
Re: FAQ Topic - Why does my code fail to access an element? (2013-01-26) "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-01-31 22:42 +0100
Re: FAQ Topic - Why does my code fail to access an element? (2013-01-26) John G Harris <niam@jghnorth.org.uk.invalid> - 2013-02-01 10:55 +0000
Re: FAQ Topic - Why does my code fail to access an element? (2013-01-26) "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-02-01 16:03 +0100
Re: FAQ Topic - Why does my code fail to access an element? (2013-01-26) Dr J R Stockton <reply1300@merlyn.demon.co.uk.invalid> - 2013-01-30 15:09 +0000
Re: FAQ Topic - Why does my code fail to access an element? (2013-01-26) "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-01-29 00:03 +0100
Re: FAQ Topic - Why does my code fail to access an element? (2013-01-26) John G Harris <niam@jghnorth.org.invalid> - 2013-01-29 10:10 +0000
Re: FAQ Topic - Why does my code fail to access an element? (2013-01-26) Dr J R Stockton <reply1300@merlyn.demon.co.uk.invalid> - 2013-01-30 15:14 +0000
Re: FAQ Topic - Why does my code fail to access an element? (2013-01-26) John G Harris <niam@jghnorth.org.uk.invalid> - 2013-01-31 10:50 +0000
Re: FAQ Topic - Why does my code fail to access an element? (2013-01-26) Dr J R Stockton <reply1300@merlyn.demon.co.uk.invalid> - 2013-02-01 23:29 +0000
Re: FAQ Topic - Why does my code fail to access an element? (2013-01-26) John G Harris <niam@jghnorth.org.uk.invalid> - 2013-02-02 11:10 +0000
Re: FAQ Topic - Why does my code fail to access an element? (2013-01-26) Dr J R Stockton <reply1300@merlyn.demon.co.uk.invalid> - 2013-02-03 19:39 +0000
Re: FAQ Topic - Why does my code fail to access an element? (2013-01-26) Christoph Becker <cmbecker69@gmx.de> - 2013-02-04 01:56 +0100
Re: FAQ Topic - Why does my code fail to access an element? (2013-01-26) Dr J R Stockton <reply1300@merlyn.demon.co.uk.invalid> - 2013-02-06 16:08 +0000
csiph-web