Path: csiph.com!news.mixmin.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: "Christoph M. Becker" Newsgroups: comp.lang.javascript Subject: Re: "Node.textContent" Date: Fri, 25 Dec 2015 11:55:41 +0100 Organization: solani.org Lines: 26 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: solani.org 1451040932 28898 eJwNxskBwDAIA7CVCI45xilQ9h+h1UuEHWu/RrtcLnScqQhJCW+vmVLQgXdLH+ScRIf8VQvNDwQPEBg= (25 Dec 2015 10:55:32 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Fri, 25 Dec 2015 10:55:32 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 X-User-ID: eJwNysERACEIA8CaGEjClRNF+y/h3PciGdwqgoWLy5SgTHesHsmNU3jhrITmU7e2QVuuCf0FZRCS In-Reply-To: Cancel-Lock: sha1:vcjTxzGOyzfzaf4AGv+I2yQPRCo= X-NNTP-Posting-Host: eJwFwQcRADAIBDBLrGfIAa74l9AE6uwb5nDD4bhCbnKIFN5vIl8hBVMpEdynS60mZOKzig8KehA/ Xref: csiph.com comp.lang.javascript:29036 Stefan Ram wrote: > The web page at > > developer.mozilla.org/en-US/docs/Web/API/Node > > contains: » > > Node.textContent > > Is a DOMString representing the textual content > of an element and all its descendants. > > «. Do I think correctly when I think that when this property > represents the textual content /of an element/, I would > expect it to be part of the interface »Element« and not »Node«? > > The documentation does not even bother to specify the value > or meaning of this property for a non-element node. See the relevant specification: . -- Christoph M. Becker