Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #29039
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: "Node.textContent" |
| Date | 2015-12-25 16:18 +0100 |
| Organization | PointedEars Software (PES) |
| Message-ID | <362768664.UzE4vE33xy@PointedEars.de> (permalink) |
| References | <Node.textContent-20151224191208@ram.dialup.fu-berlin.de> |
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«? No, because the “Element” interface extends the “Node” interface. > The documentation does not even bother to specify the value > or meaning of this property for a non-element node. MDN is not supposed to nor does it claim to be a substitute for Web standards. Follow the references. > BTW: In the above quotation, they use the Verb »Is«, not > »Returns«. Which is correct as it is not a method. -- PointedEars FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/> Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix> Please do not cc me. / Bitte keine Kopien per E-Mail.
Back to comp.lang.javascript | Previous | Next | Find similar | Unroll thread
Re: "Node.textContent" Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-12-25 16:18 +0100
csiph-web