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


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

Re: "Node.textContent"

Started byJJ <jj4public@vfemail.net>
First post2015-12-25 11:50 +0700
Last post2015-12-25 17:49 +0100
Articles 3 — 3 participants

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" JJ <jj4public@vfemail.net> - 2015-12-25 11:50 +0700
    Re: "Node.textContent" "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-12-25 13:36 +0100
    Re: "Node.textContent" Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-12-25 17:49 +0100

#29035 — Re: "Node.textContent"

FromJJ <jj4public@vfemail.net>
Date2015-12-25 11:50 +0700
SubjectRe: "Node.textContent"
Message-ID<1g4v96ev8k29o.15qzulwqjvasj$.dlg@40tude.net>
On 24 Dec 2015 18:21:51 GMT, 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.
> 
>   BTW: In the above quotation, they use the Verb »Is«, not
>   »Returns«.

textContent used to be a member of Element, but it seems that it has changed
since DOM3.

[toc] | [next] | [standalone]


#29037

From"Evertjan." <exxjxw.hannivoort@inter.nl.net>
Date2015-12-25 13:36 +0100
Message-ID<XnsA57B8A5AE8935eejj99@194.109.6.166>
In reply to#29035
JJ <jj4public@vfemail.net> wrote on 25 Dec 2015 in comp.lang.javascript:

> textContent used to be a member of Element,

Membership fees were overdue?

> but it seems that it has changed since DOM3.

-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

[toc] | [prev] | [next] | [standalone]


#29040

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2015-12-25 17:49 +0100
Message-ID<2972328.J5IDtcBq7H@PointedEars.de>
In reply to#29035
JJ wrote:

> textContent used to be a member of Element,

No, it did not:

<http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-745549614>

> but it seems that it has changed since DOM3.

The “textContent” attribute was only introduced with DOM Level 3 Core,
and it was introduced there on the Node interface:

,-<http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-1950641247>
| 
| […]
| 
| interface Node {
|   […]
|   // Introduced in DOM Level 3:
|       attribute DOMString       textContent;
| […]

That has not changed:

,-<http://www.w3.org/TR/2015/REC-dom-20151119/#node>
| 
| interface Node : EventTarget {
|   […]
|          attribute DOMString? textContent;
| […]  

-- 
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] | [prev] | [standalone]


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


csiph-web