From 41355f248a4770c2181ac5c66e39413750e5b444 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Brunk?= Date: Sat, 14 Jul 2018 22:49:38 +0200 Subject: [PATCH] Add innerText attribute to Node --- src/main/scala/org/scalajs/dom/raw/lib.scala | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/scala/org/scalajs/dom/raw/lib.scala b/src/main/scala/org/scalajs/dom/raw/lib.scala index 82ba1879a..769126d42 100644 --- a/src/main/scala/org/scalajs/dom/raw/lib.scala +++ b/src/main/scala/org/scalajs/dom/raw/lib.scala @@ -1257,6 +1257,15 @@ abstract class Node extends EventTarget { * MDN */ def insertBefore(newChild: Node, refChild: Node): Node = js.native + + /** + * Represents the "rendered" text content of a node and its descendants. + * As a getter, it approximates the text the user would get if they highlighted the + * contents of the element with the cursor and then copied to the clipboard. + * + * MDN + */ + var innerText: String = js.native } @js.native