Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!us.feeder.erje.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Dr J R Stockton Newsgroups: comp.lang.javascript Subject: Re: FAQ Topic - Why does my code fail to access an element? (2013-01-26) Date: Wed, 30 Jan 2013 15:14:16 +0000 Organization: Home Lines: 41 Message-ID: References: <51031c8a$0$289$14726298@news.sunsite.dk> <6HBzbHF9$5BRFwBz@J.A830F0FF37FB96852AD08924D9443D28E23ED5CD> Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: mx05.eternal-september.org; posting-host="01da9e6251d9b3ee47bb70bebae42d53"; logging-data="8737"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+8Q20Lbh0jXxU/S7porgEtdZLzp/REBMI=" User-Agent: Turnpike/6.05-S () Cancel-Lock: sha1:cALpEoN+L/80H0BZv9ZUy+K7HD8= Xref: csiph.com comp.lang.javascript:18303 In comp.lang.javascript message <6HBzbHF9$5BRFwBz@J.A830F0FF37FB96852AD0 8924D9443D28E23ED5CD>, Tue, 29 Jan 2013 10:10:05, John G Harris posted: >In message , 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 >>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. > > > > If anyone else is worried by this then better wording would be : > >An element can only be accessed after it comes into existence in the >document. > > Or for the really picky : > >The DOM object representing an HTML element can only be accessed after >it comes into existence in the document object. Certainly not. Those are accurate only if read carefully, and it easy enough to write a version lacking that fault, and another : "An element can be accessed only while it exists in a document." -- (c) John Stockton, Surrey, UK. ¬@merlyn.demon.co.uk Turnpike v6.05 MIME. Web - FAQish topics, acronyms, & links. Proper <= 4-line sig. separator as above, a line exactly "-- " (SonOfRFC1036) Do not Mail News to me. Before a reply, quote with ">" or "> " (SonOfRFC1036)