Skip to content

Commit 8218e0f

Browse files
committed
Merge pull request #131 from mseddon/script-onload-and-mutable-body
Fix #48: HTMLScriptElement.onload, mutable Document.body
2 parents cc4dda9 + ac85867 commit 8218e0f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ abstract class HTMLDocument extends Document {
153153
*
154154
* MDN
155155
*/
156-
def body: HTMLElement = js.native
156+
var body: HTMLElement = js.native
157157

158158
/**
159159
* Returns the currently focused element, that is, the element that will get
@@ -1596,6 +1596,8 @@ abstract class HTMLScriptElement extends HTMLElement {
15961596
* MDN
15971597
*/
15981598
var async: Boolean = js.native
1599+
1600+
var onload: js.Function1[Event, _] = js.native
15991601
}
16001602

16011603
/**

0 commit comments

Comments
 (0)