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


Groups > comp.lang.javascript > #29039 > unrolled thread

Re: "Node.textContent"

Started byThomas 'PointedEars' Lahn <PointedEars@web.de>
First post2015-12-25 16:18 +0100
Last post2015-12-25 16:18 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.javascript

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: "Node.textContent" Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-12-25 16:18 +0100

#29039 — Re: "Node.textContent"

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2015-12-25 16:18 +0100
SubjectRe: "Node.textContent"
Message-ID<362768664.UzE4vE33xy@PointedEars.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.

[toc] | [standalone]


Back to top | Article view | comp.lang.javascript


csiph-web