Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Node.innerText

非標準
This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.

概要

Node.innerText はノードとその子孫のテキスト内容を示す非標準のプロパティです。 ゲッターとして、カーソルで要素の内容を強調しクリップボードにコピーした際のテキストに近いものが取得できます。

Node.textContent は、Node.innerText とは重要な違いがあるものの、やや似ている標準化された代替手段です。

仕様

仕様の一部ではありません。

マイクロソフトによる説明が MSDN にあります。

kangax 氏のブログポストに仕様のたたき台があります。

ブラウザの互換性

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support 4 45 (45) 6 9.6 (probably earlier) 3
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support 2.3 (probably earlier) 45.0 (45) 10 (probably earlier) 12 4.1 (probably earlier)

関連情報

ドキュメントのタグと貢献者

 このページの貢献者: j5a
 最終更新者: j5a,