Skip to content

Commit d02c0ca

Browse files
authored
Merge pull request scala-js#333 from sbrunk/inner-text
Add innerText attribute to Node
2 parents 0eeaa48 + 41355f2 commit d02c0ca

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/main/scala/org/scalajs/dom/raw/lib.scala

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1257,6 +1257,15 @@ abstract class Node extends EventTarget {
12571257
* MDN
12581258
*/
12591259
def insertBefore(newChild: Node, refChild: Node): Node = js.native
1260+
1261+
/**
1262+
* Represents the "rendered" text content of a node and its descendants.
1263+
* As a getter, it approximates the text the user would get if they highlighted the
1264+
* contents of the element with the cursor and then copied to the clipboard.
1265+
*
1266+
* MDN
1267+
*/
1268+
var innerText: String = js.native
12601269
}
12611270

12621271
@js.native

0 commit comments

Comments
 (0)