From 408830d876f5b1c2db38260d9298c5f00a3ee7e3 Mon Sep 17 00:00:00 2001 From: Arman Bilge Date: Sat, 16 Apr 2022 14:29:29 +0000 Subject: [PATCH 01/47] Extract AbstractRange interface --- .../scala/org/scalajs/dom/AbstractRange.scala | 43 +++++++++++++++++++ .../main/scala/org/scalajs/dom/Range.scala | 28 +----------- 2 files changed, 44 insertions(+), 27 deletions(-) create mode 100644 dom/src/main/scala/org/scalajs/dom/AbstractRange.scala diff --git a/dom/src/main/scala/org/scalajs/dom/AbstractRange.scala b/dom/src/main/scala/org/scalajs/dom/AbstractRange.scala new file mode 100644 index 000000000..d69ecd585 --- /dev/null +++ b/dom/src/main/scala/org/scalajs/dom/AbstractRange.scala @@ -0,0 +1,43 @@ +/** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API + * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. + * http://creativecommons.org/licenses/by-sa/2.5/ + * + * Everything else is under the MIT License http://opensource.org/licenses/MIT + */ +package org.scalajs.dom + +import scala.scalajs.js + +/** The AbstractRange abstract interface is the base class upon which all DOM range types are defined. A range is an + * object that indicates the start and end points of a section of content within the document. + */ +@js.native +trait AbstractRange extends js.Object { + + /** The Range.startOffset read-only property returns a number representing where in the startContainer the Range + * starts. + */ + def startOffset: Int = js.native + + /** The Range.collapsed read-only property returns a Boolean flag indicating whether the start and end points of the + * Range are at the same position. It returns true if the start and end boundary points of the Range are the same + * point in the DOM, false if not. + */ + def collapsed: Boolean = js.native + + /** The Range.endOffset read-only property returns a number representing where in the Range.endContainer the Range + * ends. + */ + def endOffset: Int = js.native + + /** The Range.startContainer read-only property returns the Node within which the Range starts. To change the start + * position of a node, use one of the Range.setStart() methods. + */ + def startContainer: Node = js.native + + /** The Range.endContainer read-only property returns the Node within which the Range ends. To change the end position + * of a node, use the Range.setEnd() method or a similar one. + */ + def endContainer: Node = js.native + +} diff --git a/dom/src/main/scala/org/scalajs/dom/Range.scala b/dom/src/main/scala/org/scalajs/dom/Range.scala index b19627378..67b5cb070 100644 --- a/dom/src/main/scala/org/scalajs/dom/Range.scala +++ b/dom/src/main/scala/org/scalajs/dom/Range.scala @@ -17,33 +17,7 @@ import scala.scalajs.js.annotation._ */ @js.native @JSGlobal -class Range extends js.Object { - - /** The Range.startOffset read-only property returns a number representing where in the startContainer the Range - * starts. - */ - def startOffset: Int = js.native - - /** The Range.collapsed read-only property returns a Boolean flag indicating whether the start and end points of the - * Range are at the same position. It returns true if the start and end boundary points of the Range are the same - * point in the DOM, false if not. - */ - def collapsed: Boolean = js.native - - /** The Range.endOffset read-only property returns a number representing where in the Range.endContainer the Range - * ends. - */ - def endOffset: Int = js.native - - /** The Range.startContainer read-only property returns the Node within which the Range starts. To change the start - * position of a node, use one of the Range.setStart() methods. - */ - def startContainer: Node = js.native - - /** The Range.endContainer read-only property returns the Node within which the Range ends. To change the end position - * of a node, use the Range.setEnd() method or a similar one. - */ - def endContainer: Node = js.native +class Range extends AbstractRange { /** The Range.commonAncestorContainer read-only property returns the deepest, or further down the document tree, Node * that contains both the Range.startContainer and Range.endContainer nodes. From b2d6b54f6ee1e6de8a8a08aaea04586609a7338d Mon Sep 17 00:00:00 2001 From: Arman Bilge Date: Sat, 16 Apr 2022 14:36:09 +0000 Subject: [PATCH 02/47] Add StaticRange --- .../scala/org/scalajs/dom/StaticRange.scala | 21 +++++++++++++++++++ .../org/scalajs/dom/StaticRangeInit.scala | 18 ++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 dom/src/main/scala/org/scalajs/dom/StaticRange.scala create mode 100644 dom/src/main/scala/org/scalajs/dom/StaticRangeInit.scala diff --git a/dom/src/main/scala/org/scalajs/dom/StaticRange.scala b/dom/src/main/scala/org/scalajs/dom/StaticRange.scala new file mode 100644 index 000000000..dd8678f5a --- /dev/null +++ b/dom/src/main/scala/org/scalajs/dom/StaticRange.scala @@ -0,0 +1,21 @@ +/** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API + * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. + * http://creativecommons.org/licenses/by-sa/2.5/ + * + * Everything else is under the MIT License http://opensource.org/licenses/MIT + */ +package org.scalajs.dom + +import scala.scalajs.js +import scala.scalajs.js.annotation._ + +/** The DOM StaticRange interface extends AbstractRange to provide a method to specify a range of content in the DOM + * whose contents don't update to reflect changes which occur within the DOM tree. + * + * This interface offers the same set of properties and methods as AbstractRange. + * + * AbstractRange and StaticRange are not available from web workers. + */ +@js.native +@JSGlobal +class StaticRange(init: StaticRangeInit) extends AbstractRange diff --git a/dom/src/main/scala/org/scalajs/dom/StaticRangeInit.scala b/dom/src/main/scala/org/scalajs/dom/StaticRangeInit.scala new file mode 100644 index 000000000..0fb9e815a --- /dev/null +++ b/dom/src/main/scala/org/scalajs/dom/StaticRangeInit.scala @@ -0,0 +1,18 @@ +package org.scalajs.dom + +import scala.scalajs.js + +trait StaticRangeInit extends js.Object { + + /** The offset into the starting node at which the first character of the range is found. */ + val startOffset: Int + + /** The offset into the node indicated by endOffset at which the last character in the range is located. */ + val endOffset: Int + + /** The Node in which the starting point of the range is located. */ + val startContainer: Node + + /** The Node in which the end point of the range is located. */ + val endContainer: Node +} From aba6ff84b7a8e5ccb564d48b5817f97984b1252e Mon Sep 17 00:00:00 2001 From: Arman Bilge Date: Sat, 16 Apr 2022 15:20:25 +0000 Subject: [PATCH 03/47] Add InputEvent --- .../scala-2/org/scalajs/dom/InputType.scala | 55 +++++++++++++++++++ .../scala-3/org/scalajs/dom/InputType.scala | 54 ++++++++++++++++++ .../scala/org/scalajs/dom/InputEvent.scala | 41 ++++++++++++++ .../org/scalajs/dom/InputEventInit.scala | 17 ++++++ 4 files changed, 167 insertions(+) create mode 100644 dom/src/main/scala-2/org/scalajs/dom/InputType.scala create mode 100644 dom/src/main/scala-3/org/scalajs/dom/InputType.scala create mode 100644 dom/src/main/scala/org/scalajs/dom/InputEvent.scala create mode 100644 dom/src/main/scala/org/scalajs/dom/InputEventInit.scala diff --git a/dom/src/main/scala-2/org/scalajs/dom/InputType.scala b/dom/src/main/scala-2/org/scalajs/dom/InputType.scala new file mode 100644 index 000000000..d088798c8 --- /dev/null +++ b/dom/src/main/scala-2/org/scalajs/dom/InputType.scala @@ -0,0 +1,55 @@ +package org.scalajs.dom + +import scala.scalajs.js + +@js.native +sealed trait InputType extends js.Any + +object InputType { + val insertText: InputType = "insertText".asInstanceOf[InputType] + val insertReplacementText: InputType = "insertReplacementText".asInstanceOf[InputType] + val insertLineBreak: InputType = "insertLineBreak".asInstanceOf[InputType] + val insertParagraph: InputType = "insertParagraph".asInstanceOf[InputType] + val insertOrderedList: InputType = "insertOrderedList".asInstanceOf[InputType] + val insertUnorderedList: InputType = "insertUnorderedList".asInstanceOf[InputType] + val insertHorizontalRule: InputType = "insertHorizontalRule".asInstanceOf[InputType] + val insertFromYank: InputType = "insertFromYank".asInstanceOf[InputType] + val insertFromDrop: InputType = "insertFromDrop".asInstanceOf[InputType] + val insertFromPaste: InputType = "insertFromPaste".asInstanceOf[InputType] + val insertFromPasteAsQuotation: InputType = "insertFromPasteAsQuotation".asInstanceOf[InputType] + val insertTranspose: InputType = "insertTranspose".asInstanceOf[InputType] + val insertCompositionText: InputType = "insertCompositionText".asInstanceOf[InputType] + val insertLink: InputType = "insertLink".asInstanceOf[InputType] + val deleteWordBackward: InputType = "deleteWordBackward".asInstanceOf[InputType] + val deleteWordForward: InputType = "deleteWordForward".asInstanceOf[InputType] + val deleteSoftLineBackward: InputType = "deleteSoftLineBackward".asInstanceOf[InputType] + val deleteSoftLineForward: InputType = "deleteSoftLineForward".asInstanceOf[InputType] + val deleteEntireSoftLine: InputType = "deleteEntireSoftLine".asInstanceOf[InputType] + val deleteHardLineBackward: InputType = "deleteHardLineBackward".asInstanceOf[InputType] + val deleteHardLineForward: InputType = "deleteHardLineForward".asInstanceOf[InputType] + val deleteByDrag: InputType = "deleteByDrag".asInstanceOf[InputType] + val deleteByCut: InputType = "deleteByCut".asInstanceOf[InputType] + val deleteContent: InputType = "deleteContent".asInstanceOf[InputType] + val deleteContentBackward: InputType = "deleteContentBackward".asInstanceOf[InputType] + val deleteContentForward: InputType = "deleteContentForward".asInstanceOf[InputType] + val historyUndo: InputType = "historyUndo".asInstanceOf[InputType] + val historyRedo: InputType = "historyRedo".asInstanceOf[InputType] + val formatBold: InputType = "formatBold".asInstanceOf[InputType] + val formatItalic: InputType = "formatItalic".asInstanceOf[InputType] + val formatUnderline: InputType = "formatUnderline".asInstanceOf[InputType] + val formatStrikeThrough: InputType = "formatStrikeThrough".asInstanceOf[InputType] + val formatSuperscript: InputType = "formatSuperscript".asInstanceOf[InputType] + val formatSubscript: InputType = "formatSubscript".asInstanceOf[InputType] + val formatJustifyFull: InputType = "formatJustifyFull".asInstanceOf[InputType] + val formatJustifyCenter: InputType = "formatJustifyCenter".asInstanceOf[InputType] + val formatJustifyRight: InputType = "formatJustifyRight".asInstanceOf[InputType] + val formatJustifyLeft: InputType = "formatJustifyLeft".asInstanceOf[InputType] + val formatIndent: InputType = "formatIndent".asInstanceOf[InputType] + val formatOutdent: InputType = "formatOutdent".asInstanceOf[InputType] + val formatRemove: InputType = "formatRemove".asInstanceOf[InputType] + val formatSetBlockTextDirection: InputType = "formatSetBlockTextDirection".asInstanceOf[InputType] + val formatSetInlineTextDirection: InputType = "formatSetInlineTextDirection".asInstanceOf[InputType] + val formatBackColor: InputType = "formatBackColor".asInstanceOf[InputType] + val formatFontColor: InputType = "formatFontColor".asInstanceOf[InputType] + val formatFontName: InputType = "formatFontName".asInstanceOf[InputType] +} diff --git a/dom/src/main/scala-3/org/scalajs/dom/InputType.scala b/dom/src/main/scala-3/org/scalajs/dom/InputType.scala new file mode 100644 index 000000000..e2878dc98 --- /dev/null +++ b/dom/src/main/scala-3/org/scalajs/dom/InputType.scala @@ -0,0 +1,54 @@ +package org.scalajs.dom + +import scala.scalajs.js + +opaque type InputType <: String = String + +object InputType { + val insertText: InputType = "insertText" + val insertReplacementText: InputType = "insertReplacementText" + val insertLineBreak: InputType = "insertLineBreak" + val insertParagraph: InputType = "insertParagraph" + val insertOrderedList: InputType = "insertOrderedList" + val insertUnorderedList: InputType = "insertUnorderedList" + val insertHorizontalRule: InputType = "insertHorizontalRule" + val insertFromYank: InputType = "insertFromYank" + val insertFromDrop: InputType = "insertFromDrop" + val insertFromPaste: InputType = "insertFromPaste" + val insertFromPasteAsQuotation: InputType = "insertFromPasteAsQuotation" + val insertTranspose: InputType = "insertTranspose" + val insertCompositionText: InputType = "insertCompositionText" + val insertLink: InputType = "insertLink" + val deleteWordBackward: InputType = "deleteWordBackward" + val deleteWordForward: InputType = "deleteWordForward" + val deleteSoftLineBackward: InputType = "deleteSoftLineBackward" + val deleteSoftLineForward: InputType = "deleteSoftLineForward" + val deleteEntireSoftLine: InputType = "deleteEntireSoftLine" + val deleteHardLineBackward: InputType = "deleteHardLineBackward" + val deleteHardLineForward: InputType = "deleteHardLineForward" + val deleteByDrag: InputType = "deleteByDrag" + val deleteByCut: InputType = "deleteByCut" + val deleteContent: InputType = "deleteContent" + val deleteContentBackward: InputType = "deleteContentBackward" + val deleteContentForward: InputType = "deleteContentForward" + val historyUndo: InputType = "historyUndo" + val historyRedo: InputType = "historyRedo" + val formatBold: InputType = "formatBold" + val formatItalic: InputType = "formatItalic" + val formatUnderline: InputType = "formatUnderline" + val formatStrikeThrough: InputType = "formatStrikeThrough" + val formatSuperscript: InputType = "formatSuperscript" + val formatSubscript: InputType = "formatSubscript" + val formatJustifyFull: InputType = "formatJustifyFull" + val formatJustifyCenter: InputType = "formatJustifyCenter" + val formatJustifyRight: InputType = "formatJustifyRight" + val formatJustifyLeft: InputType = "formatJustifyLeft" + val formatIndent: InputType = "formatIndent" + val formatOutdent: InputType = "formatOutdent" + val formatRemove: InputType = "formatRemove" + val formatSetBlockTextDirection: InputType = "formatSetBlockTextDirection" + val formatSetInlineTextDirection: InputType = "formatSetInlineTextDirection" + val formatBackColor: InputType = "formatBackColor" + val formatFontColor: InputType = "formatFontColor" + val formatFontName: InputType = "formatFontName" +} diff --git a/dom/src/main/scala/org/scalajs/dom/InputEvent.scala b/dom/src/main/scala/org/scalajs/dom/InputEvent.scala new file mode 100644 index 000000000..54a158fee --- /dev/null +++ b/dom/src/main/scala/org/scalajs/dom/InputEvent.scala @@ -0,0 +1,41 @@ +/** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API + * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. + * http://creativecommons.org/licenses/by-sa/2.5/ + * + * Everything else is under the MIT License http://opensource.org/licenses/MIT + */ +package org.scalajs.dom + +import scala.scalajs.js +import scala.scalajs.js.annotation._ + +/** The InputEvent interface represents an event notifying the user of editable content changes. */ +@js.native +@JSGlobal +class InputEvent(typeArg: String, init: InputEventInit) extends UIEvent(typeArg, init) { + + def this(typeArg: String) = this(typeArg, js.native) + + /** Returns a DOMString with the inserted characters. This may be an empty string if the change doesn't insert text + * (such as when deleting characters, for example). + */ + def data: String = js.native + + /** Returns a DataTransfer object containing information about richtext or plaintext data being added to or removed + * from editable content. + */ + def dataTransfer: DataTransfer = js.native + + /** Returns the type of change for editable content such as, for example, inserting, deleting, or formatting text. See + * the property page for a complete list of input types. + */ + def inputType: InputType = js.native + + /** Returns a Boolean value indicating if the event is fired after compositionstart and before compositionend. */ + def isComposing: Boolean = js.native + + /** Returns an array of static ranges that will be affected by a change to the DOM if the input event is not canceled. + */ + def getTargetRanges(): js.Array[StaticRange] = js.native + +} diff --git a/dom/src/main/scala/org/scalajs/dom/InputEventInit.scala b/dom/src/main/scala/org/scalajs/dom/InputEventInit.scala new file mode 100644 index 000000000..e2e79beb2 --- /dev/null +++ b/dom/src/main/scala/org/scalajs/dom/InputEventInit.scala @@ -0,0 +1,17 @@ +/** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API + * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. + * http://creativecommons.org/licenses/by-sa/2.5/ + * + * Everything else is under the MIT License http://opensource.org/licenses/MIT + */ +package org.scalajs.dom + +import scala.scalajs.js + +trait InputEventInit extends UIEventInit { + var inputType: js.UndefOr[InputType] = js.undefined + var data: js.UndefOr[String] = js.undefined + var dataTransfer: js.UndefOr[DataTransfer] = js.undefined + var isComposing: js.UndefOr[Boolean] = js.undefined + var ranges: js.UndefOr[js.Array[StaticRange]] +} From 0aa28eff630ad0addfb212bb3798c3aecea0ffe2 Mon Sep 17 00:00:00 2001 From: Arman Bilge Date: Sat, 16 Apr 2022 15:23:21 +0000 Subject: [PATCH 04/47] Update API reports --- api-reports/2_12.txt | 92 ++++++++++++++++++++++++++++++++++++++++++++ api-reports/2_13.txt | 92 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 184 insertions(+) diff --git a/api-reports/2_12.txt b/api-reports/2_12.txt index fc20a3f5d..cbda7e246 100644 --- a/api-reports/2_12.txt +++ b/api-reports/2_12.txt @@ -20,6 +20,11 @@ AbortSignal[JT] def dispatchEvent(evt: Event): Boolean AbortSignal[JT] var onabort: js.Function0[Any] AbortSignal[JT] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit AbortSignal[JT] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit +AbstractRange[JT] def collapsed: Boolean +AbstractRange[JT] def endContainer: Node +AbstractRange[JT] def endOffset: Int +AbstractRange[JT] def startContainer: Node +AbstractRange[JT] def startOffset: Int AbstractWorker[JT] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit AbstractWorker[JT] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit AbstractWorker[JT] def dispatchEvent(evt: Event): Boolean @@ -14184,6 +14189,84 @@ ImageCapture[JC] val track: MediaStreamTrack ImageData[JC] def data: js.Array[Int] ImageData[JC] def height: Int ImageData[JC] def width: Int +InputEvent[JC] def bubbles: Boolean +InputEvent[JC] def cancelBubble: Boolean +InputEvent[JC] def cancelable: Boolean +InputEvent[JC] def currentTarget: EventTarget +InputEvent[JC] def data: String +InputEvent[JC] def dataTransfer: DataTransfer +InputEvent[JC] def defaultPrevented: Boolean +InputEvent[JC] def detail: Int +InputEvent[JC] def eventPhase: Int +InputEvent[JC] def getTargetRanges(): js.Array[StaticRange] +InputEvent[JC] def inputType: InputType +InputEvent[JC] def isComposing: Boolean +InputEvent[JC] def isTrusted: Boolean +InputEvent[JC] def preventDefault(): Unit +InputEvent[JC] def stopImmediatePropagation(): Unit +InputEvent[JC] def stopPropagation(): Unit +InputEvent[JC] def target: EventTarget +InputEvent[JC] def timeStamp: Double +InputEvent[JC] def `type`: String +InputEvent[JC] def view: Window +InputEventInit[JT] var bubbles: js.UndefOr[Boolean] +InputEventInit[JT] var cancelable: js.UndefOr[Boolean] +InputEventInit[JT] var composed: js.UndefOr[Boolean] +InputEventInit[JT] var data: js.UndefOr[String] +InputEventInit[JT] var dataTransfer: js.UndefOr[DataTransfer] +InputEventInit[JT] var detail: js.UndefOr[Int] +InputEventInit[JT] var inputType: js.UndefOr[InputType] +InputEventInit[JT] var isComposing: js.UndefOr[Boolean] +InputEventInit[JT] var ranges: js.UndefOr[js.Array[StaticRange]] +InputEventInit[JT] var scoped: js.UndefOr[Boolean] +InputEventInit[JT] var view: js.UndefOr[Window] +InputType[JT] +InputType[SO] val deleteByCut: InputType +InputType[SO] val deleteByDrag: InputType +InputType[SO] val deleteContent: InputType +InputType[SO] val deleteContentBackward: InputType +InputType[SO] val deleteContentForward: InputType +InputType[SO] val deleteEntireSoftLine: InputType +InputType[SO] val deleteHardLineBackward: InputType +InputType[SO] val deleteHardLineForward: InputType +InputType[SO] val deleteSoftLineBackward: InputType +InputType[SO] val deleteSoftLineForward: InputType +InputType[SO] val deleteWordBackward: InputType +InputType[SO] val deleteWordForward: InputType +InputType[SO] val formatBackColor: InputType +InputType[SO] val formatBold: InputType +InputType[SO] val formatFontColor: InputType +InputType[SO] val formatFontName: InputType +InputType[SO] val formatIndent: InputType +InputType[SO] val formatItalic: InputType +InputType[SO] val formatJustifyCenter: InputType +InputType[SO] val formatJustifyFull: InputType +InputType[SO] val formatJustifyLeft: InputType +InputType[SO] val formatJustifyRight: InputType +InputType[SO] val formatOutdent: InputType +InputType[SO] val formatRemove: InputType +InputType[SO] val formatSetBlockTextDirection: InputType +InputType[SO] val formatSetInlineTextDirection: InputType +InputType[SO] val formatStrikeThrough: InputType +InputType[SO] val formatSubscript: InputType +InputType[SO] val formatSuperscript: InputType +InputType[SO] val formatUnderline: InputType +InputType[SO] val historyRedo: InputType +InputType[SO] val historyUndo: InputType +InputType[SO] val insertCompositionText: InputType +InputType[SO] val insertFromDrop: InputType +InputType[SO] val insertFromPaste: InputType +InputType[SO] val insertFromPasteAsQuotation: InputType +InputType[SO] val insertFromYank: InputType +InputType[SO] val insertHorizontalRule: InputType +InputType[SO] val insertLineBreak: InputType +InputType[SO] val insertLink: InputType +InputType[SO] val insertOrderedList: InputType +InputType[SO] val insertParagraph: InputType +InputType[SO] val insertReplacementText: InputType +InputType[SO] val insertText: InputType +InputType[SO] val insertTranspose: InputType +InputType[SO] val insertUnorderedList: InputType JsonWebKey[JT] var alg: js.Array[String] JsonWebKey[JT] var crv: String JsonWebKey[JT] var d: String @@ -24124,6 +24207,15 @@ SourceBufferList[JT] var onaddsourcebuffer: js.Function1[Event, Any] SourceBufferList[JT] var onremovesourcebuffer: js.Function1[Event, Any] SourceBufferList[JT] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit SourceBufferList[JT] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit +StaticRange[JC] def collapsed: Boolean +StaticRange[JC] def endContainer: Node +StaticRange[JC] def endOffset: Int +StaticRange[JC] def startContainer: Node +StaticRange[JC] def startOffset: Int +StaticRangeInit[JT] val endContainer: Node +StaticRangeInit[JT] val endOffset: Int +StaticRangeInit[JT] val startContainer: Node +StaticRangeInit[JT] val startOffset: Int StereoPannerNode[JT] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit StereoPannerNode[JT] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit StereoPannerNode[JT] var channelCount: Int diff --git a/api-reports/2_13.txt b/api-reports/2_13.txt index fc20a3f5d..cbda7e246 100644 --- a/api-reports/2_13.txt +++ b/api-reports/2_13.txt @@ -20,6 +20,11 @@ AbortSignal[JT] def dispatchEvent(evt: Event): Boolean AbortSignal[JT] var onabort: js.Function0[Any] AbortSignal[JT] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit AbortSignal[JT] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit +AbstractRange[JT] def collapsed: Boolean +AbstractRange[JT] def endContainer: Node +AbstractRange[JT] def endOffset: Int +AbstractRange[JT] def startContainer: Node +AbstractRange[JT] def startOffset: Int AbstractWorker[JT] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit AbstractWorker[JT] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit AbstractWorker[JT] def dispatchEvent(evt: Event): Boolean @@ -14184,6 +14189,84 @@ ImageCapture[JC] val track: MediaStreamTrack ImageData[JC] def data: js.Array[Int] ImageData[JC] def height: Int ImageData[JC] def width: Int +InputEvent[JC] def bubbles: Boolean +InputEvent[JC] def cancelBubble: Boolean +InputEvent[JC] def cancelable: Boolean +InputEvent[JC] def currentTarget: EventTarget +InputEvent[JC] def data: String +InputEvent[JC] def dataTransfer: DataTransfer +InputEvent[JC] def defaultPrevented: Boolean +InputEvent[JC] def detail: Int +InputEvent[JC] def eventPhase: Int +InputEvent[JC] def getTargetRanges(): js.Array[StaticRange] +InputEvent[JC] def inputType: InputType +InputEvent[JC] def isComposing: Boolean +InputEvent[JC] def isTrusted: Boolean +InputEvent[JC] def preventDefault(): Unit +InputEvent[JC] def stopImmediatePropagation(): Unit +InputEvent[JC] def stopPropagation(): Unit +InputEvent[JC] def target: EventTarget +InputEvent[JC] def timeStamp: Double +InputEvent[JC] def `type`: String +InputEvent[JC] def view: Window +InputEventInit[JT] var bubbles: js.UndefOr[Boolean] +InputEventInit[JT] var cancelable: js.UndefOr[Boolean] +InputEventInit[JT] var composed: js.UndefOr[Boolean] +InputEventInit[JT] var data: js.UndefOr[String] +InputEventInit[JT] var dataTransfer: js.UndefOr[DataTransfer] +InputEventInit[JT] var detail: js.UndefOr[Int] +InputEventInit[JT] var inputType: js.UndefOr[InputType] +InputEventInit[JT] var isComposing: js.UndefOr[Boolean] +InputEventInit[JT] var ranges: js.UndefOr[js.Array[StaticRange]] +InputEventInit[JT] var scoped: js.UndefOr[Boolean] +InputEventInit[JT] var view: js.UndefOr[Window] +InputType[JT] +InputType[SO] val deleteByCut: InputType +InputType[SO] val deleteByDrag: InputType +InputType[SO] val deleteContent: InputType +InputType[SO] val deleteContentBackward: InputType +InputType[SO] val deleteContentForward: InputType +InputType[SO] val deleteEntireSoftLine: InputType +InputType[SO] val deleteHardLineBackward: InputType +InputType[SO] val deleteHardLineForward: InputType +InputType[SO] val deleteSoftLineBackward: InputType +InputType[SO] val deleteSoftLineForward: InputType +InputType[SO] val deleteWordBackward: InputType +InputType[SO] val deleteWordForward: InputType +InputType[SO] val formatBackColor: InputType +InputType[SO] val formatBold: InputType +InputType[SO] val formatFontColor: InputType +InputType[SO] val formatFontName: InputType +InputType[SO] val formatIndent: InputType +InputType[SO] val formatItalic: InputType +InputType[SO] val formatJustifyCenter: InputType +InputType[SO] val formatJustifyFull: InputType +InputType[SO] val formatJustifyLeft: InputType +InputType[SO] val formatJustifyRight: InputType +InputType[SO] val formatOutdent: InputType +InputType[SO] val formatRemove: InputType +InputType[SO] val formatSetBlockTextDirection: InputType +InputType[SO] val formatSetInlineTextDirection: InputType +InputType[SO] val formatStrikeThrough: InputType +InputType[SO] val formatSubscript: InputType +InputType[SO] val formatSuperscript: InputType +InputType[SO] val formatUnderline: InputType +InputType[SO] val historyRedo: InputType +InputType[SO] val historyUndo: InputType +InputType[SO] val insertCompositionText: InputType +InputType[SO] val insertFromDrop: InputType +InputType[SO] val insertFromPaste: InputType +InputType[SO] val insertFromPasteAsQuotation: InputType +InputType[SO] val insertFromYank: InputType +InputType[SO] val insertHorizontalRule: InputType +InputType[SO] val insertLineBreak: InputType +InputType[SO] val insertLink: InputType +InputType[SO] val insertOrderedList: InputType +InputType[SO] val insertParagraph: InputType +InputType[SO] val insertReplacementText: InputType +InputType[SO] val insertText: InputType +InputType[SO] val insertTranspose: InputType +InputType[SO] val insertUnorderedList: InputType JsonWebKey[JT] var alg: js.Array[String] JsonWebKey[JT] var crv: String JsonWebKey[JT] var d: String @@ -24124,6 +24207,15 @@ SourceBufferList[JT] var onaddsourcebuffer: js.Function1[Event, Any] SourceBufferList[JT] var onremovesourcebuffer: js.Function1[Event, Any] SourceBufferList[JT] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit SourceBufferList[JT] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit +StaticRange[JC] def collapsed: Boolean +StaticRange[JC] def endContainer: Node +StaticRange[JC] def endOffset: Int +StaticRange[JC] def startContainer: Node +StaticRange[JC] def startOffset: Int +StaticRangeInit[JT] val endContainer: Node +StaticRangeInit[JT] val endOffset: Int +StaticRangeInit[JT] val startContainer: Node +StaticRangeInit[JT] val startOffset: Int StereoPannerNode[JT] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit StereoPannerNode[JT] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit StereoPannerNode[JT] var channelCount: Int From 0a01fbce18eb354a67666666486cfa7dfedaf3c9 Mon Sep 17 00:00:00 2001 From: Arman Bilge Date: Fri, 6 May 2022 08:15:26 -0700 Subject: [PATCH 05/47] Add missing initializer --- dom/src/main/scala/org/scalajs/dom/InputEventInit.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom/src/main/scala/org/scalajs/dom/InputEventInit.scala b/dom/src/main/scala/org/scalajs/dom/InputEventInit.scala index e2e79beb2..24f7f3e9e 100644 --- a/dom/src/main/scala/org/scalajs/dom/InputEventInit.scala +++ b/dom/src/main/scala/org/scalajs/dom/InputEventInit.scala @@ -13,5 +13,5 @@ trait InputEventInit extends UIEventInit { var data: js.UndefOr[String] = js.undefined var dataTransfer: js.UndefOr[DataTransfer] = js.undefined var isComposing: js.UndefOr[Boolean] = js.undefined - var ranges: js.UndefOr[js.Array[StaticRange]] + var ranges: js.UndefOr[js.Array[StaticRange]] = js.undefined } From d8e03bacacba82ccc83982dcd8ab34f2c6e628ce Mon Sep 17 00:00:00 2001 From: Arman Bilge Date: Fri, 6 May 2022 15:25:52 +0000 Subject: [PATCH 06/47] AbstractRange should be an abstract class --- api-reports/2_12.txt | 10 +++++----- api-reports/2_13.txt | 10 +++++----- dom/src/main/scala/org/scalajs/dom/AbstractRange.scala | 4 +++- 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/api-reports/2_12.txt b/api-reports/2_12.txt index cbda7e246..973a6754a 100644 --- a/api-reports/2_12.txt +++ b/api-reports/2_12.txt @@ -20,11 +20,11 @@ AbortSignal[JT] def dispatchEvent(evt: Event): Boolean AbortSignal[JT] var onabort: js.Function0[Any] AbortSignal[JT] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit AbortSignal[JT] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit -AbstractRange[JT] def collapsed: Boolean -AbstractRange[JT] def endContainer: Node -AbstractRange[JT] def endOffset: Int -AbstractRange[JT] def startContainer: Node -AbstractRange[JT] def startOffset: Int +AbstractRange[JC] def collapsed: Boolean +AbstractRange[JC] def endContainer: Node +AbstractRange[JC] def endOffset: Int +AbstractRange[JC] def startContainer: Node +AbstractRange[JC] def startOffset: Int AbstractWorker[JT] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit AbstractWorker[JT] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit AbstractWorker[JT] def dispatchEvent(evt: Event): Boolean diff --git a/api-reports/2_13.txt b/api-reports/2_13.txt index cbda7e246..973a6754a 100644 --- a/api-reports/2_13.txt +++ b/api-reports/2_13.txt @@ -20,11 +20,11 @@ AbortSignal[JT] def dispatchEvent(evt: Event): Boolean AbortSignal[JT] var onabort: js.Function0[Any] AbortSignal[JT] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit AbortSignal[JT] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit -AbstractRange[JT] def collapsed: Boolean -AbstractRange[JT] def endContainer: Node -AbstractRange[JT] def endOffset: Int -AbstractRange[JT] def startContainer: Node -AbstractRange[JT] def startOffset: Int +AbstractRange[JC] def collapsed: Boolean +AbstractRange[JC] def endContainer: Node +AbstractRange[JC] def endOffset: Int +AbstractRange[JC] def startContainer: Node +AbstractRange[JC] def startOffset: Int AbstractWorker[JT] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit AbstractWorker[JT] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit AbstractWorker[JT] def dispatchEvent(evt: Event): Boolean diff --git a/dom/src/main/scala/org/scalajs/dom/AbstractRange.scala b/dom/src/main/scala/org/scalajs/dom/AbstractRange.scala index d69ecd585..9418390f2 100644 --- a/dom/src/main/scala/org/scalajs/dom/AbstractRange.scala +++ b/dom/src/main/scala/org/scalajs/dom/AbstractRange.scala @@ -7,12 +7,14 @@ package org.scalajs.dom import scala.scalajs.js +import scala.scalajs.js.annotation._ /** The AbstractRange abstract interface is the base class upon which all DOM range types are defined. A range is an * object that indicates the start and end points of a section of content within the document. */ @js.native -trait AbstractRange extends js.Object { +@JSGlobal +abstract class AbstractRange extends js.Object { /** The Range.startOffset read-only property returns a number representing where in the startContainer the Range * starts. From 3c53bc844de0d31b8fb5498f4ed524da7e40f1f6 Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Sun, 15 May 2022 06:44:19 +0200 Subject: [PATCH 07/47] Update scalafmt-core to 3.5.3 --- .scalafmt.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.scalafmt.conf b/.scalafmt.conf index b9d703057..e3091fd5e 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -1,4 +1,4 @@ -version = 3.5.2 +version = 3.5.3 runner.dialect = scala213source3 project.git = true style = Scala.js From c952e9aab51bd27a241cf6a7d2c4831453e1d935 Mon Sep 17 00:00:00 2001 From: Arman Bilge Date: Thu, 19 May 2022 01:10:59 +0000 Subject: [PATCH 08/47] Add EventSourceInit --- api-reports/2_12.txt | 1 + api-reports/2_13.txt | 1 + .../main/scala/org/scalajs/dom/EventSource.scala | 2 +- .../scala/org/scalajs/dom/EventSourceInit.scala | 16 ++++++++++++++++ 4 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 dom/src/main/scala/org/scalajs/dom/EventSourceInit.scala diff --git a/api-reports/2_12.txt b/api-reports/2_12.txt index 7cc217fa3..8a85ec737 100644 --- a/api-reports/2_12.txt +++ b/api-reports/2_12.txt @@ -1856,6 +1856,7 @@ EventSource[JC] def withCredentials: Boolean EventSource[JO] val CLOSED: Int EventSource[JO] val CONNECTING: Int EventSource[JO] val OPEN: Int +EventSourceInit[JT] var withCredentials: js.UndefOr[Boolean] EventTarget[JC] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit EventTarget[JC] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit EventTarget[JC] def dispatchEvent(evt: Event): Boolean diff --git a/api-reports/2_13.txt b/api-reports/2_13.txt index 7cc217fa3..8a85ec737 100644 --- a/api-reports/2_13.txt +++ b/api-reports/2_13.txt @@ -1856,6 +1856,7 @@ EventSource[JC] def withCredentials: Boolean EventSource[JO] val CLOSED: Int EventSource[JO] val CONNECTING: Int EventSource[JO] val OPEN: Int +EventSourceInit[JT] var withCredentials: js.UndefOr[Boolean] EventTarget[JC] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit EventTarget[JC] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit EventTarget[JC] def dispatchEvent(evt: Event): Boolean diff --git a/dom/src/main/scala/org/scalajs/dom/EventSource.scala b/dom/src/main/scala/org/scalajs/dom/EventSource.scala index 2d299f245..5b4715552 100644 --- a/dom/src/main/scala/org/scalajs/dom/EventSource.scala +++ b/dom/src/main/scala/org/scalajs/dom/EventSource.scala @@ -18,7 +18,7 @@ import scala.scalajs.js.annotation._ */ @js.native @JSGlobal -class EventSource(URL: String, settings: js.Dynamic = null) extends EventTarget { +class EventSource(url: String, configuration: EventSourceInit = js.native) extends EventTarget { /** The url attribute must return the absolute URL that resulted from resolving the value that was passed to the * constructor. W3C 2012 diff --git a/dom/src/main/scala/org/scalajs/dom/EventSourceInit.scala b/dom/src/main/scala/org/scalajs/dom/EventSourceInit.scala new file mode 100644 index 000000000..f73c677f3 --- /dev/null +++ b/dom/src/main/scala/org/scalajs/dom/EventSourceInit.scala @@ -0,0 +1,16 @@ +/** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API + * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. + * http://creativecommons.org/licenses/by-sa/2.5/ + * + * Everything else is under the MIT License http://opensource.org/licenses/MIT + */ +package org.scalajs.dom + +import scala.scalajs.js + +/** Provides options to configure the new connection. */ +trait EventSourceInit extends js.Object { + + /** defaulting to false, indicating if CORS should be set to include credentials */ + var withCredentials: js.UndefOr[Boolean] = js.undefined +} From e725f1a73180942ac28f0f79ca58c842c279a4e7 Mon Sep 17 00:00:00 2001 From: Arman Bilge Date: Thu, 19 May 2022 01:17:31 +0000 Subject: [PATCH 09/47] Fix Scala 3 compile --- dom/src/main/scala/org/scalajs/dom/EventSource.scala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dom/src/main/scala/org/scalajs/dom/EventSource.scala b/dom/src/main/scala/org/scalajs/dom/EventSource.scala index 5b4715552..f1df885af 100644 --- a/dom/src/main/scala/org/scalajs/dom/EventSource.scala +++ b/dom/src/main/scala/org/scalajs/dom/EventSource.scala @@ -18,7 +18,9 @@ import scala.scalajs.js.annotation._ */ @js.native @JSGlobal -class EventSource(url: String, configuration: EventSourceInit = js.native) extends EventTarget { +class EventSource private[this] extends EventTarget { + + def this(url: String, configuration: EventSourceInit = js.native) = this() /** The url attribute must return the absolute URL that resulted from resolving the value that was passed to the * constructor. W3C 2012 From 60b979855da47d381f50be3cde592c3c01bf58f1 Mon Sep 17 00:00:00 2001 From: Arman Bilge Date: Sun, 22 May 2022 03:42:28 +0000 Subject: [PATCH 10/47] Add `ServiceWorkerRegistrationOptions` --- api-reports/2_12.txt | 9 +++++- api-reports/2_13.txt | 9 +++++- .../dom/ServiceWorkerUpdateViaCache.scala | 17 +++++++++++ .../dom/ServiceWorkerUpdateViaCache.scala | 16 +++++++++++ .../scalajs/dom/ServiceWorkerContainer.scala | 3 +- .../ServiceWorkerRegistrationOptions.scala | 28 +++++++++++++++++++ 6 files changed, 79 insertions(+), 3 deletions(-) create mode 100644 dom/src/main/scala-2/org/scalajs/dom/ServiceWorkerUpdateViaCache.scala create mode 100644 dom/src/main/scala-3/org/scalajs/dom/ServiceWorkerUpdateViaCache.scala create mode 100644 dom/src/main/scala/org/scalajs/dom/ServiceWorkerRegistrationOptions.scala diff --git a/api-reports/2_12.txt b/api-reports/2_12.txt index 7cc217fa3..737dec74a 100644 --- a/api-reports/2_12.txt +++ b/api-reports/2_12.txt @@ -24452,7 +24452,7 @@ ServiceWorkerContainer[JT] def getRegistrations(): js.Promise[js.Array[ServiceWo ServiceWorkerContainer[JT] var oncontrollerchange: js.Function1[Event, _] ServiceWorkerContainer[JT] var onmessage: js.Function1[MessageEvent, _] ServiceWorkerContainer[JT] def ready: js.Promise[ServiceWorkerRegistration] -ServiceWorkerContainer[JT] def register(scriptURL: String, options: js.Object?): js.Promise[ServiceWorkerRegistration] +ServiceWorkerContainer[JT] def register(scriptURL: String, options: ServiceWorkerRegistrationOptions?): js.Promise[ServiceWorkerRegistration] ServiceWorkerContainer[JT] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit ServiceWorkerContainer[JT] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit ServiceWorkerGlobalScope[JO] def self: ServiceWorkerGlobalScope @@ -24520,12 +24520,19 @@ ServiceWorkerRegistration[JT] def showNotification(title: String, options: Notif ServiceWorkerRegistration[JT] def unregister(): js.Promise[Boolean] ServiceWorkerRegistration[JT] def update(): js.Promise[Unit] ServiceWorkerRegistration[JT] var waiting: ServiceWorker +ServiceWorkerRegistrationOptions[JT] var scope: js.UndefOr[String] +ServiceWorkerRegistrationOptions[JT] var `type`: js.UndefOr[WorkerType] +ServiceWorkerRegistrationOptions[JT] var updateViaCache: js.UndefOr[ServiceWorkerUpdateViaCache] ServiceWorkerState[JT] ServiceWorkerState[SO] val activated: ServiceWorkerState ServiceWorkerState[SO] val activating: ServiceWorkerState ServiceWorkerState[SO] val installed: ServiceWorkerState ServiceWorkerState[SO] val installing: ServiceWorkerState ServiceWorkerState[SO] val redundant: ServiceWorkerState +ServiceWorkerUpdateViaCache[JT] +ServiceWorkerUpdateViaCache[SO] val all: ServiceWorkerUpdateViaCache +ServiceWorkerUpdateViaCache[SO] val imports: ServiceWorkerUpdateViaCache +ServiceWorkerUpdateViaCache[SO] val none: ServiceWorkerUpdateViaCache ShadowRoot[JC] def activeElement: Element ShadowRoot[JC] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit ShadowRoot[JC] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit diff --git a/api-reports/2_13.txt b/api-reports/2_13.txt index 7cc217fa3..737dec74a 100644 --- a/api-reports/2_13.txt +++ b/api-reports/2_13.txt @@ -24452,7 +24452,7 @@ ServiceWorkerContainer[JT] def getRegistrations(): js.Promise[js.Array[ServiceWo ServiceWorkerContainer[JT] var oncontrollerchange: js.Function1[Event, _] ServiceWorkerContainer[JT] var onmessage: js.Function1[MessageEvent, _] ServiceWorkerContainer[JT] def ready: js.Promise[ServiceWorkerRegistration] -ServiceWorkerContainer[JT] def register(scriptURL: String, options: js.Object?): js.Promise[ServiceWorkerRegistration] +ServiceWorkerContainer[JT] def register(scriptURL: String, options: ServiceWorkerRegistrationOptions?): js.Promise[ServiceWorkerRegistration] ServiceWorkerContainer[JT] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit ServiceWorkerContainer[JT] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit ServiceWorkerGlobalScope[JO] def self: ServiceWorkerGlobalScope @@ -24520,12 +24520,19 @@ ServiceWorkerRegistration[JT] def showNotification(title: String, options: Notif ServiceWorkerRegistration[JT] def unregister(): js.Promise[Boolean] ServiceWorkerRegistration[JT] def update(): js.Promise[Unit] ServiceWorkerRegistration[JT] var waiting: ServiceWorker +ServiceWorkerRegistrationOptions[JT] var scope: js.UndefOr[String] +ServiceWorkerRegistrationOptions[JT] var `type`: js.UndefOr[WorkerType] +ServiceWorkerRegistrationOptions[JT] var updateViaCache: js.UndefOr[ServiceWorkerUpdateViaCache] ServiceWorkerState[JT] ServiceWorkerState[SO] val activated: ServiceWorkerState ServiceWorkerState[SO] val activating: ServiceWorkerState ServiceWorkerState[SO] val installed: ServiceWorkerState ServiceWorkerState[SO] val installing: ServiceWorkerState ServiceWorkerState[SO] val redundant: ServiceWorkerState +ServiceWorkerUpdateViaCache[JT] +ServiceWorkerUpdateViaCache[SO] val all: ServiceWorkerUpdateViaCache +ServiceWorkerUpdateViaCache[SO] val imports: ServiceWorkerUpdateViaCache +ServiceWorkerUpdateViaCache[SO] val none: ServiceWorkerUpdateViaCache ShadowRoot[JC] def activeElement: Element ShadowRoot[JC] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit ShadowRoot[JC] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit diff --git a/dom/src/main/scala-2/org/scalajs/dom/ServiceWorkerUpdateViaCache.scala b/dom/src/main/scala-2/org/scalajs/dom/ServiceWorkerUpdateViaCache.scala new file mode 100644 index 000000000..3b877003a --- /dev/null +++ b/dom/src/main/scala-2/org/scalajs/dom/ServiceWorkerUpdateViaCache.scala @@ -0,0 +1,17 @@ +package org.scalajs.dom + +import scala.scalajs.js + +@js.native +sealed trait ServiceWorkerUpdateViaCache extends js.Any + +object ServiceWorkerUpdateViaCache { + /** The service worker script and all of its imports will be updated. */ + val all: ServiceWorkerUpdateViaCache = "all".asInstanceOf[ServiceWorkerUpdateViaCache] + + /** Only imports referenced by the service worker script will be updated. This is the default. */ + val imports: ServiceWorkerUpdateViaCache = "imports".asInstanceOf[ServiceWorkerUpdateViaCache] + + /** Neither the service worker, nor its imports will be updated. */ + val none: ServiceWorkerUpdateViaCache = "none".asInstanceOf[ServiceWorkerUpdateViaCache] +} diff --git a/dom/src/main/scala-3/org/scalajs/dom/ServiceWorkerUpdateViaCache.scala b/dom/src/main/scala-3/org/scalajs/dom/ServiceWorkerUpdateViaCache.scala new file mode 100644 index 000000000..8003f2200 --- /dev/null +++ b/dom/src/main/scala-3/org/scalajs/dom/ServiceWorkerUpdateViaCache.scala @@ -0,0 +1,16 @@ +package org.scalajs.dom + +import scala.scalajs.js + +opaque type ServiceWorkerUpdateViaCache <: String = String + +object ServiceWorkerUpdateViaCache { + /** The service worker script and all of its imports will be updated. */ + val all: ServiceWorkerUpdateViaCache = "all" + + /** Only imports referenced by the service worker script will be updated. This is the default. */ + val imports: ServiceWorkerUpdateViaCache = "imports" + + /** Neither the service worker, nor its imports will be updated. */ + val none: ServiceWorkerUpdateViaCache = "none" +} diff --git a/dom/src/main/scala/org/scalajs/dom/ServiceWorkerContainer.scala b/dom/src/main/scala/org/scalajs/dom/ServiceWorkerContainer.scala index 68fac61b3..c62d084bd 100644 --- a/dom/src/main/scala/org/scalajs/dom/ServiceWorkerContainer.scala +++ b/dom/src/main/scala/org/scalajs/dom/ServiceWorkerContainer.scala @@ -14,7 +14,8 @@ trait ServiceWorkerContainer extends EventTarget { * method can't return a ServiceWorkerRegistration, it returns a Promise. You can call this method unconditionally * from the controlled page, i.e., you don't need to first check whether there's an active registration. */ - def register(scriptURL: String, options: js.Object = js.native): js.Promise[ServiceWorkerRegistration] = js.native + def register(scriptURL: String, + options: ServiceWorkerRegistrationOptions = js.native): js.Promise[ServiceWorkerRegistration] = js.native /** The ServiceWorkerContainer.controller read-only property of the ServiceWorkerContainer interface returns the * ServiceWorker whose state is activated (the same object returned by ServiceWorkerRegistration.active). This diff --git a/dom/src/main/scala/org/scalajs/dom/ServiceWorkerRegistrationOptions.scala b/dom/src/main/scala/org/scalajs/dom/ServiceWorkerRegistrationOptions.scala new file mode 100644 index 000000000..3afc0f7f5 --- /dev/null +++ b/dom/src/main/scala/org/scalajs/dom/ServiceWorkerRegistrationOptions.scala @@ -0,0 +1,28 @@ +/** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API + * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. + * http://creativecommons.org/licenses/by-sa/2.5/ + * + * Everything else is under the MIT License http://opensource.org/licenses/MIT + */ +package org.scalajs.dom + +import scala.scalajs.js + +/** An object containing registration options. */ +trait ServiceWorkerRegistrationOptions extends js.Object { + + /** A string representing a URL that defines a service worker's registration scope; that is, what range of URLs a + * service worker can control. This is usually a relative URL. It is relative to the base URL of the application. By + * default, the `scope` value for a service worker registration is set to the directory where the service worker + * script is located. + */ + var scope: js.UndefOr[String] = js.undefined + + /** A string specifying the type of worker to create. */ + var `type`: js.UndefOr[WorkerType] = js.undefined + + /** A string indicating how much of a service worker's resources will be updated when a call is made to + * `ServiceWorkerRegistration.updateViaCache`. + */ + var updateViaCache: js.UndefOr[ServiceWorkerUpdateViaCache] = js.undefined +} From dd5dfc2d56185518e94379afc0867f6a6f515431 Mon Sep 17 00:00:00 2001 From: David Barri Date: Tue, 24 May 2022 12:43:26 +1000 Subject: [PATCH 11/47] IDB cursor result types were incorrectly abstract --- api-reports/2_12.txt | 12 ++++++------ api-reports/2_13.txt | 12 ++++++------ .../main/scala/org/scalajs/dom/IDBStoreLike.scala | 4 ++-- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/api-reports/2_12.txt b/api-reports/2_12.txt index c2887d6c2..0bf68b518 100644 --- a/api-reports/2_12.txt +++ b/api-reports/2_12.txt @@ -14061,8 +14061,8 @@ IDBIndex[JC] def keyPath: IDBKeyPath IDBIndex[JC] val multiEntry: Boolean IDBIndex[JC] def name: String IDBIndex[JC] def objectStore: IDBObjectStore -IDBIndex[JC] def openCursor(range: js.UndefOr[IDBKeyRange | IDBKey]?, direction: js.UndefOr[IDBCursorDirection]?): IDBRequest[S, IDBCursor[S]] -IDBIndex[JC] def openKeyCursor(range: js.UndefOr[IDBKeyRange | IDBKey]?, direction: js.UndefOr[IDBCursorDirection]?): IDBRequest[S, IDBCursorReadOnly[S]] +IDBIndex[JC] def openCursor(range: js.UndefOr[IDBKeyRange | IDBKey]?, direction: js.UndefOr[IDBCursorDirection]?): IDBRequest[S, IDBCursorWithValue[S]] +IDBIndex[JC] def openKeyCursor(range: js.UndefOr[IDBKeyRange | IDBKey]?, direction: js.UndefOr[IDBCursorDirection]?): IDBRequest[S, IDBCursor[S]] IDBIndex[JC] def unique: Boolean IDBKeyRange[JC] def lower: IDBKey IDBKeyRange[JC] def lowerOpen: Boolean @@ -14086,8 +14086,8 @@ IDBObjectStore[JC] def index(name: String): IDBIndex IDBObjectStore[JC] def indexNames: DOMStringList IDBObjectStore[JC] def keyPath: IDBKeyPath IDBObjectStore[JC] def name: String -IDBObjectStore[JC] def openCursor(range: js.UndefOr[IDBKeyRange | IDBKey]?, direction: js.UndefOr[IDBCursorDirection]?): IDBRequest[S, IDBCursor[S]] -IDBObjectStore[JC] def openKeyCursor(range: js.UndefOr[IDBKeyRange | IDBKey]?, direction: js.UndefOr[IDBCursorDirection]?): IDBRequest[S, IDBCursorReadOnly[S]] +IDBObjectStore[JC] def openCursor(range: js.UndefOr[IDBKeyRange | IDBKey]?, direction: js.UndefOr[IDBCursorDirection]?): IDBRequest[S, IDBCursorWithValue[S]] +IDBObjectStore[JC] def openKeyCursor(range: js.UndefOr[IDBKeyRange | IDBKey]?, direction: js.UndefOr[IDBCursorDirection]?): IDBRequest[S, IDBCursor[S]] IDBObjectStore[JC] def put(value: IDBValue, key: IDBKey?): IDBRequest[IDBObjectStore, IDBKey] IDBObjectStore[JC] def transaction: IDBTransaction IDBOpenDBRequest[JC] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit @@ -14126,8 +14126,8 @@ IDBStoreLike[JT] def getAllKeys(query: js.UndefOr[IDBKeyRange | IDBKey]?, count: IDBStoreLike[JT] def getKey(key: IDBKey): IDBRequest[S, js.UndefOr[IDBKey]] IDBStoreLike[JT] def keyPath: IDBKeyPath IDBStoreLike[JT] def name: String -IDBStoreLike[JT] def openCursor(range: js.UndefOr[IDBKeyRange | IDBKey]?, direction: js.UndefOr[IDBCursorDirection]?): IDBRequest[S, IDBCursor[S]] -IDBStoreLike[JT] def openKeyCursor(range: js.UndefOr[IDBKeyRange | IDBKey]?, direction: js.UndefOr[IDBCursorDirection]?): IDBRequest[S, IDBCursorReadOnly[S]] +IDBStoreLike[JT] def openCursor(range: js.UndefOr[IDBKeyRange | IDBKey]?, direction: js.UndefOr[IDBCursorDirection]?): IDBRequest[S, IDBCursorWithValue[S]] +IDBStoreLike[JT] def openKeyCursor(range: js.UndefOr[IDBKeyRange | IDBKey]?, direction: js.UndefOr[IDBCursorDirection]?): IDBRequest[S, IDBCursor[S]] IDBTransaction[JC] def abort(): Unit IDBTransaction[JC] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit IDBTransaction[JC] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit diff --git a/api-reports/2_13.txt b/api-reports/2_13.txt index c2887d6c2..0bf68b518 100644 --- a/api-reports/2_13.txt +++ b/api-reports/2_13.txt @@ -14061,8 +14061,8 @@ IDBIndex[JC] def keyPath: IDBKeyPath IDBIndex[JC] val multiEntry: Boolean IDBIndex[JC] def name: String IDBIndex[JC] def objectStore: IDBObjectStore -IDBIndex[JC] def openCursor(range: js.UndefOr[IDBKeyRange | IDBKey]?, direction: js.UndefOr[IDBCursorDirection]?): IDBRequest[S, IDBCursor[S]] -IDBIndex[JC] def openKeyCursor(range: js.UndefOr[IDBKeyRange | IDBKey]?, direction: js.UndefOr[IDBCursorDirection]?): IDBRequest[S, IDBCursorReadOnly[S]] +IDBIndex[JC] def openCursor(range: js.UndefOr[IDBKeyRange | IDBKey]?, direction: js.UndefOr[IDBCursorDirection]?): IDBRequest[S, IDBCursorWithValue[S]] +IDBIndex[JC] def openKeyCursor(range: js.UndefOr[IDBKeyRange | IDBKey]?, direction: js.UndefOr[IDBCursorDirection]?): IDBRequest[S, IDBCursor[S]] IDBIndex[JC] def unique: Boolean IDBKeyRange[JC] def lower: IDBKey IDBKeyRange[JC] def lowerOpen: Boolean @@ -14086,8 +14086,8 @@ IDBObjectStore[JC] def index(name: String): IDBIndex IDBObjectStore[JC] def indexNames: DOMStringList IDBObjectStore[JC] def keyPath: IDBKeyPath IDBObjectStore[JC] def name: String -IDBObjectStore[JC] def openCursor(range: js.UndefOr[IDBKeyRange | IDBKey]?, direction: js.UndefOr[IDBCursorDirection]?): IDBRequest[S, IDBCursor[S]] -IDBObjectStore[JC] def openKeyCursor(range: js.UndefOr[IDBKeyRange | IDBKey]?, direction: js.UndefOr[IDBCursorDirection]?): IDBRequest[S, IDBCursorReadOnly[S]] +IDBObjectStore[JC] def openCursor(range: js.UndefOr[IDBKeyRange | IDBKey]?, direction: js.UndefOr[IDBCursorDirection]?): IDBRequest[S, IDBCursorWithValue[S]] +IDBObjectStore[JC] def openKeyCursor(range: js.UndefOr[IDBKeyRange | IDBKey]?, direction: js.UndefOr[IDBCursorDirection]?): IDBRequest[S, IDBCursor[S]] IDBObjectStore[JC] def put(value: IDBValue, key: IDBKey?): IDBRequest[IDBObjectStore, IDBKey] IDBObjectStore[JC] def transaction: IDBTransaction IDBOpenDBRequest[JC] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit @@ -14126,8 +14126,8 @@ IDBStoreLike[JT] def getAllKeys(query: js.UndefOr[IDBKeyRange | IDBKey]?, count: IDBStoreLike[JT] def getKey(key: IDBKey): IDBRequest[S, js.UndefOr[IDBKey]] IDBStoreLike[JT] def keyPath: IDBKeyPath IDBStoreLike[JT] def name: String -IDBStoreLike[JT] def openCursor(range: js.UndefOr[IDBKeyRange | IDBKey]?, direction: js.UndefOr[IDBCursorDirection]?): IDBRequest[S, IDBCursor[S]] -IDBStoreLike[JT] def openKeyCursor(range: js.UndefOr[IDBKeyRange | IDBKey]?, direction: js.UndefOr[IDBCursorDirection]?): IDBRequest[S, IDBCursorReadOnly[S]] +IDBStoreLike[JT] def openCursor(range: js.UndefOr[IDBKeyRange | IDBKey]?, direction: js.UndefOr[IDBCursorDirection]?): IDBRequest[S, IDBCursorWithValue[S]] +IDBStoreLike[JT] def openKeyCursor(range: js.UndefOr[IDBKeyRange | IDBKey]?, direction: js.UndefOr[IDBCursorDirection]?): IDBRequest[S, IDBCursor[S]] IDBTransaction[JC] def abort(): Unit IDBTransaction[JC] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit IDBTransaction[JC] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit diff --git a/dom/src/main/scala/org/scalajs/dom/IDBStoreLike.scala b/dom/src/main/scala/org/scalajs/dom/IDBStoreLike.scala index affea9cbc..add438d9a 100644 --- a/dom/src/main/scala/org/scalajs/dom/IDBStoreLike.scala +++ b/dom/src/main/scala/org/scalajs/dom/IDBStoreLike.scala @@ -83,7 +83,7 @@ trait IDBStoreLike[S] extends js.Object { * [[IDBRequest]] with the `target` value being a new cursor or `null`. */ def openCursor(range: js.UndefOr[IDBKeyRange | IDBKey] = js.native, - direction: js.UndefOr[IDBCursorDirection] = js.native): IDBRequest[S, IDBCursor[S]] = js.native + direction: js.UndefOr[IDBCursorDirection] = js.native): IDBRequest[S, IDBCursorWithValue[S]] = js.native /** The method sets the position of the cursor to the appropriate key, based on the specified direction. * @@ -91,5 +91,5 @@ trait IDBStoreLike[S] extends js.Object { * [[IDBRequest]] with the `target` value being a new cursor or `null`. */ def openKeyCursor(range: js.UndefOr[IDBKeyRange | IDBKey] = js.native, - direction: js.UndefOr[IDBCursorDirection] = js.native): IDBRequest[S, IDBCursorReadOnly[S]] = js.native + direction: js.UndefOr[IDBCursorDirection] = js.native): IDBRequest[S, IDBCursor[S]] = js.native } From 040c41530762a97c43cc11d787e0d0ad898685dc Mon Sep 17 00:00:00 2001 From: Arman Bilge Date: Sun, 29 May 2022 23:43:55 +0000 Subject: [PATCH 12/47] Review comments --- api-reports/2_12.txt | 2 -- api-reports/2_13.txt | 2 -- dom/src/main/scala/org/scalajs/dom/InputEventInit.scala | 2 -- dom/src/main/scala/org/scalajs/dom/StaticRange.scala | 6 ------ 4 files changed, 12 deletions(-) diff --git a/api-reports/2_12.txt b/api-reports/2_12.txt index 973a6754a..d49c50514 100644 --- a/api-reports/2_12.txt +++ b/api-reports/2_12.txt @@ -14213,11 +14213,9 @@ InputEventInit[JT] var bubbles: js.UndefOr[Boolean] InputEventInit[JT] var cancelable: js.UndefOr[Boolean] InputEventInit[JT] var composed: js.UndefOr[Boolean] InputEventInit[JT] var data: js.UndefOr[String] -InputEventInit[JT] var dataTransfer: js.UndefOr[DataTransfer] InputEventInit[JT] var detail: js.UndefOr[Int] InputEventInit[JT] var inputType: js.UndefOr[InputType] InputEventInit[JT] var isComposing: js.UndefOr[Boolean] -InputEventInit[JT] var ranges: js.UndefOr[js.Array[StaticRange]] InputEventInit[JT] var scoped: js.UndefOr[Boolean] InputEventInit[JT] var view: js.UndefOr[Window] InputType[JT] diff --git a/api-reports/2_13.txt b/api-reports/2_13.txt index 973a6754a..d49c50514 100644 --- a/api-reports/2_13.txt +++ b/api-reports/2_13.txt @@ -14213,11 +14213,9 @@ InputEventInit[JT] var bubbles: js.UndefOr[Boolean] InputEventInit[JT] var cancelable: js.UndefOr[Boolean] InputEventInit[JT] var composed: js.UndefOr[Boolean] InputEventInit[JT] var data: js.UndefOr[String] -InputEventInit[JT] var dataTransfer: js.UndefOr[DataTransfer] InputEventInit[JT] var detail: js.UndefOr[Int] InputEventInit[JT] var inputType: js.UndefOr[InputType] InputEventInit[JT] var isComposing: js.UndefOr[Boolean] -InputEventInit[JT] var ranges: js.UndefOr[js.Array[StaticRange]] InputEventInit[JT] var scoped: js.UndefOr[Boolean] InputEventInit[JT] var view: js.UndefOr[Window] InputType[JT] diff --git a/dom/src/main/scala/org/scalajs/dom/InputEventInit.scala b/dom/src/main/scala/org/scalajs/dom/InputEventInit.scala index 24f7f3e9e..0b71d5b6c 100644 --- a/dom/src/main/scala/org/scalajs/dom/InputEventInit.scala +++ b/dom/src/main/scala/org/scalajs/dom/InputEventInit.scala @@ -11,7 +11,5 @@ import scala.scalajs.js trait InputEventInit extends UIEventInit { var inputType: js.UndefOr[InputType] = js.undefined var data: js.UndefOr[String] = js.undefined - var dataTransfer: js.UndefOr[DataTransfer] = js.undefined var isComposing: js.UndefOr[Boolean] = js.undefined - var ranges: js.UndefOr[js.Array[StaticRange]] = js.undefined } diff --git a/dom/src/main/scala/org/scalajs/dom/StaticRange.scala b/dom/src/main/scala/org/scalajs/dom/StaticRange.scala index dd8678f5a..c5a0ade4d 100644 --- a/dom/src/main/scala/org/scalajs/dom/StaticRange.scala +++ b/dom/src/main/scala/org/scalajs/dom/StaticRange.scala @@ -1,9 +1,3 @@ -/** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API - * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. - * http://creativecommons.org/licenses/by-sa/2.5/ - * - * Everything else is under the MIT License http://opensource.org/licenses/MIT - */ package org.scalajs.dom import scala.scalajs.js From b66567d149af5e97c5e48d37bd4e6e900c7340d2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 27 Jun 2022 12:27:24 +0000 Subject: [PATCH 13/47] Bump JamesIves/github-pages-deploy-action from 4.3.3 to 4.3.4 Bumps [JamesIves/github-pages-deploy-action](https://github.com/JamesIves/github-pages-deploy-action) from 4.3.3 to 4.3.4. - [Release notes](https://github.com/JamesIves/github-pages-deploy-action/releases) - [Commits](https://github.com/JamesIves/github-pages-deploy-action/compare/v4.3.3...v4.3.4) --- updated-dependencies: - dependency-name: JamesIves/github-pages-deploy-action dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- .github/workflows/ghpages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ghpages.yml b/.github/workflows/ghpages.yml index ce2aa9fd6..298792b53 100644 --- a/.github/workflows/ghpages.yml +++ b/.github/workflows/ghpages.yml @@ -19,7 +19,7 @@ jobs: run: sbt readme/run - name: Deploy - uses: JamesIves/github-pages-deploy-action@v4.3.3 + uses: JamesIves/github-pages-deploy-action@v4.3.4 with: token: ${{ secrets.GITHUB_TOKEN }} branch: gh-pages From 211be57649075e96dde1bb1c21807e759d89c689 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sim=C3=A3o=20Martins?= Date: Tue, 28 Jun 2022 15:55:40 +0100 Subject: [PATCH 14/47] Create HTMLDialogElement --- api-reports/2_12.txt | 204 ++++++++++++++++++ api-reports/2_13.txt | 204 ++++++++++++++++++ .../org/scalajs/dom/HTMLDialogElement.scala | 36 ++++ 3 files changed, 444 insertions(+) create mode 100644 dom/src/main/scala/org/scalajs/dom/HTMLDialogElement.scala diff --git a/api-reports/2_12.txt b/api-reports/2_12.txt index f16a5a82e..0c7e86bb3 100644 --- a/api-reports/2_12.txt +++ b/api-reports/2_12.txt @@ -4149,6 +4149,210 @@ HTMLDataListElement[JC] var tabIndex: Int HTMLDataListElement[JC] def tagName: String HTMLDataListElement[JC] var textContent: String HTMLDataListElement[JC] var title: String +HTMLDialogElement[JC] var accessKey: String +HTMLDialogElement[JC] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit +HTMLDialogElement[JC] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit +HTMLDialogElement[JC] def after(nodes: Node | String*): Unit +HTMLDialogElement[JC] def append(nodes: Node | String*): Unit +HTMLDialogElement[JC] def appendChild(newChild: Node): Node +HTMLDialogElement[JC] def attachShadow(init: ShadowRootInit): ShadowRoot +HTMLDialogElement[JC] def attributes: NamedNodeMap +HTMLDialogElement[JC] def baseURI: String +HTMLDialogElement[JC] def before(nodes: Node | String*): Unit +HTMLDialogElement[JC] def blur(): Unit +HTMLDialogElement[JC] def childElementCount: Int +HTMLDialogElement[JC] def childNodes: NodeList[Node] +HTMLDialogElement[JC] def children: HTMLCollection[Element] +HTMLDialogElement[JC] var classList: DOMTokenList +HTMLDialogElement[JC] var className: String +HTMLDialogElement[JC] def click(): Unit +HTMLDialogElement[JC] def clientHeight: Int +HTMLDialogElement[JC] def clientLeft: Int +HTMLDialogElement[JC] def clientTop: Int +HTMLDialogElement[JC] def clientWidth: Int +HTMLDialogElement[JC] def cloneNode(deep: Boolean?): Node +HTMLDialogElement[JC] def close(returnValue: String?): Unit +HTMLDialogElement[JC] def compareDocumentPosition(other: Node): Int +HTMLDialogElement[JC] def contains(child: HTMLElement): Boolean +HTMLDialogElement[JC] def contains(otherNode: Node): Boolean +HTMLDialogElement[JC] var contentEditable: String +HTMLDialogElement[JC] def dataset: js.Dictionary[String] +HTMLDialogElement[JC] var dir: String +HTMLDialogElement[JC] def dispatchEvent(evt: Event): Boolean +HTMLDialogElement[JC] var draggable: Boolean +HTMLDialogElement[JC] var filters: Object +HTMLDialogElement[JC] def firstChild: Node +HTMLDialogElement[JC] def firstElementChild: Element +HTMLDialogElement[JC] def focus(): Unit +HTMLDialogElement[JC] def getAttribute(name: String): String +HTMLDialogElement[JC] def getAttributeNS(namespaceURI: String, localName: String): String +HTMLDialogElement[JC] def getAttributeNode(name: String): Attr +HTMLDialogElement[JC] def getAttributeNodeNS(namespaceURI: String, localName: String): Attr +HTMLDialogElement[JC] def getBoundingClientRect(): DOMRect +HTMLDialogElement[JC] def getClientRects(): DOMRectList +HTMLDialogElement[JC] def getElementsByClassName(classNames: String): HTMLCollection[Element] +HTMLDialogElement[JC] def getElementsByTagName(name: String): HTMLCollection[Element] +HTMLDialogElement[JC] def getElementsByTagNameNS(namespaceURI: String, localName: String): HTMLCollection[Element] +HTMLDialogElement[JC] var gotpointercapture: js.Function1[PointerEvent, _] +HTMLDialogElement[JC] def hasAttribute(name: String): Boolean +HTMLDialogElement[JC] def hasAttributeNS(namespaceURI: String, localName: String): Boolean +HTMLDialogElement[JC] def hasAttributes(): Boolean +HTMLDialogElement[JC] def hasChildNodes(): Boolean +HTMLDialogElement[JC] var id: String +HTMLDialogElement[JC] var innerHTML: String +HTMLDialogElement[JC] var innerText: String +HTMLDialogElement[JC] def insertAdjacentElement(position: String, element: Element): Element +HTMLDialogElement[JC] def insertAdjacentHTML(where: String, html: String): Unit +HTMLDialogElement[JC] def insertBefore(newChild: Node, refChild: Node): Node +HTMLDialogElement[JC] def isConnected: Boolean +HTMLDialogElement[JC] def isContentEditable: Boolean +HTMLDialogElement[JC] def isDefaultNamespace(namespaceURI: String): Boolean +HTMLDialogElement[JC] def isEqualNode(arg: Node): Boolean +HTMLDialogElement[JC] def isSameNode(other: Node): Boolean +HTMLDialogElement[JC] def isSupported(feature: String, version: String): Boolean +HTMLDialogElement[JC] var lang: String +HTMLDialogElement[JC] def lastChild: Node +HTMLDialogElement[JC] def lastElementChild: Element +HTMLDialogElement[JC] def localName: String +HTMLDialogElement[JC] def lookupNamespaceURI(prefix: String): String +HTMLDialogElement[JC] def lookupPrefix(namespaceURI: String): String +HTMLDialogElement[JC] var lostpointercapture: js.Function1[PointerEvent, _] +HTMLDialogElement[JC] def matches(selector: String): Boolean +HTMLDialogElement[JC] def namespaceURI: String +HTMLDialogElement[JC] def nextElementSibling: Element +HTMLDialogElement[JC] def nextSibling: Node +HTMLDialogElement[JC] def nodeName: String +HTMLDialogElement[JC] def nodeType: Int +HTMLDialogElement[JC] var nodeValue: String +HTMLDialogElement[JC] def normalize(): Unit +HTMLDialogElement[JC] def offsetHeight: Double +HTMLDialogElement[JC] def offsetLeft: Double +HTMLDialogElement[JC] def offsetParent: Element +HTMLDialogElement[JC] def offsetTop: Double +HTMLDialogElement[JC] def offsetWidth: Double +HTMLDialogElement[JC] var onabort: js.Function1[UIEvent, _] +HTMLDialogElement[JC] var onactivate: js.Function1[UIEvent, _] +HTMLDialogElement[JC] var onbeforeactivate: js.Function1[UIEvent, _] +HTMLDialogElement[JC] var onbeforecopy: js.Function1[DragEvent, _] +HTMLDialogElement[JC] var onbeforecut: js.Function1[DragEvent, _] +HTMLDialogElement[JC] var onbeforedeactivate: js.Function1[UIEvent, _] +HTMLDialogElement[JC] var onbeforepaste: js.Function1[DragEvent, _] +HTMLDialogElement[JC] var onblur: js.Function1[FocusEvent, _] +HTMLDialogElement[JC] var oncanplay: js.Function1[Event, _] +HTMLDialogElement[JC] var oncanplaythrough: js.Function1[Event, _] +HTMLDialogElement[JC] var onchange: js.Function1[Event, _] +HTMLDialogElement[JC] var onclick: js.Function1[MouseEvent, _] +HTMLDialogElement[JC] var oncontextmenu: js.Function1[MouseEvent, _] +HTMLDialogElement[JC] var oncopy: js.Function1[ClipboardEvent, _] +HTMLDialogElement[JC] var oncuechange: js.Function1[Event, _] +HTMLDialogElement[JC] var oncut: js.Function1[ClipboardEvent, _] +HTMLDialogElement[JC] var ondblclick: js.Function1[MouseEvent, _] +HTMLDialogElement[JC] var ondeactivate: js.Function1[UIEvent, _] +HTMLDialogElement[JC] var ondrag: js.Function1[DragEvent, _] +HTMLDialogElement[JC] var ondragend: js.Function1[DragEvent, _] +HTMLDialogElement[JC] var ondragenter: js.Function1[DragEvent, _] +HTMLDialogElement[JC] var ondragleave: js.Function1[DragEvent, _] +HTMLDialogElement[JC] var ondragover: js.Function1[DragEvent, _] +HTMLDialogElement[JC] var ondragstart: js.Function1[DragEvent, _] +HTMLDialogElement[JC] var ondrop: js.Function1[DragEvent, _] +HTMLDialogElement[JC] var ondurationchange: js.Function1[Event, _] +HTMLDialogElement[JC] var onemptied: js.Function1[Event, _] +HTMLDialogElement[JC] var onended: js.Function1[Event, _] +HTMLDialogElement[JC] var onfocus: js.Function1[FocusEvent, _] +HTMLDialogElement[JC] var onfocusin: js.Function1[FocusEvent, _] +HTMLDialogElement[JC] var onfocusout: js.Function1[FocusEvent, _] +HTMLDialogElement[JC] var onfullscreenchange: js.Function1[Event, _] +HTMLDialogElement[JC] var onfullscreenerror: js.Function1[Event, _] +HTMLDialogElement[JC] var onhelp: js.Function1[Event, _] +HTMLDialogElement[JC] var oninput: js.Function1[Event, _] +HTMLDialogElement[JC] var onkeydown: js.Function1[KeyboardEvent, _] +HTMLDialogElement[JC] var onkeypress: js.Function1[KeyboardEvent, _] +HTMLDialogElement[JC] var onkeyup: js.Function1[KeyboardEvent, _] +HTMLDialogElement[JC] var onloadeddata: js.Function1[Event, _] +HTMLDialogElement[JC] var onloadedmetadata: js.Function1[Event, _] +HTMLDialogElement[JC] var onloadstart: js.Function1[Event, _] +HTMLDialogElement[JC] var onmousedown: js.Function1[MouseEvent, _] +HTMLDialogElement[JC] var onmouseenter: js.Function1[MouseEvent, _] +HTMLDialogElement[JC] var onmouseleave: js.Function1[MouseEvent, _] +HTMLDialogElement[JC] var onmousemove: js.Function1[MouseEvent, _] +HTMLDialogElement[JC] var onmouseout: js.Function1[MouseEvent, _] +HTMLDialogElement[JC] var onmouseover: js.Function1[MouseEvent, _] +HTMLDialogElement[JC] var onmouseup: js.Function1[MouseEvent, _] +HTMLDialogElement[JC] var onmousewheel: js.Function1[WheelEvent, _] +HTMLDialogElement[JC] var onpaste: js.Function1[ClipboardEvent, _] +HTMLDialogElement[JC] var onpause: js.Function1[Event, _] +HTMLDialogElement[JC] var onplay: js.Function1[Event, _] +HTMLDialogElement[JC] var onplaying: js.Function1[Event, _] +HTMLDialogElement[JC] var onpointercancel: js.Function1[PointerEvent, _] +HTMLDialogElement[JC] var onpointerdown: js.Function1[PointerEvent, _] +HTMLDialogElement[JC] var onpointerenter: js.Function1[PointerEvent, _] +HTMLDialogElement[JC] var onpointerleave: js.Function1[PointerEvent, _] +HTMLDialogElement[JC] var onpointermove: js.Function1[PointerEvent, _] +HTMLDialogElement[JC] var onpointerout: js.Function1[PointerEvent, _] +HTMLDialogElement[JC] var onpointerover: js.Function1[PointerEvent, _] +HTMLDialogElement[JC] var onpointerup: js.Function1[PointerEvent, _] +HTMLDialogElement[JC] var onprogress: js.Function1[js.Any, _] +HTMLDialogElement[JC] var onratechange: js.Function1[Event, _] +HTMLDialogElement[JC] var onreadystatechange: js.Function1[Event, _] +HTMLDialogElement[JC] var onreset: js.Function1[Event, _] +HTMLDialogElement[JC] var onscroll: js.Function1[UIEvent, _] +HTMLDialogElement[JC] var onseeked: js.Function1[Event, _] +HTMLDialogElement[JC] var onseeking: js.Function1[Event, _] +HTMLDialogElement[JC] var onselect: js.Function1[UIEvent, _] +HTMLDialogElement[JC] var onselectstart: js.Function1[Event, _] +HTMLDialogElement[JC] var onstalled: js.Function1[Event, _] +HTMLDialogElement[JC] var onsubmit: js.Function1[Event, _] +HTMLDialogElement[JC] var onsuspend: js.Function1[Event, _] +HTMLDialogElement[JC] var ontimeupdate: js.Function1[Event, _] +HTMLDialogElement[JC] var onvolumechange: js.Function1[Event, _] +HTMLDialogElement[JC] var onwaiting: js.Function1[Event, _] +HTMLDialogElement[JC] var onwheel: js.Function1[WheelEvent, _] +HTMLDialogElement[JC] def open: Boolean +HTMLDialogElement[JC] var outerHTML: String +HTMLDialogElement[JC] def ownerDocument: Document +HTMLDialogElement[JC] override def ownerDocument: HTMLDocument +HTMLDialogElement[JC] var parentElement: HTMLElement +HTMLDialogElement[JC] def parentNode: Node +HTMLDialogElement[JC] def prefix: String +HTMLDialogElement[JC] def prepend(nodes: Node | String*): Unit +HTMLDialogElement[JC] def previousElementSibling: Element +HTMLDialogElement[JC] def previousSibling: Node +HTMLDialogElement[JC] def querySelector(selectors: String): Element +HTMLDialogElement[JC] def querySelectorAll(selectors: String): NodeList[Element] +HTMLDialogElement[JC] var readyState: js.Any +HTMLDialogElement[JC] var recordNumber: js.Any +HTMLDialogElement[JC] def remove(): Unit +HTMLDialogElement[JC] def removeAttribute(name: String): Unit +HTMLDialogElement[JC] def removeAttributeNS(namespaceURI: String, localName: String): Unit +HTMLDialogElement[JC] def removeAttributeNode(oldAttr: Attr): Attr +HTMLDialogElement[JC] def removeChild(oldChild: Node): Node +HTMLDialogElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit +HTMLDialogElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit +HTMLDialogElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node +HTMLDialogElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLDialogElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] +HTMLDialogElement[JC] def requestPointerLock(): Unit +HTMLDialogElement[JC] var returnValue: String +HTMLDialogElement[JC] def scrollHeight: Int +HTMLDialogElement[JC] def scrollIntoView(top: Boolean?): Unit +HTMLDialogElement[JC] var scrollLeft: Double +HTMLDialogElement[JC] var scrollTop: Double +HTMLDialogElement[JC] def scrollWidth: Int +HTMLDialogElement[JC] def setAttribute(name: String, value: String): Unit +HTMLDialogElement[JC] def setAttributeNS(namespaceURI: String, qualifiedName: String, value: String): Unit +HTMLDialogElement[JC] def setAttributeNode(newAttr: Attr): Attr +HTMLDialogElement[JC] def setAttributeNodeNS(newAttr: Attr): Attr +HTMLDialogElement[JC] def shadowRoot: ShadowRoot +HTMLDialogElement[JC] def show(): Unit +HTMLDialogElement[JC] def showModal(): Unit +HTMLDialogElement[JC] var spellcheck: Boolean +HTMLDialogElement[JC] def style: CSSStyleDeclaration +HTMLDialogElement[JC] def style_ = (value: CSSStyleDeclaration): Unit +HTMLDialogElement[JC] def style_ = (value: String): Unit +HTMLDialogElement[JC] var tabIndex: Int +HTMLDialogElement[JC] def tagName: String +HTMLDialogElement[JC] var textContent: String +HTMLDialogElement[JC] var title: String HTMLDivElement[JC] var accessKey: String HTMLDivElement[JC] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit HTMLDivElement[JC] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit diff --git a/api-reports/2_13.txt b/api-reports/2_13.txt index f16a5a82e..0c7e86bb3 100644 --- a/api-reports/2_13.txt +++ b/api-reports/2_13.txt @@ -4149,6 +4149,210 @@ HTMLDataListElement[JC] var tabIndex: Int HTMLDataListElement[JC] def tagName: String HTMLDataListElement[JC] var textContent: String HTMLDataListElement[JC] var title: String +HTMLDialogElement[JC] var accessKey: String +HTMLDialogElement[JC] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit +HTMLDialogElement[JC] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit +HTMLDialogElement[JC] def after(nodes: Node | String*): Unit +HTMLDialogElement[JC] def append(nodes: Node | String*): Unit +HTMLDialogElement[JC] def appendChild(newChild: Node): Node +HTMLDialogElement[JC] def attachShadow(init: ShadowRootInit): ShadowRoot +HTMLDialogElement[JC] def attributes: NamedNodeMap +HTMLDialogElement[JC] def baseURI: String +HTMLDialogElement[JC] def before(nodes: Node | String*): Unit +HTMLDialogElement[JC] def blur(): Unit +HTMLDialogElement[JC] def childElementCount: Int +HTMLDialogElement[JC] def childNodes: NodeList[Node] +HTMLDialogElement[JC] def children: HTMLCollection[Element] +HTMLDialogElement[JC] var classList: DOMTokenList +HTMLDialogElement[JC] var className: String +HTMLDialogElement[JC] def click(): Unit +HTMLDialogElement[JC] def clientHeight: Int +HTMLDialogElement[JC] def clientLeft: Int +HTMLDialogElement[JC] def clientTop: Int +HTMLDialogElement[JC] def clientWidth: Int +HTMLDialogElement[JC] def cloneNode(deep: Boolean?): Node +HTMLDialogElement[JC] def close(returnValue: String?): Unit +HTMLDialogElement[JC] def compareDocumentPosition(other: Node): Int +HTMLDialogElement[JC] def contains(child: HTMLElement): Boolean +HTMLDialogElement[JC] def contains(otherNode: Node): Boolean +HTMLDialogElement[JC] var contentEditable: String +HTMLDialogElement[JC] def dataset: js.Dictionary[String] +HTMLDialogElement[JC] var dir: String +HTMLDialogElement[JC] def dispatchEvent(evt: Event): Boolean +HTMLDialogElement[JC] var draggable: Boolean +HTMLDialogElement[JC] var filters: Object +HTMLDialogElement[JC] def firstChild: Node +HTMLDialogElement[JC] def firstElementChild: Element +HTMLDialogElement[JC] def focus(): Unit +HTMLDialogElement[JC] def getAttribute(name: String): String +HTMLDialogElement[JC] def getAttributeNS(namespaceURI: String, localName: String): String +HTMLDialogElement[JC] def getAttributeNode(name: String): Attr +HTMLDialogElement[JC] def getAttributeNodeNS(namespaceURI: String, localName: String): Attr +HTMLDialogElement[JC] def getBoundingClientRect(): DOMRect +HTMLDialogElement[JC] def getClientRects(): DOMRectList +HTMLDialogElement[JC] def getElementsByClassName(classNames: String): HTMLCollection[Element] +HTMLDialogElement[JC] def getElementsByTagName(name: String): HTMLCollection[Element] +HTMLDialogElement[JC] def getElementsByTagNameNS(namespaceURI: String, localName: String): HTMLCollection[Element] +HTMLDialogElement[JC] var gotpointercapture: js.Function1[PointerEvent, _] +HTMLDialogElement[JC] def hasAttribute(name: String): Boolean +HTMLDialogElement[JC] def hasAttributeNS(namespaceURI: String, localName: String): Boolean +HTMLDialogElement[JC] def hasAttributes(): Boolean +HTMLDialogElement[JC] def hasChildNodes(): Boolean +HTMLDialogElement[JC] var id: String +HTMLDialogElement[JC] var innerHTML: String +HTMLDialogElement[JC] var innerText: String +HTMLDialogElement[JC] def insertAdjacentElement(position: String, element: Element): Element +HTMLDialogElement[JC] def insertAdjacentHTML(where: String, html: String): Unit +HTMLDialogElement[JC] def insertBefore(newChild: Node, refChild: Node): Node +HTMLDialogElement[JC] def isConnected: Boolean +HTMLDialogElement[JC] def isContentEditable: Boolean +HTMLDialogElement[JC] def isDefaultNamespace(namespaceURI: String): Boolean +HTMLDialogElement[JC] def isEqualNode(arg: Node): Boolean +HTMLDialogElement[JC] def isSameNode(other: Node): Boolean +HTMLDialogElement[JC] def isSupported(feature: String, version: String): Boolean +HTMLDialogElement[JC] var lang: String +HTMLDialogElement[JC] def lastChild: Node +HTMLDialogElement[JC] def lastElementChild: Element +HTMLDialogElement[JC] def localName: String +HTMLDialogElement[JC] def lookupNamespaceURI(prefix: String): String +HTMLDialogElement[JC] def lookupPrefix(namespaceURI: String): String +HTMLDialogElement[JC] var lostpointercapture: js.Function1[PointerEvent, _] +HTMLDialogElement[JC] def matches(selector: String): Boolean +HTMLDialogElement[JC] def namespaceURI: String +HTMLDialogElement[JC] def nextElementSibling: Element +HTMLDialogElement[JC] def nextSibling: Node +HTMLDialogElement[JC] def nodeName: String +HTMLDialogElement[JC] def nodeType: Int +HTMLDialogElement[JC] var nodeValue: String +HTMLDialogElement[JC] def normalize(): Unit +HTMLDialogElement[JC] def offsetHeight: Double +HTMLDialogElement[JC] def offsetLeft: Double +HTMLDialogElement[JC] def offsetParent: Element +HTMLDialogElement[JC] def offsetTop: Double +HTMLDialogElement[JC] def offsetWidth: Double +HTMLDialogElement[JC] var onabort: js.Function1[UIEvent, _] +HTMLDialogElement[JC] var onactivate: js.Function1[UIEvent, _] +HTMLDialogElement[JC] var onbeforeactivate: js.Function1[UIEvent, _] +HTMLDialogElement[JC] var onbeforecopy: js.Function1[DragEvent, _] +HTMLDialogElement[JC] var onbeforecut: js.Function1[DragEvent, _] +HTMLDialogElement[JC] var onbeforedeactivate: js.Function1[UIEvent, _] +HTMLDialogElement[JC] var onbeforepaste: js.Function1[DragEvent, _] +HTMLDialogElement[JC] var onblur: js.Function1[FocusEvent, _] +HTMLDialogElement[JC] var oncanplay: js.Function1[Event, _] +HTMLDialogElement[JC] var oncanplaythrough: js.Function1[Event, _] +HTMLDialogElement[JC] var onchange: js.Function1[Event, _] +HTMLDialogElement[JC] var onclick: js.Function1[MouseEvent, _] +HTMLDialogElement[JC] var oncontextmenu: js.Function1[MouseEvent, _] +HTMLDialogElement[JC] var oncopy: js.Function1[ClipboardEvent, _] +HTMLDialogElement[JC] var oncuechange: js.Function1[Event, _] +HTMLDialogElement[JC] var oncut: js.Function1[ClipboardEvent, _] +HTMLDialogElement[JC] var ondblclick: js.Function1[MouseEvent, _] +HTMLDialogElement[JC] var ondeactivate: js.Function1[UIEvent, _] +HTMLDialogElement[JC] var ondrag: js.Function1[DragEvent, _] +HTMLDialogElement[JC] var ondragend: js.Function1[DragEvent, _] +HTMLDialogElement[JC] var ondragenter: js.Function1[DragEvent, _] +HTMLDialogElement[JC] var ondragleave: js.Function1[DragEvent, _] +HTMLDialogElement[JC] var ondragover: js.Function1[DragEvent, _] +HTMLDialogElement[JC] var ondragstart: js.Function1[DragEvent, _] +HTMLDialogElement[JC] var ondrop: js.Function1[DragEvent, _] +HTMLDialogElement[JC] var ondurationchange: js.Function1[Event, _] +HTMLDialogElement[JC] var onemptied: js.Function1[Event, _] +HTMLDialogElement[JC] var onended: js.Function1[Event, _] +HTMLDialogElement[JC] var onfocus: js.Function1[FocusEvent, _] +HTMLDialogElement[JC] var onfocusin: js.Function1[FocusEvent, _] +HTMLDialogElement[JC] var onfocusout: js.Function1[FocusEvent, _] +HTMLDialogElement[JC] var onfullscreenchange: js.Function1[Event, _] +HTMLDialogElement[JC] var onfullscreenerror: js.Function1[Event, _] +HTMLDialogElement[JC] var onhelp: js.Function1[Event, _] +HTMLDialogElement[JC] var oninput: js.Function1[Event, _] +HTMLDialogElement[JC] var onkeydown: js.Function1[KeyboardEvent, _] +HTMLDialogElement[JC] var onkeypress: js.Function1[KeyboardEvent, _] +HTMLDialogElement[JC] var onkeyup: js.Function1[KeyboardEvent, _] +HTMLDialogElement[JC] var onloadeddata: js.Function1[Event, _] +HTMLDialogElement[JC] var onloadedmetadata: js.Function1[Event, _] +HTMLDialogElement[JC] var onloadstart: js.Function1[Event, _] +HTMLDialogElement[JC] var onmousedown: js.Function1[MouseEvent, _] +HTMLDialogElement[JC] var onmouseenter: js.Function1[MouseEvent, _] +HTMLDialogElement[JC] var onmouseleave: js.Function1[MouseEvent, _] +HTMLDialogElement[JC] var onmousemove: js.Function1[MouseEvent, _] +HTMLDialogElement[JC] var onmouseout: js.Function1[MouseEvent, _] +HTMLDialogElement[JC] var onmouseover: js.Function1[MouseEvent, _] +HTMLDialogElement[JC] var onmouseup: js.Function1[MouseEvent, _] +HTMLDialogElement[JC] var onmousewheel: js.Function1[WheelEvent, _] +HTMLDialogElement[JC] var onpaste: js.Function1[ClipboardEvent, _] +HTMLDialogElement[JC] var onpause: js.Function1[Event, _] +HTMLDialogElement[JC] var onplay: js.Function1[Event, _] +HTMLDialogElement[JC] var onplaying: js.Function1[Event, _] +HTMLDialogElement[JC] var onpointercancel: js.Function1[PointerEvent, _] +HTMLDialogElement[JC] var onpointerdown: js.Function1[PointerEvent, _] +HTMLDialogElement[JC] var onpointerenter: js.Function1[PointerEvent, _] +HTMLDialogElement[JC] var onpointerleave: js.Function1[PointerEvent, _] +HTMLDialogElement[JC] var onpointermove: js.Function1[PointerEvent, _] +HTMLDialogElement[JC] var onpointerout: js.Function1[PointerEvent, _] +HTMLDialogElement[JC] var onpointerover: js.Function1[PointerEvent, _] +HTMLDialogElement[JC] var onpointerup: js.Function1[PointerEvent, _] +HTMLDialogElement[JC] var onprogress: js.Function1[js.Any, _] +HTMLDialogElement[JC] var onratechange: js.Function1[Event, _] +HTMLDialogElement[JC] var onreadystatechange: js.Function1[Event, _] +HTMLDialogElement[JC] var onreset: js.Function1[Event, _] +HTMLDialogElement[JC] var onscroll: js.Function1[UIEvent, _] +HTMLDialogElement[JC] var onseeked: js.Function1[Event, _] +HTMLDialogElement[JC] var onseeking: js.Function1[Event, _] +HTMLDialogElement[JC] var onselect: js.Function1[UIEvent, _] +HTMLDialogElement[JC] var onselectstart: js.Function1[Event, _] +HTMLDialogElement[JC] var onstalled: js.Function1[Event, _] +HTMLDialogElement[JC] var onsubmit: js.Function1[Event, _] +HTMLDialogElement[JC] var onsuspend: js.Function1[Event, _] +HTMLDialogElement[JC] var ontimeupdate: js.Function1[Event, _] +HTMLDialogElement[JC] var onvolumechange: js.Function1[Event, _] +HTMLDialogElement[JC] var onwaiting: js.Function1[Event, _] +HTMLDialogElement[JC] var onwheel: js.Function1[WheelEvent, _] +HTMLDialogElement[JC] def open: Boolean +HTMLDialogElement[JC] var outerHTML: String +HTMLDialogElement[JC] def ownerDocument: Document +HTMLDialogElement[JC] override def ownerDocument: HTMLDocument +HTMLDialogElement[JC] var parentElement: HTMLElement +HTMLDialogElement[JC] def parentNode: Node +HTMLDialogElement[JC] def prefix: String +HTMLDialogElement[JC] def prepend(nodes: Node | String*): Unit +HTMLDialogElement[JC] def previousElementSibling: Element +HTMLDialogElement[JC] def previousSibling: Node +HTMLDialogElement[JC] def querySelector(selectors: String): Element +HTMLDialogElement[JC] def querySelectorAll(selectors: String): NodeList[Element] +HTMLDialogElement[JC] var readyState: js.Any +HTMLDialogElement[JC] var recordNumber: js.Any +HTMLDialogElement[JC] def remove(): Unit +HTMLDialogElement[JC] def removeAttribute(name: String): Unit +HTMLDialogElement[JC] def removeAttributeNS(namespaceURI: String, localName: String): Unit +HTMLDialogElement[JC] def removeAttributeNode(oldAttr: Attr): Attr +HTMLDialogElement[JC] def removeChild(oldChild: Node): Node +HTMLDialogElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit +HTMLDialogElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit +HTMLDialogElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node +HTMLDialogElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLDialogElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] +HTMLDialogElement[JC] def requestPointerLock(): Unit +HTMLDialogElement[JC] var returnValue: String +HTMLDialogElement[JC] def scrollHeight: Int +HTMLDialogElement[JC] def scrollIntoView(top: Boolean?): Unit +HTMLDialogElement[JC] var scrollLeft: Double +HTMLDialogElement[JC] var scrollTop: Double +HTMLDialogElement[JC] def scrollWidth: Int +HTMLDialogElement[JC] def setAttribute(name: String, value: String): Unit +HTMLDialogElement[JC] def setAttributeNS(namespaceURI: String, qualifiedName: String, value: String): Unit +HTMLDialogElement[JC] def setAttributeNode(newAttr: Attr): Attr +HTMLDialogElement[JC] def setAttributeNodeNS(newAttr: Attr): Attr +HTMLDialogElement[JC] def shadowRoot: ShadowRoot +HTMLDialogElement[JC] def show(): Unit +HTMLDialogElement[JC] def showModal(): Unit +HTMLDialogElement[JC] var spellcheck: Boolean +HTMLDialogElement[JC] def style: CSSStyleDeclaration +HTMLDialogElement[JC] def style_ = (value: CSSStyleDeclaration): Unit +HTMLDialogElement[JC] def style_ = (value: String): Unit +HTMLDialogElement[JC] var tabIndex: Int +HTMLDialogElement[JC] def tagName: String +HTMLDialogElement[JC] var textContent: String +HTMLDialogElement[JC] var title: String HTMLDivElement[JC] var accessKey: String HTMLDivElement[JC] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit HTMLDivElement[JC] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit diff --git a/dom/src/main/scala/org/scalajs/dom/HTMLDialogElement.scala b/dom/src/main/scala/org/scalajs/dom/HTMLDialogElement.scala new file mode 100644 index 000000000..6d5d3057a --- /dev/null +++ b/dom/src/main/scala/org/scalajs/dom/HTMLDialogElement.scala @@ -0,0 +1,36 @@ +/** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API + * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. + * http://creativecommons.org/licenses/by-sa/2.5/ + * + * Everything else is under the MIT License http://opensource.org/licenses/MIT + */ +package org.scalajs.dom + +import scala.scalajs.js +import scala.scalajs.js.annotation._ + +/** The HTMLDialogElement interface provides methods to manipulate <dialog> elements. It inherits properties and + * methods from the HTMLElement interface. + */ +@js.native +@JSGlobal +abstract class HTMLDialogElement extends HTMLElement { + + /** A boolean value reflecting the `open` HTML attribute, indicating whether the dialog is available for interaction. + */ + def open: Boolean = js.native + + /** returnValue gets/sets the return value for the dialog. */ + var returnValue: String = js.native + + /** Closes the dialog. An optional string may be passed as an argument, updating the returnValue of the dialog. */ + def close(returnValue: String = js.native): Unit = js.native + + /** Displays the dialog modelessly, i.e. still allowing interaction with content outside of the dialog. */ + def show(): Unit = js.native + + /** Displays the dialog as a modal, over the top of any other dialogs that might be present. Interaction outside the + * dialog is blocked. + */ + def showModal(): Unit = js.native +} From 3c3bf043daf8f2e3ed8c3d978584ba123b4effe9 Mon Sep 17 00:00:00 2001 From: felher Date: Fri, 8 Jul 2022 12:30:24 +0200 Subject: [PATCH 15/47] Update Index.scalatex to use version 2.2.0 Not sure the support is still correct, but I added Scala 3.0 and 3.1 --- readme/Index.scalatex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/readme/Index.scalatex b/readme/Index.scalatex index 15ed0ffa1..73c810d0e 100644 --- a/readme/Index.scalatex +++ b/readme/Index.scalatex @@ -55,10 +55,10 @@ Add the following to your sbt build definition: @hl.scala - libraryDependencies += "org.scala-js" %%% "scalajs-dom" % "1.1.0" + libraryDependencies += "org.scala-js" %%% "scalajs-dom" % "2.2.0" @p - then enjoy the types available in @hl.scala{org.scalajs.dom}. scalajs-dom 1.1.0 is built and published for Scala.js 0.6.17+ and Scala.js 1.0.0+, with Scala 2.10, 2.11, 2.12 and 2.13. + then enjoy the types available in @hl.scala{org.scalajs.dom}. scalajs-dom 2.2.0 is built and published for Scala.js 0.6.17+ and Scala.js 1.0.0+, with Scala 2.10, 2.11, 2.12, 2.13, 3.0 and 3.1. @p To begin with, @code{scala-js-dom} organizes the full-list of DOM APIs into a number of buckets: From 33b283b9f8b4f656afab49b8b7da70594e8efcaf Mon Sep 17 00:00:00 2001 From: felher Date: Fri, 8 Jul 2022 12:42:35 +0200 Subject: [PATCH 16/47] Update readme/Index.scalatex with correct publish targets Co-authored-by: Arman Bilge --- readme/Index.scalatex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme/Index.scalatex b/readme/Index.scalatex index 73c810d0e..34b6a7cf6 100644 --- a/readme/Index.scalatex +++ b/readme/Index.scalatex @@ -58,7 +58,7 @@ libraryDependencies += "org.scala-js" %%% "scalajs-dom" % "2.2.0" @p - then enjoy the types available in @hl.scala{org.scalajs.dom}. scalajs-dom 2.2.0 is built and published for Scala.js 0.6.17+ and Scala.js 1.0.0+, with Scala 2.10, 2.11, 2.12, 2.13, 3.0 and 3.1. + then enjoy the types available in @hl.scala{org.scalajs.dom}. scalajs-dom 2.2.0 is built and published for Scala.js 1.5+ with Scala 2.11, 2.12, 2.13, and 3.0+. @p To begin with, @code{scala-js-dom} organizes the full-list of DOM APIs into a number of buckets: From cd8f38908dbdcff361dac9c987623243a20b30ad Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Sun, 10 Jul 2022 03:44:04 +0000 Subject: [PATCH 17/47] Update sbt-scalafix, scalafix-core to 0.10.1 --- project/plugins.sbt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/plugins.sbt b/project/plugins.sbt index af3f9c6c7..97ed02f5f 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,7 +1,7 @@ libraryDependencies += "org.scala-js" %% "scalajs-env-jsdom-nodejs" % "1.1.0" libraryDependencies += "org.scala-js" %% "scalajs-env-selenium" % "1.1.1" -addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.10.0") +addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.10.1") addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.11.0") addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.10") addSbtPlugin("com.lihaoyi" % "scalatex-sbt-plugin" % "0.3.11") From 506d4ca2377cad56bf9359ee7f741d79c5ab14bd Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Sun, 10 Jul 2022 03:44:10 +0000 Subject: [PATCH 18/47] Update scalafmt-core to 3.5.8 --- .scalafmt.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.scalafmt.conf b/.scalafmt.conf index e3091fd5e..517e6b539 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -1,4 +1,4 @@ -version = 3.5.3 +version = 3.5.8 runner.dialect = scala213source3 project.git = true style = Scala.js From 0d5ba7314bbf554527e84c4e3504f7ce41bc9ec6 Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Tue, 12 Jul 2022 03:55:23 +0000 Subject: [PATCH 19/47] Update sbt to 1.7.1 --- project/build.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/build.properties b/project/build.properties index c8fcab543..22af2628c 100644 --- a/project/build.properties +++ b/project/build.properties @@ -1 +1 @@ -sbt.version=1.6.2 +sbt.version=1.7.1 From 4f84fd717114165fdaf1ecc77b21982fdebcc340 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 21 Jul 2022 12:22:43 +0000 Subject: [PATCH 20/47] Bump JamesIves/github-pages-deploy-action from 4.3.4 to 4.4.0 Bumps [JamesIves/github-pages-deploy-action](https://github.com/JamesIves/github-pages-deploy-action) from 4.3.4 to 4.4.0. - [Release notes](https://github.com/JamesIves/github-pages-deploy-action/releases) - [Commits](https://github.com/JamesIves/github-pages-deploy-action/compare/v4.3.4...v4.4.0) --- updated-dependencies: - dependency-name: JamesIves/github-pages-deploy-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/ghpages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ghpages.yml b/.github/workflows/ghpages.yml index 298792b53..52b6b8223 100644 --- a/.github/workflows/ghpages.yml +++ b/.github/workflows/ghpages.yml @@ -19,7 +19,7 @@ jobs: run: sbt readme/run - name: Deploy - uses: JamesIves/github-pages-deploy-action@v4.3.4 + uses: JamesIves/github-pages-deploy-action@v4.4.0 with: token: ${{ secrets.GITHUB_TOKEN }} branch: gh-pages From 34e162a759bd2aa46484efdcb38e10bce7be0fc6 Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Sun, 14 Aug 2022 21:08:03 +0000 Subject: [PATCH 21/47] Update scalafmt-core to 3.5.9 --- .scalafmt.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.scalafmt.conf b/.scalafmt.conf index 517e6b539..875e9fcae 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -1,4 +1,4 @@ -version = 3.5.8 +version = 3.5.9 runner.dialect = scala213source3 project.git = true style = Scala.js From 567c1e3857a998ad6be9bb3d0b20ebe8095ec0f0 Mon Sep 17 00:00:00 2001 From: zetashift Date: Sat, 20 Aug 2022 12:55:04 +0200 Subject: [PATCH 22/47] Add ScrollRestoration facade --- api-reports/2_12.txt | 4 ++++ api-reports/2_13.txt | 4 ++++ .../org/scalajs/dom/ScrollRestoration.scala | 15 +++++++++++++++ .../org/scalajs/dom/ScrollRestoration.scala | 14 ++++++++++++++ dom/src/main/scala/org/scalajs/dom/History.scala | 11 +++++++++++ 5 files changed, 48 insertions(+) create mode 100644 dom/src/main/scala-2/org/scalajs/dom/ScrollRestoration.scala create mode 100644 dom/src/main/scala-3/org/scalajs/dom/ScrollRestoration.scala diff --git a/api-reports/2_12.txt b/api-reports/2_12.txt index 0c7e86bb3..c60d6fe8f 100644 --- a/api-reports/2_12.txt +++ b/api-reports/2_12.txt @@ -14486,6 +14486,7 @@ History[JC] def pushState(statedata: js.Any, title: String): Unit History[JC] def pushState(statedata: js.Any, title: String, url: String): Unit History[JC] def replaceState(statedata: js.Any, title: String): Unit History[JC] def replaceState(statedata: js.Any, title: String, url: String): Unit +History[JC] var scrollRestoration: ScrollRestoration History[JC] def state: js.Any HkdfCtrParams[JT] val context: BufferSource HkdfCtrParams[JT] val hash: HashAlgorithmIdentifier @@ -24703,6 +24704,9 @@ Screen[JC] def colorDepth: Int Screen[JC] def height: Double Screen[JC] def pixelDepth: Int Screen[JC] def width: Double +ScrollRestoration[JT] +ScrollRestoration[SO] val auto: ScrollRestoration +ScrollRestoration[SO] val manual: ScrollRestoration Selection[JC] def addRange(range: Range): Unit Selection[JC] def anchorNode: Node Selection[JC] def anchorOffset: Int diff --git a/api-reports/2_13.txt b/api-reports/2_13.txt index 0c7e86bb3..c60d6fe8f 100644 --- a/api-reports/2_13.txt +++ b/api-reports/2_13.txt @@ -14486,6 +14486,7 @@ History[JC] def pushState(statedata: js.Any, title: String): Unit History[JC] def pushState(statedata: js.Any, title: String, url: String): Unit History[JC] def replaceState(statedata: js.Any, title: String): Unit History[JC] def replaceState(statedata: js.Any, title: String, url: String): Unit +History[JC] var scrollRestoration: ScrollRestoration History[JC] def state: js.Any HkdfCtrParams[JT] val context: BufferSource HkdfCtrParams[JT] val hash: HashAlgorithmIdentifier @@ -24703,6 +24704,9 @@ Screen[JC] def colorDepth: Int Screen[JC] def height: Double Screen[JC] def pixelDepth: Int Screen[JC] def width: Double +ScrollRestoration[JT] +ScrollRestoration[SO] val auto: ScrollRestoration +ScrollRestoration[SO] val manual: ScrollRestoration Selection[JC] def addRange(range: Range): Unit Selection[JC] def anchorNode: Node Selection[JC] def anchorOffset: Int diff --git a/dom/src/main/scala-2/org/scalajs/dom/ScrollRestoration.scala b/dom/src/main/scala-2/org/scalajs/dom/ScrollRestoration.scala new file mode 100644 index 000000000..6e63ca0ed --- /dev/null +++ b/dom/src/main/scala-2/org/scalajs/dom/ScrollRestoration.scala @@ -0,0 +1,15 @@ +package org.scalajs.dom + +import scala.scalajs.js + +@js.native +sealed trait ScrollRestoration extends js.Any + +/** + * see [[https://html.spec.whatwg.org/multipage/history.html#the-history-interface]] + * which contains the spec for ScrollRestoration + */ +object ScrollRestoration { + val auto: ScrollRestoration = "auto".asInstanceOf[ScrollRestoration] + val manual: ScrollRestoration = "manual".asInstanceOf[ScrollRestoration] +} \ No newline at end of file diff --git a/dom/src/main/scala-3/org/scalajs/dom/ScrollRestoration.scala b/dom/src/main/scala-3/org/scalajs/dom/ScrollRestoration.scala new file mode 100644 index 000000000..f996902d1 --- /dev/null +++ b/dom/src/main/scala-3/org/scalajs/dom/ScrollRestoration.scala @@ -0,0 +1,14 @@ +package org.scalajs.dom + +import scala.scalajs.js + +opaque type ScrollRestoration <: String = String + +/** + * see [[https://html.spec.whatwg.org/multipage/history.html#the-history-interface]] + * which contains the spec for ScrollRestoration + */ +object ScrollRestoration { + val auto: ScrollRestoration = "auto" + val manual: ScrollRestoration = "manual" +} \ No newline at end of file diff --git a/dom/src/main/scala/org/scalajs/dom/History.scala b/dom/src/main/scala/org/scalajs/dom/History.scala index 83219f1d6..b2aad9920 100644 --- a/dom/src/main/scala/org/scalajs/dom/History.scala +++ b/dom/src/main/scala/org/scalajs/dom/History.scala @@ -71,4 +71,15 @@ class History extends js.Object { * safely passed. */ def pushState(statedata: js.Any, title: String): Unit = js.native + + /** The scrollRestoration property of History interface allows web applications to explicitly set default scroll + * restoration behavior on history navigation. + * + * Can have onne of the followings values: + * + * auto: The location on the page to which the user has scrolled will be restored. + * + * manual: The location on the page is not restored. The user will have to scroll to the location manually. + */ + var scrollRestoration: ScrollRestoration = js.native } From a64b7c28880a1de8b3ad5a10690cbe5bc6d08eae Mon Sep 17 00:00:00 2001 From: zetashift Date: Sat, 20 Aug 2022 13:10:53 +0200 Subject: [PATCH 23/47] Better doc comments for Scroll Restoration Co-authored-by: Arman Bilge --- dom/src/main/scala-3/org/scalajs/dom/ScrollRestoration.scala | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dom/src/main/scala-3/org/scalajs/dom/ScrollRestoration.scala b/dom/src/main/scala-3/org/scalajs/dom/ScrollRestoration.scala index f996902d1..d42dab8f3 100644 --- a/dom/src/main/scala-3/org/scalajs/dom/ScrollRestoration.scala +++ b/dom/src/main/scala-3/org/scalajs/dom/ScrollRestoration.scala @@ -9,6 +9,8 @@ opaque type ScrollRestoration <: String = String * which contains the spec for ScrollRestoration */ object ScrollRestoration { + /** The location on the page to which the user has scrolled will be restored. */ val auto: ScrollRestoration = "auto" + /** The location on the page is not restored. The user will have to scroll to the location manually. */ val manual: ScrollRestoration = "manual" } \ No newline at end of file From 01d7e06d1d30dba6c88a7a8c6e2c25b6fb65cfde Mon Sep 17 00:00:00 2001 From: zetashift Date: Sat, 20 Aug 2022 13:11:21 +0200 Subject: [PATCH 24/47] Better doc comment for History.scrollRestoration Co-authored-by: Arman Bilge --- dom/src/main/scala/org/scalajs/dom/History.scala | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/dom/src/main/scala/org/scalajs/dom/History.scala b/dom/src/main/scala/org/scalajs/dom/History.scala index b2aad9920..0fcd918c4 100644 --- a/dom/src/main/scala/org/scalajs/dom/History.scala +++ b/dom/src/main/scala/org/scalajs/dom/History.scala @@ -72,14 +72,8 @@ class History extends js.Object { */ def pushState(statedata: js.Any, title: String): Unit = js.native - /** The scrollRestoration property of History interface allows web applications to explicitly set default scroll + /** The `scrollRestoration` property of [[History]] interface allows web applications to explicitly set default scroll * restoration behavior on history navigation. - * - * Can have onne of the followings values: - * - * auto: The location on the page to which the user has scrolled will be restored. - * - * manual: The location on the page is not restored. The user will have to scroll to the location manually. */ var scrollRestoration: ScrollRestoration = js.native } From 0316e6ced9b54062bf8c889db64c450b2c065694 Mon Sep 17 00:00:00 2001 From: zetashift Date: Sat, 20 Aug 2022 13:26:48 +0200 Subject: [PATCH 25/47] Add duplex property for the Fetch API's Request type --- api-reports/2_12.txt | 3 +++ api-reports/2_13.txt | 3 +++ .../scala-2/org/scalajs/dom/RequestDuplex.scala | 13 +++++++++++++ .../scala-3/org/scalajs/dom/RequestDuplex.scala | 12 ++++++++++++ dom/src/main/scala/org/scalajs/dom/Request.scala | 5 +++++ 5 files changed, 36 insertions(+) create mode 100644 dom/src/main/scala-2/org/scalajs/dom/RequestDuplex.scala create mode 100644 dom/src/main/scala-3/org/scalajs/dom/RequestDuplex.scala diff --git a/api-reports/2_12.txt b/api-reports/2_12.txt index 0c7e86bb3..5b8401c7d 100644 --- a/api-reports/2_12.txt +++ b/api-reports/2_12.txt @@ -16510,6 +16510,7 @@ Request[JC] def bodyUsed: Boolean Request[JC] def cache: RequestCache Request[JC] def credentials: RequestCredentials Request[JC] def destination: RequestDestination +Request[JC] def duplex: RequestDuplex Request[JC] def formData(): js.Promise[FormData] Request[JC] def headers: Headers Request[JC] def integrity: String @@ -16542,6 +16543,8 @@ RequestDestination[SO] val sharedworker: RequestDestination RequestDestination[SO] val subresource: RequestDestination RequestDestination[SO] val unknown: RequestDestination RequestDestination[SO] val worker: RequestDestination +RequestDuplex[JT] +RequestDuplex[SO] val half: RequestDuplex RequestInit[JT] var body: js.UndefOr[BodyInit] RequestInit[JT] var cache: js.UndefOr[RequestCache] RequestInit[JT] var credentials: js.UndefOr[RequestCredentials] diff --git a/api-reports/2_13.txt b/api-reports/2_13.txt index 0c7e86bb3..5b8401c7d 100644 --- a/api-reports/2_13.txt +++ b/api-reports/2_13.txt @@ -16510,6 +16510,7 @@ Request[JC] def bodyUsed: Boolean Request[JC] def cache: RequestCache Request[JC] def credentials: RequestCredentials Request[JC] def destination: RequestDestination +Request[JC] def duplex: RequestDuplex Request[JC] def formData(): js.Promise[FormData] Request[JC] def headers: Headers Request[JC] def integrity: String @@ -16542,6 +16543,8 @@ RequestDestination[SO] val sharedworker: RequestDestination RequestDestination[SO] val subresource: RequestDestination RequestDestination[SO] val unknown: RequestDestination RequestDestination[SO] val worker: RequestDestination +RequestDuplex[JT] +RequestDuplex[SO] val half: RequestDuplex RequestInit[JT] var body: js.UndefOr[BodyInit] RequestInit[JT] var cache: js.UndefOr[RequestCache] RequestInit[JT] var credentials: js.UndefOr[RequestCredentials] diff --git a/dom/src/main/scala-2/org/scalajs/dom/RequestDuplex.scala b/dom/src/main/scala-2/org/scalajs/dom/RequestDuplex.scala new file mode 100644 index 000000000..eea64b4b0 --- /dev/null +++ b/dom/src/main/scala-2/org/scalajs/dom/RequestDuplex.scala @@ -0,0 +1,13 @@ +package org.scalajs.dom + +import scala.scalajs.js + +/** + * Fetch APIs [[https://fetch.spec.whatwg.org/#dom-requestinit-duplex RequestDuplex enum]] + */ +@js.native +sealed trait RequestDuplex extends js.Any + +object RequestDuplex { + val half: RequestDuplex = "half".asInstanceOf[RequestDuplex] +} \ No newline at end of file diff --git a/dom/src/main/scala-3/org/scalajs/dom/RequestDuplex.scala b/dom/src/main/scala-3/org/scalajs/dom/RequestDuplex.scala new file mode 100644 index 000000000..4cd11748f --- /dev/null +++ b/dom/src/main/scala-3/org/scalajs/dom/RequestDuplex.scala @@ -0,0 +1,12 @@ +package org.scalajs.dom + +import scala.scalajs.js + +/** + * Fetch APIs [[https://fetch.spec.whatwg.org/#dom-requestinit-duplex RequestDuplex enum]] + */ +opaque type RequestDuplex <: String = String + +object RequestDuplex { + val half: RequestDuplex = "half" +} \ No newline at end of file diff --git a/dom/src/main/scala/org/scalajs/dom/Request.scala b/dom/src/main/scala/org/scalajs/dom/Request.scala index 124849a8f..297462f4d 100644 --- a/dom/src/main/scala/org/scalajs/dom/Request.scala +++ b/dom/src/main/scala/org/scalajs/dom/Request.scala @@ -47,4 +47,9 @@ class Request(input: RequestInfo, init: RequestInit = null) extends Body { def keepalive: Boolean = js.native def signal: AbortSignal = js.native + + /** "half" is the only valid value and it is for initiating a half-duplex fetch (i.e., the user agent sends the entire + * request before processing the response). + */ + def duplex: RequestDuplex = js.native } From 87f489f05d0cde4d7d938e4cb3b86aeec506575f Mon Sep 17 00:00:00 2001 From: zetashift Date: Sat, 20 Aug 2022 13:31:56 +0200 Subject: [PATCH 26/47] Minor newlines formatting --- dom/src/main/scala-2/org/scalajs/dom/RequestDuplex.scala | 2 +- dom/src/main/scala-3/org/scalajs/dom/RequestDuplex.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dom/src/main/scala-2/org/scalajs/dom/RequestDuplex.scala b/dom/src/main/scala-2/org/scalajs/dom/RequestDuplex.scala index eea64b4b0..de0973d2c 100644 --- a/dom/src/main/scala-2/org/scalajs/dom/RequestDuplex.scala +++ b/dom/src/main/scala-2/org/scalajs/dom/RequestDuplex.scala @@ -10,4 +10,4 @@ sealed trait RequestDuplex extends js.Any object RequestDuplex { val half: RequestDuplex = "half".asInstanceOf[RequestDuplex] -} \ No newline at end of file +} diff --git a/dom/src/main/scala-3/org/scalajs/dom/RequestDuplex.scala b/dom/src/main/scala-3/org/scalajs/dom/RequestDuplex.scala index 4cd11748f..41f5092ba 100644 --- a/dom/src/main/scala-3/org/scalajs/dom/RequestDuplex.scala +++ b/dom/src/main/scala-3/org/scalajs/dom/RequestDuplex.scala @@ -9,4 +9,4 @@ opaque type RequestDuplex <: String = String object RequestDuplex { val half: RequestDuplex = "half" -} \ No newline at end of file +} From 4ddfa4dc1f809645e5e4c08dcf88a94d4b20b173 Mon Sep 17 00:00:00 2001 From: zetashift Date: Sat, 20 Aug 2022 13:47:35 +0200 Subject: [PATCH 27/47] Resolve #692 - Add Element.replaceWith --- api-reports/2_12.txt | 121 ++++++++++++++++++ api-reports/2_13.txt | 121 ++++++++++++++++++ .../main/scala/org/scalajs/dom/Element.scala | 5 + 3 files changed, 247 insertions(+) diff --git a/api-reports/2_12.txt b/api-reports/2_12.txt index 0c7e86bb3..262c1fb3e 100644 --- a/api-reports/2_12.txt +++ b/api-reports/2_12.txt @@ -1782,6 +1782,7 @@ Element[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Fun Element[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit Element[JC] def replaceChild(newChild: Node, oldChild: Node): Node Element[JC] def replaceChildren(nodes: Node | String*): Unit +Element[JC] def replaceWith(nodes: Node | String*): Unit Element[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] Element[JC] def requestPointerLock(): Unit Element[JC] def scrollHeight: Int @@ -2251,6 +2252,7 @@ HTMLAnchorElement[JC] def removeEventListener[T <: Event](`type`: String, listen HTMLAnchorElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLAnchorElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLAnchorElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLAnchorElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLAnchorElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLAnchorElement[JC] def requestPointerLock(): Unit HTMLAnchorElement[JC] def scrollHeight: Int @@ -2463,6 +2465,7 @@ HTMLAreaElement[JC] def removeEventListener[T <: Event](`type`: String, listener HTMLAreaElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLAreaElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLAreaElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLAreaElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLAreaElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLAreaElement[JC] def requestPointerLock(): Unit HTMLAreaElement[JC] def scrollHeight: Int @@ -2687,6 +2690,7 @@ HTMLAudioElement[JC] def removeEventListener[T <: Event](`type`: String, listene HTMLAudioElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLAudioElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLAudioElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLAudioElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLAudioElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLAudioElement[JC] def requestPointerLock(): Unit HTMLAudioElement[JC] def scrollHeight: Int @@ -2892,6 +2896,7 @@ HTMLBRElement[JC] def removeEventListener[T <: Event](`type`: String, listener: HTMLBRElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLBRElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLBRElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLBRElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLBRElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLBRElement[JC] def requestPointerLock(): Unit HTMLBRElement[JC] def scrollHeight: Int @@ -3092,6 +3097,7 @@ HTMLBaseElement[JC] def removeEventListener[T <: Event](`type`: String, listener HTMLBaseElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLBaseElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLBaseElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLBaseElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLBaseElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLBaseElement[JC] def requestPointerLock(): Unit HTMLBaseElement[JC] def scrollHeight: Int @@ -3305,6 +3311,7 @@ HTMLBodyElement[JC] def removeEventListener[T <: Event](`type`: String, listener HTMLBodyElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLBodyElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLBodyElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLBodyElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLBodyElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLBodyElement[JC] def requestPointerLock(): Unit HTMLBodyElement[JC] var scroll: String @@ -3515,6 +3522,7 @@ HTMLButtonElement[JC] def removeEventListener[T <: Event](`type`: String, listen HTMLButtonElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLButtonElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLButtonElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLButtonElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLButtonElement[JC] def reportValidity(): Boolean HTMLButtonElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLButtonElement[JC] def requestPointerLock(): Unit @@ -3724,6 +3732,7 @@ HTMLCanvasElement[JC] def removeEventListener[T <: Event](`type`: String, listen HTMLCanvasElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLCanvasElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLCanvasElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLCanvasElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLCanvasElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLCanvasElement[JC] def requestPointerLock(): Unit HTMLCanvasElement[JC] def scrollHeight: Int @@ -3929,6 +3938,7 @@ HTMLDListElement[JC] def removeEventListener[T <: Event](`type`: String, listene HTMLDListElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLDListElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLDListElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLDListElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLDListElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLDListElement[JC] def requestPointerLock(): Unit HTMLDListElement[JC] def scrollHeight: Int @@ -4129,6 +4139,7 @@ HTMLDataListElement[JC] def removeEventListener[T <: Event](`type`: String, list HTMLDataListElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLDataListElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLDataListElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLDataListElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLDataListElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLDataListElement[JC] def requestPointerLock(): Unit HTMLDataListElement[JC] def scrollHeight: Int @@ -4330,6 +4341,7 @@ HTMLDialogElement[JC] def removeEventListener[T <: Event](`type`: String, listen HTMLDialogElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLDialogElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLDialogElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLDialogElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLDialogElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLDialogElement[JC] def requestPointerLock(): Unit HTMLDialogElement[JC] var returnValue: String @@ -4532,6 +4544,7 @@ HTMLDivElement[JC] def removeEventListener[T <: Event](`type`: String, listener: HTMLDivElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLDivElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLDivElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLDivElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLDivElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLDivElement[JC] def requestPointerLock(): Unit HTMLDivElement[JC] def scrollHeight: Int @@ -4931,6 +4944,7 @@ HTMLElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js HTMLElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLElement[JC] def requestPointerLock(): Unit HTMLElement[JC] def scrollHeight: Int @@ -5132,6 +5146,7 @@ HTMLEmbedElement[JC] def removeEventListener[T <: Event](`type`: String, listene HTMLEmbedElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLEmbedElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLEmbedElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLEmbedElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLEmbedElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLEmbedElement[JC] def requestPointerLock(): Unit HTMLEmbedElement[JC] def scrollHeight: Int @@ -5336,6 +5351,7 @@ HTMLFieldSetElement[JC] def removeEventListener[T <: Event](`type`: String, list HTMLFieldSetElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLFieldSetElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLFieldSetElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLFieldSetElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLFieldSetElement[JC] def reportValidity(): Boolean HTMLFieldSetElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLFieldSetElement[JC] def requestPointerLock(): Unit @@ -5558,6 +5574,7 @@ HTMLFormElement[JC] def removeEventListener[T <: Event](`type`: String, listener HTMLFormElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLFormElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLFormElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLFormElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLFormElement[JC] def reportValidity(): Boolean HTMLFormElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLFormElement[JC] def requestPointerLock(): Unit @@ -5762,6 +5779,7 @@ HTMLHRElement[JC] def removeEventListener[T <: Event](`type`: String, listener: HTMLHRElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLHRElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLHRElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLHRElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLHRElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLHRElement[JC] def requestPointerLock(): Unit HTMLHRElement[JC] def scrollHeight: Int @@ -5961,6 +5979,7 @@ HTMLHeadElement[JC] def removeEventListener[T <: Event](`type`: String, listener HTMLHeadElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLHeadElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLHeadElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLHeadElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLHeadElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLHeadElement[JC] def requestPointerLock(): Unit HTMLHeadElement[JC] def scrollHeight: Int @@ -6160,6 +6179,7 @@ HTMLHeadingElement[JC] def removeEventListener[T <: Event](`type`: String, liste HTMLHeadingElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLHeadingElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLHeadingElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLHeadingElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLHeadingElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLHeadingElement[JC] def requestPointerLock(): Unit HTMLHeadingElement[JC] def scrollHeight: Int @@ -6359,6 +6379,7 @@ HTMLHtmlElement[JC] def removeEventListener[T <: Event](`type`: String, listener HTMLHtmlElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLHtmlElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLHtmlElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLHtmlElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLHtmlElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLHtmlElement[JC] def requestPointerLock(): Unit HTMLHtmlElement[JC] def scrollHeight: Int @@ -6565,6 +6586,7 @@ HTMLIFrameElement[JC] def removeEventListener[T <: Event](`type`: String, listen HTMLIFrameElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLIFrameElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLIFrameElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLIFrameElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLIFrameElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLIFrameElement[JC] def requestPointerLock(): Unit HTMLIFrameElement[JC] var sandbox: DOMSettableTokenList @@ -6776,6 +6798,7 @@ HTMLImageElement[JC] def removeEventListener[T <: Event](`type`: String, listene HTMLImageElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLImageElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLImageElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLImageElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLImageElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLImageElement[JC] def requestPointerLock(): Unit HTMLImageElement[JC] def scrollHeight: Int @@ -7005,6 +7028,7 @@ HTMLInputElement[JC] def removeEventListener[T <: Event](`type`: String, listene HTMLInputElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLInputElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLInputElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLInputElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLInputElement[JC] def reportValidity(): Boolean HTMLInputElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLInputElement[JC] def requestPointerLock(): Unit @@ -7224,6 +7248,7 @@ HTMLLIElement[JC] def removeEventListener[T <: Event](`type`: String, listener: HTMLLIElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLLIElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLLIElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLLIElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLLIElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLLIElement[JC] def requestPointerLock(): Unit HTMLLIElement[JC] def scrollHeight: Int @@ -7426,6 +7451,7 @@ HTMLLabelElement[JC] def removeEventListener[T <: Event](`type`: String, listene HTMLLabelElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLLabelElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLLabelElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLLabelElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLLabelElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLLabelElement[JC] def requestPointerLock(): Unit HTMLLabelElement[JC] def scrollHeight: Int @@ -7627,6 +7653,7 @@ HTMLLegendElement[JC] def removeEventListener[T <: Event](`type`: String, listen HTMLLegendElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLLegendElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLLegendElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLLegendElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLLegendElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLLegendElement[JC] def requestPointerLock(): Unit HTMLLegendElement[JC] def scrollHeight: Int @@ -7830,6 +7857,7 @@ HTMLLinkElement[JC] def removeEventListener[T <: Event](`type`: String, listener HTMLLinkElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLLinkElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLLinkElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLLinkElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLLinkElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLLinkElement[JC] def requestPointerLock(): Unit HTMLLinkElement[JC] var rev: String @@ -8034,6 +8062,7 @@ HTMLMapElement[JC] def removeEventListener[T <: Event](`type`: String, listener: HTMLMapElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLMapElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLMapElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLMapElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLMapElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLMapElement[JC] def requestPointerLock(): Unit HTMLMapElement[JC] def scrollHeight: Int @@ -8255,6 +8284,7 @@ HTMLMediaElement[JC] def removeEventListener[T <: Event](`type`: String, listene HTMLMediaElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLMediaElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLMediaElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLMediaElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLMediaElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLMediaElement[JC] def requestPointerLock(): Unit HTMLMediaElement[JC] def scrollHeight: Int @@ -8469,6 +8499,7 @@ HTMLMenuElement[JC] def removeEventListener[T <: Event](`type`: String, listener HTMLMenuElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLMenuElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLMenuElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLMenuElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLMenuElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLMenuElement[JC] def requestPointerLock(): Unit HTMLMenuElement[JC] def scrollHeight: Int @@ -8673,6 +8704,7 @@ HTMLMetaElement[JC] def removeEventListener[T <: Event](`type`: String, listener HTMLMetaElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLMetaElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLMetaElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLMetaElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLMetaElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLMetaElement[JC] def requestPointerLock(): Unit HTMLMetaElement[JC] def scrollHeight: Int @@ -8875,6 +8907,7 @@ HTMLModElement[JC] def removeEventListener[T <: Event](`type`: String, listener: HTMLModElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLModElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLModElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLModElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLModElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLModElement[JC] def requestPointerLock(): Unit HTMLModElement[JC] def scrollHeight: Int @@ -9074,6 +9107,7 @@ HTMLOListElement[JC] def removeEventListener[T <: Event](`type`: String, listene HTMLOListElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLOListElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLOListElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLOListElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLOListElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLOListElement[JC] def requestPointerLock(): Unit HTMLOListElement[JC] def scrollHeight: Int @@ -9286,6 +9320,7 @@ HTMLObjectElement[JC] def removeEventListener[T <: Event](`type`: String, listen HTMLObjectElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLObjectElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLObjectElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLObjectElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLObjectElement[JC] def reportValidity(): Boolean HTMLObjectElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLObjectElement[JC] def requestPointerLock(): Unit @@ -9495,6 +9530,7 @@ HTMLOptGroupElement[JC] def removeEventListener[T <: Event](`type`: String, list HTMLOptGroupElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLOptGroupElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLOptGroupElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLOptGroupElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLOptGroupElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLOptGroupElement[JC] def requestPointerLock(): Unit HTMLOptGroupElement[JC] def scrollHeight: Int @@ -9700,6 +9736,7 @@ HTMLOptionElement[JC] def removeEventListener[T <: Event](`type`: String, listen HTMLOptionElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLOptionElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLOptionElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLOptionElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLOptionElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLOptionElement[JC] def requestPointerLock(): Unit HTMLOptionElement[JC] def scrollHeight: Int @@ -9906,6 +9943,7 @@ HTMLParagraphElement[JC] def removeEventListener[T <: Event](`type`: String, lis HTMLParagraphElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLParagraphElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLParagraphElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLParagraphElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLParagraphElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLParagraphElement[JC] def requestPointerLock(): Unit HTMLParagraphElement[JC] def scrollHeight: Int @@ -10106,6 +10144,7 @@ HTMLParamElement[JC] def removeEventListener[T <: Event](`type`: String, listene HTMLParamElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLParamElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLParamElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLParamElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLParamElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLParamElement[JC] def requestPointerLock(): Unit HTMLParamElement[JC] def scrollHeight: Int @@ -10306,6 +10345,7 @@ HTMLPreElement[JC] def removeEventListener[T <: Event](`type`: String, listener: HTMLPreElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLPreElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLPreElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLPreElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLPreElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLPreElement[JC] def requestPointerLock(): Unit HTMLPreElement[JC] def scrollHeight: Int @@ -10508,6 +10548,7 @@ HTMLProgressElement[JC] def removeEventListener[T <: Event](`type`: String, list HTMLProgressElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLProgressElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLProgressElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLProgressElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLProgressElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLProgressElement[JC] def requestPointerLock(): Unit HTMLProgressElement[JC] def scrollHeight: Int @@ -10710,6 +10751,7 @@ HTMLQuoteElement[JC] def removeEventListener[T <: Event](`type`: String, listene HTMLQuoteElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLQuoteElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLQuoteElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLQuoteElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLQuoteElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLQuoteElement[JC] def requestPointerLock(): Unit HTMLQuoteElement[JC] def scrollHeight: Int @@ -10914,6 +10956,7 @@ HTMLScriptElement[JC] def removeEventListener[T <: Event](`type`: String, listen HTMLScriptElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLScriptElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLScriptElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLScriptElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLScriptElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLScriptElement[JC] def requestPointerLock(): Unit HTMLScriptElement[JC] def scrollHeight: Int @@ -11129,6 +11172,7 @@ HTMLSelectElement[JC] def removeEventListener[T <: Event](`type`: String, listen HTMLSelectElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLSelectElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLSelectElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLSelectElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLSelectElement[JC] def reportValidity(): Boolean HTMLSelectElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLSelectElement[JC] def requestPointerLock(): Unit @@ -11340,6 +11384,7 @@ HTMLSourceElement[JC] def removeEventListener[T <: Event](`type`: String, listen HTMLSourceElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLSourceElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLSourceElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLSourceElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLSourceElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLSourceElement[JC] def requestPointerLock(): Unit HTMLSourceElement[JC] def scrollHeight: Int @@ -11541,6 +11586,7 @@ HTMLSpanElement[JC] def removeEventListener[T <: Event](`type`: String, listener HTMLSpanElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLSpanElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLSpanElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLSpanElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLSpanElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLSpanElement[JC] def requestPointerLock(): Unit HTMLSpanElement[JC] def scrollHeight: Int @@ -11741,6 +11787,7 @@ HTMLStyleElement[JC] def removeEventListener[T <: Event](`type`: String, listene HTMLStyleElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLStyleElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLStyleElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLStyleElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLStyleElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLStyleElement[JC] def requestPointerLock(): Unit HTMLStyleElement[JC] def scrollHeight: Int @@ -11943,6 +11990,7 @@ HTMLTableCaptionElement[JC] def removeEventListener[T <: Event](`type`: String, HTMLTableCaptionElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLTableCaptionElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLTableCaptionElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLTableCaptionElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLTableCaptionElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLTableCaptionElement[JC] def requestPointerLock(): Unit HTMLTableCaptionElement[JC] def scrollHeight: Int @@ -12145,6 +12193,7 @@ HTMLTableCellElement[JC] def removeEventListener[T <: Event](`type`: String, lis HTMLTableCellElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLTableCellElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLTableCellElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLTableCellElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLTableCellElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLTableCellElement[JC] def requestPointerLock(): Unit HTMLTableCellElement[JC] var rowSpan: Int @@ -12345,6 +12394,7 @@ HTMLTableColElement[JC] def removeEventListener[T <: Event](`type`: String, list HTMLTableColElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLTableColElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLTableColElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLTableColElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLTableColElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLTableColElement[JC] def requestPointerLock(): Unit HTMLTableColElement[JC] def scrollHeight: Int @@ -12556,6 +12606,7 @@ HTMLTableElement[JC] def removeEventListener[T <: Event](`type`: String, listene HTMLTableElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLTableElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLTableElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLTableElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLTableElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLTableElement[JC] def requestPointerLock(): Unit HTMLTableElement[JC] def rows: HTMLCollection[Element] @@ -12766,6 +12817,7 @@ HTMLTableRowElement[JC] def removeEventListener[T <: Event](`type`: String, list HTMLTableRowElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLTableRowElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLTableRowElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLTableRowElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLTableRowElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLTableRowElement[JC] def requestPointerLock(): Unit HTMLTableRowElement[JC] def rowIndex: Int @@ -12970,6 +13022,7 @@ HTMLTableSectionElement[JC] def removeEventListener[T <: Event](`type`: String, HTMLTableSectionElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLTableSectionElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLTableSectionElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLTableSectionElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLTableSectionElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLTableSectionElement[JC] def requestPointerLock(): Unit HTMLTableSectionElement[JC] def rows: HTMLCollection[Element] @@ -13171,6 +13224,7 @@ HTMLTemplateElement[JC] def removeEventListener[T <: Event](`type`: String, list HTMLTemplateElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLTemplateElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLTemplateElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLTemplateElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLTemplateElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLTemplateElement[JC] def requestPointerLock(): Unit HTMLTemplateElement[JC] def scrollHeight: Int @@ -13380,6 +13434,7 @@ HTMLTextAreaElement[JC] def removeEventListener[T <: Event](`type`: String, list HTMLTextAreaElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLTextAreaElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLTextAreaElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLTextAreaElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLTextAreaElement[JC] def reportValidity(): Boolean HTMLTextAreaElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLTextAreaElement[JC] def requestPointerLock(): Unit @@ -13594,6 +13649,7 @@ HTMLTitleElement[JC] def removeEventListener[T <: Event](`type`: String, listene HTMLTitleElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLTitleElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLTitleElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLTitleElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLTitleElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLTitleElement[JC] def requestPointerLock(): Unit HTMLTitleElement[JC] def scrollHeight: Int @@ -13796,6 +13852,7 @@ HTMLTrackElement[JC] def removeEventListener[T <: Event](`type`: String, listene HTMLTrackElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLTrackElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLTrackElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLTrackElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLTrackElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLTrackElement[JC] def requestPointerLock(): Unit HTMLTrackElement[JC] def scrollHeight: Int @@ -13998,6 +14055,7 @@ HTMLUListElement[JC] def removeEventListener[T <: Event](`type`: String, listene HTMLUListElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLUListElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLUListElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLUListElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLUListElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLUListElement[JC] def requestPointerLock(): Unit HTMLUListElement[JC] def scrollHeight: Int @@ -14197,6 +14255,7 @@ HTMLUnknownElement[JC] def removeEventListener[T <: Event](`type`: String, liste HTMLUnknownElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLUnknownElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLUnknownElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLUnknownElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLUnknownElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLUnknownElement[JC] def requestPointerLock(): Unit HTMLUnknownElement[JC] def scrollHeight: Int @@ -14420,6 +14479,7 @@ HTMLVideoElement[JC] def removeEventListener[T <: Event](`type`: String, listene HTMLVideoElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLVideoElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLVideoElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLVideoElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLVideoElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLVideoElement[JC] def requestPointerLock(): Unit HTMLVideoElement[JC] def scrollHeight: Int @@ -16772,6 +16832,7 @@ SVGAElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js SVGAElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGAElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGAElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGAElement[JC] def replaceWith(nodes: Node | String*): Unit SVGAElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGAElement[JC] def requestPointerLock(): Unit SVGAElement[JC] var requiredExtensions: SVGStringList @@ -16941,6 +17002,7 @@ SVGCircleElement[JC] def removeEventListener[T <: Event](`type`: String, listene SVGCircleElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGCircleElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGCircleElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGCircleElement[JC] def replaceWith(nodes: Node | String*): Unit SVGCircleElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGCircleElement[JC] def requestPointerLock(): Unit SVGCircleElement[JC] var requiredExtensions: SVGStringList @@ -17072,6 +17134,7 @@ SVGClipPathElement[JC] def removeEventListener[T <: Event](`type`: String, liste SVGClipPathElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGClipPathElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGClipPathElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGClipPathElement[JC] def replaceWith(nodes: Node | String*): Unit SVGClipPathElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGClipPathElement[JC] def requestPointerLock(): Unit SVGClipPathElement[JC] var requiredExtensions: SVGStringList @@ -17194,6 +17257,7 @@ SVGComponentTransferFunctionElement[JC] def removeEventListener[T <: Event](`typ SVGComponentTransferFunctionElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGComponentTransferFunctionElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGComponentTransferFunctionElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGComponentTransferFunctionElement[JC] def replaceWith(nodes: Node | String*): Unit SVGComponentTransferFunctionElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGComponentTransferFunctionElement[JC] def requestPointerLock(): Unit SVGComponentTransferFunctionElement[JC] def scrollHeight: Int @@ -17323,6 +17387,7 @@ SVGDefsElement[JC] def removeEventListener[T <: Event](`type`: String, listener: SVGDefsElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGDefsElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGDefsElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGDefsElement[JC] def replaceWith(nodes: Node | String*): Unit SVGDefsElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGDefsElement[JC] def requestPointerLock(): Unit SVGDefsElement[JC] var requiredExtensions: SVGStringList @@ -17442,6 +17507,7 @@ SVGDescElement[JC] def removeEventListener[T <: Event](`type`: String, listener: SVGDescElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGDescElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGDescElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGDescElement[JC] def replaceWith(nodes: Node | String*): Unit SVGDescElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGDescElement[JC] def requestPointerLock(): Unit SVGDescElement[JC] def scrollHeight: Int @@ -17556,6 +17622,7 @@ SVGElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js. SVGElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGElement[JC] def replaceWith(nodes: Node | String*): Unit SVGElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGElement[JC] def requestPointerLock(): Unit SVGElement[JC] def scrollHeight: Int @@ -17693,6 +17760,7 @@ SVGEllipseElement[JC] def removeEventListener[T <: Event](`type`: String, listen SVGEllipseElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGEllipseElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGEllipseElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGEllipseElement[JC] def replaceWith(nodes: Node | String*): Unit SVGEllipseElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGEllipseElement[JC] def requestPointerLock(): Unit SVGEllipseElement[JC] var requiredExtensions: SVGStringList @@ -17825,6 +17893,7 @@ SVGFEBlendElement[JC] def removeEventListener[T <: Event](`type`: String, listen SVGFEBlendElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGFEBlendElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGFEBlendElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGFEBlendElement[JC] def replaceWith(nodes: Node | String*): Unit SVGFEBlendElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGFEBlendElement[JC] def requestPointerLock(): Unit SVGFEBlendElement[JC] def result: SVGAnimatedString @@ -17950,6 +18019,7 @@ SVGFEColorMatrixElement[JC] def removeEventListener[T <: Event](`type`: String, SVGFEColorMatrixElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGFEColorMatrixElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGFEColorMatrixElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGFEColorMatrixElement[JC] def replaceWith(nodes: Node | String*): Unit SVGFEColorMatrixElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGFEColorMatrixElement[JC] def requestPointerLock(): Unit SVGFEColorMatrixElement[JC] def result: SVGAnimatedString @@ -18076,6 +18146,7 @@ SVGFEComponentTransferElement[JC] def removeEventListener[T <: Event](`type`: St SVGFEComponentTransferElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGFEComponentTransferElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGFEComponentTransferElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGFEComponentTransferElement[JC] def replaceWith(nodes: Node | String*): Unit SVGFEComponentTransferElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGFEComponentTransferElement[JC] def requestPointerLock(): Unit SVGFEComponentTransferElement[JC] def result: SVGAnimatedString @@ -18201,6 +18272,7 @@ SVGFECompositeElement[JC] def removeEventListener[T <: Event](`type`: String, li SVGFECompositeElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGFECompositeElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGFECompositeElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGFECompositeElement[JC] def replaceWith(nodes: Node | String*): Unit SVGFECompositeElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGFECompositeElement[JC] def requestPointerLock(): Unit SVGFECompositeElement[JC] def result: SVGAnimatedString @@ -18336,6 +18408,7 @@ SVGFEConvolveMatrixElement[JC] def removeEventListener[T <: Event](`type`: Strin SVGFEConvolveMatrixElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGFEConvolveMatrixElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGFEConvolveMatrixElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGFEConvolveMatrixElement[JC] def replaceWith(nodes: Node | String*): Unit SVGFEConvolveMatrixElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGFEConvolveMatrixElement[JC] def requestPointerLock(): Unit SVGFEConvolveMatrixElement[JC] def result: SVGAnimatedString @@ -18464,6 +18537,7 @@ SVGFEDiffuseLightingElement[JC] def removeEventListener[T <: Event](`type`: Stri SVGFEDiffuseLightingElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGFEDiffuseLightingElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGFEDiffuseLightingElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGFEDiffuseLightingElement[JC] def replaceWith(nodes: Node | String*): Unit SVGFEDiffuseLightingElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGFEDiffuseLightingElement[JC] def requestPointerLock(): Unit SVGFEDiffuseLightingElement[JC] def result: SVGAnimatedString @@ -18585,6 +18659,7 @@ SVGFEDisplacementMapElement[JC] def removeEventListener[T <: Event](`type`: Stri SVGFEDisplacementMapElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGFEDisplacementMapElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGFEDisplacementMapElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGFEDisplacementMapElement[JC] def replaceWith(nodes: Node | String*): Unit SVGFEDisplacementMapElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGFEDisplacementMapElement[JC] def requestPointerLock(): Unit SVGFEDisplacementMapElement[JC] def result: SVGAnimatedString @@ -18711,6 +18786,7 @@ SVGFEDistantLightElement[JC] def removeEventListener[T <: Event](`type`: String, SVGFEDistantLightElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGFEDistantLightElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGFEDistantLightElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGFEDistantLightElement[JC] def replaceWith(nodes: Node | String*): Unit SVGFEDistantLightElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGFEDistantLightElement[JC] def requestPointerLock(): Unit SVGFEDistantLightElement[JC] def scrollHeight: Int @@ -18824,6 +18900,7 @@ SVGFEFloodElement[JC] def removeEventListener[T <: Event](`type`: String, listen SVGFEFloodElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGFEFloodElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGFEFloodElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGFEFloodElement[JC] def replaceWith(nodes: Node | String*): Unit SVGFEFloodElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGFEFloodElement[JC] def requestPointerLock(): Unit SVGFEFloodElement[JC] def result: SVGAnimatedString @@ -18944,6 +19021,7 @@ SVGFEFuncAElement[JC] def removeEventListener[T <: Event](`type`: String, listen SVGFEFuncAElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGFEFuncAElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGFEFuncAElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGFEFuncAElement[JC] def replaceWith(nodes: Node | String*): Unit SVGFEFuncAElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGFEFuncAElement[JC] def requestPointerLock(): Unit SVGFEFuncAElement[JC] def scrollHeight: Int @@ -19062,6 +19140,7 @@ SVGFEFuncBElement[JC] def removeEventListener[T <: Event](`type`: String, listen SVGFEFuncBElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGFEFuncBElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGFEFuncBElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGFEFuncBElement[JC] def replaceWith(nodes: Node | String*): Unit SVGFEFuncBElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGFEFuncBElement[JC] def requestPointerLock(): Unit SVGFEFuncBElement[JC] def scrollHeight: Int @@ -19180,6 +19259,7 @@ SVGFEFuncGElement[JC] def removeEventListener[T <: Event](`type`: String, listen SVGFEFuncGElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGFEFuncGElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGFEFuncGElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGFEFuncGElement[JC] def replaceWith(nodes: Node | String*): Unit SVGFEFuncGElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGFEFuncGElement[JC] def requestPointerLock(): Unit SVGFEFuncGElement[JC] def scrollHeight: Int @@ -19298,6 +19378,7 @@ SVGFEFuncRElement[JC] def removeEventListener[T <: Event](`type`: String, listen SVGFEFuncRElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGFEFuncRElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGFEFuncRElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGFEFuncRElement[JC] def replaceWith(nodes: Node | String*): Unit SVGFEFuncRElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGFEFuncRElement[JC] def requestPointerLock(): Unit SVGFEFuncRElement[JC] def scrollHeight: Int @@ -19415,6 +19496,7 @@ SVGFEGaussianBlurElement[JC] def removeEventListener[T <: Event](`type`: String, SVGFEGaussianBlurElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGFEGaussianBlurElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGFEGaussianBlurElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGFEGaussianBlurElement[JC] def replaceWith(nodes: Node | String*): Unit SVGFEGaussianBlurElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGFEGaussianBlurElement[JC] def requestPointerLock(): Unit SVGFEGaussianBlurElement[JC] def result: SVGAnimatedString @@ -19539,6 +19621,7 @@ SVGFEImageElement[JC] def removeEventListener[T <: Event](`type`: String, listen SVGFEImageElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGFEImageElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGFEImageElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGFEImageElement[JC] def replaceWith(nodes: Node | String*): Unit SVGFEImageElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGFEImageElement[JC] def requestPointerLock(): Unit SVGFEImageElement[JC] def result: SVGAnimatedString @@ -19659,6 +19742,7 @@ SVGFEMergeElement[JC] def removeEventListener[T <: Event](`type`: String, listen SVGFEMergeElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGFEMergeElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGFEMergeElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGFEMergeElement[JC] def replaceWith(nodes: Node | String*): Unit SVGFEMergeElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGFEMergeElement[JC] def requestPointerLock(): Unit SVGFEMergeElement[JC] def result: SVGAnimatedString @@ -19776,6 +19860,7 @@ SVGFEMergeNodeElement[JC] def removeEventListener[T <: Event](`type`: String, li SVGFEMergeNodeElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGFEMergeNodeElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGFEMergeNodeElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGFEMergeNodeElement[JC] def replaceWith(nodes: Node | String*): Unit SVGFEMergeNodeElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGFEMergeNodeElement[JC] def requestPointerLock(): Unit SVGFEMergeNodeElement[JC] def scrollHeight: Int @@ -19893,6 +19978,7 @@ SVGFEMorphologyElement[JC] def removeEventListener[T <: Event](`type`: String, l SVGFEMorphologyElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGFEMorphologyElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGFEMorphologyElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGFEMorphologyElement[JC] def replaceWith(nodes: Node | String*): Unit SVGFEMorphologyElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGFEMorphologyElement[JC] def requestPointerLock(): Unit SVGFEMorphologyElement[JC] def result: SVGAnimatedString @@ -20017,6 +20103,7 @@ SVGFEOffsetElement[JC] def removeEventListener[T <: Event](`type`: String, liste SVGFEOffsetElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGFEOffsetElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGFEOffsetElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGFEOffsetElement[JC] def replaceWith(nodes: Node | String*): Unit SVGFEOffsetElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGFEOffsetElement[JC] def requestPointerLock(): Unit SVGFEOffsetElement[JC] def result: SVGAnimatedString @@ -20133,6 +20220,7 @@ SVGFEPointLightElement[JC] def removeEventListener[T <: Event](`type`: String, l SVGFEPointLightElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGFEPointLightElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGFEPointLightElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGFEPointLightElement[JC] def replaceWith(nodes: Node | String*): Unit SVGFEPointLightElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGFEPointLightElement[JC] def requestPointerLock(): Unit SVGFEPointLightElement[JC] def scrollHeight: Int @@ -20252,6 +20340,7 @@ SVGFESpecularLightingElement[JC] def removeEventListener[T <: Event](`type`: Str SVGFESpecularLightingElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGFESpecularLightingElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGFESpecularLightingElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGFESpecularLightingElement[JC] def replaceWith(nodes: Node | String*): Unit SVGFESpecularLightingElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGFESpecularLightingElement[JC] def requestPointerLock(): Unit SVGFESpecularLightingElement[JC] def result: SVGAnimatedString @@ -20375,6 +20464,7 @@ SVGFESpotLightElement[JC] def removeEventListener[T <: Event](`type`: String, li SVGFESpotLightElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGFESpotLightElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGFESpotLightElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGFESpotLightElement[JC] def replaceWith(nodes: Node | String*): Unit SVGFESpotLightElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGFESpotLightElement[JC] def requestPointerLock(): Unit SVGFESpotLightElement[JC] def scrollHeight: Int @@ -20493,6 +20583,7 @@ SVGFETileElement[JC] def removeEventListener[T <: Event](`type`: String, listene SVGFETileElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGFETileElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGFETileElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGFETileElement[JC] def replaceWith(nodes: Node | String*): Unit SVGFETileElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGFETileElement[JC] def requestPointerLock(): Unit SVGFETileElement[JC] def result: SVGAnimatedString @@ -20614,6 +20705,7 @@ SVGFETurbulenceElement[JC] def removeEventListener[T <: Event](`type`: String, l SVGFETurbulenceElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGFETurbulenceElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGFETurbulenceElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGFETurbulenceElement[JC] def replaceWith(nodes: Node | String*): Unit SVGFETurbulenceElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGFETurbulenceElement[JC] def requestPointerLock(): Unit SVGFETurbulenceElement[JC] def result: SVGAnimatedString @@ -20750,6 +20842,7 @@ SVGFilterElement[JC] def removeEventListener[T <: Event](`type`: String, listene SVGFilterElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGFilterElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGFilterElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGFilterElement[JC] def replaceWith(nodes: Node | String*): Unit SVGFilterElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGFilterElement[JC] def requestPointerLock(): Unit SVGFilterElement[JC] def scrollHeight: Int @@ -20886,6 +20979,7 @@ SVGGElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js SVGGElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGGElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGGElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGGElement[JC] def replaceWith(nodes: Node | String*): Unit SVGGElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGGElement[JC] def requestPointerLock(): Unit SVGGElement[JC] var requiredExtensions: SVGStringList @@ -21012,6 +21106,7 @@ SVGGradientElement[JC] def removeEventListener[T <: Event](`type`: String, liste SVGGradientElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGGradientElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGGradientElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGGradientElement[JC] def replaceWith(nodes: Node | String*): Unit SVGGradientElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGGradientElement[JC] def requestPointerLock(): Unit SVGGradientElement[JC] def scrollHeight: Int @@ -21141,6 +21236,7 @@ SVGImageElement[JC] def removeEventListener[T <: Event](`type`: String, listener SVGImageElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGImageElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGImageElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGImageElement[JC] def replaceWith(nodes: Node | String*): Unit SVGImageElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGImageElement[JC] def requestPointerLock(): Unit SVGImageElement[JC] var requiredExtensions: SVGStringList @@ -21298,6 +21394,7 @@ SVGLineElement[JC] def removeEventListener[T <: Event](`type`: String, listener: SVGLineElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGLineElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGLineElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGLineElement[JC] def replaceWith(nodes: Node | String*): Unit SVGLineElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGLineElement[JC] def requestPointerLock(): Unit SVGLineElement[JC] var requiredExtensions: SVGStringList @@ -21428,6 +21525,7 @@ SVGLinearGradientElement[JC] def removeEventListener[T <: Event](`type`: String, SVGLinearGradientElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGLinearGradientElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGLinearGradientElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGLinearGradientElement[JC] def replaceWith(nodes: Node | String*): Unit SVGLinearGradientElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGLinearGradientElement[JC] def requestPointerLock(): Unit SVGLinearGradientElement[JC] def scrollHeight: Int @@ -21561,6 +21659,7 @@ SVGMarkerElement[JC] def removeEventListener[T <: Event](`type`: String, listene SVGMarkerElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGMarkerElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGMarkerElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGMarkerElement[JC] def replaceWith(nodes: Node | String*): Unit SVGMarkerElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGMarkerElement[JC] def requestPointerLock(): Unit SVGMarkerElement[JC] def scrollHeight: Int @@ -21693,6 +21792,7 @@ SVGMaskElement[JC] def removeEventListener[T <: Event](`type`: String, listener: SVGMaskElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGMaskElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGMaskElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGMaskElement[JC] def replaceWith(nodes: Node | String*): Unit SVGMaskElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGMaskElement[JC] def requestPointerLock(): Unit SVGMaskElement[JC] var requiredExtensions: SVGStringList @@ -21830,6 +21930,7 @@ SVGMetadataElement[JC] def removeEventListener[T <: Event](`type`: String, liste SVGMetadataElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGMetadataElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGMetadataElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGMetadataElement[JC] def replaceWith(nodes: Node | String*): Unit SVGMetadataElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGMetadataElement[JC] def requestPointerLock(): Unit SVGMetadataElement[JC] def scrollHeight: Int @@ -21982,6 +22083,7 @@ SVGPathElement[JC] def removeEventListener[T <: Event](`type`: String, listener: SVGPathElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGPathElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGPathElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGPathElement[JC] def replaceWith(nodes: Node | String*): Unit SVGPathElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGPathElement[JC] def requestPointerLock(): Unit SVGPathElement[JC] var requiredExtensions: SVGStringList @@ -22238,6 +22340,7 @@ SVGPatternElement[JC] def removeEventListener[T <: Event](`type`: String, listen SVGPatternElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGPatternElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGPatternElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGPatternElement[JC] def replaceWith(nodes: Node | String*): Unit SVGPatternElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGPatternElement[JC] def requestPointerLock(): Unit SVGPatternElement[JC] var requiredExtensions: SVGStringList @@ -22381,6 +22484,7 @@ SVGPolygonElement[JC] def removeEventListener[T <: Event](`type`: String, listen SVGPolygonElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGPolygonElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGPolygonElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGPolygonElement[JC] def replaceWith(nodes: Node | String*): Unit SVGPolygonElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGPolygonElement[JC] def requestPointerLock(): Unit SVGPolygonElement[JC] var requiredExtensions: SVGStringList @@ -22510,6 +22614,7 @@ SVGPolylineElement[JC] def removeEventListener[T <: Event](`type`: String, liste SVGPolylineElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGPolylineElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGPolylineElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGPolylineElement[JC] def replaceWith(nodes: Node | String*): Unit SVGPolylineElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGPolylineElement[JC] def requestPointerLock(): Unit SVGPolylineElement[JC] var requiredExtensions: SVGStringList @@ -22657,6 +22762,7 @@ SVGRadialGradientElement[JC] def removeEventListener[T <: Event](`type`: String, SVGRadialGradientElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGRadialGradientElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGRadialGradientElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGRadialGradientElement[JC] def replaceWith(nodes: Node | String*): Unit SVGRadialGradientElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGRadialGradientElement[JC] def requestPointerLock(): Unit SVGRadialGradientElement[JC] def scrollHeight: Int @@ -22784,6 +22890,7 @@ SVGRectElement[JC] def removeEventListener[T <: Event](`type`: String, listener: SVGRectElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGRectElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGRectElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGRectElement[JC] def replaceWith(nodes: Node | String*): Unit SVGRectElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGRectElement[JC] def requestPointerLock(): Unit SVGRectElement[JC] var requiredExtensions: SVGStringList @@ -22949,6 +23056,7 @@ SVGSVGElement[JC] def removeEventListener[T <: Event](`type`: String, listener: SVGSVGElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGSVGElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGSVGElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGSVGElement[JC] def replaceWith(nodes: Node | String*): Unit SVGSVGElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGSVGElement[JC] def requestPointerLock(): Unit SVGSVGElement[JC] var requiredExtensions: SVGStringList @@ -23081,6 +23189,7 @@ SVGScriptElement[JC] def removeEventListener[T <: Event](`type`: String, listene SVGScriptElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGScriptElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGScriptElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGScriptElement[JC] def replaceWith(nodes: Node | String*): Unit SVGScriptElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGScriptElement[JC] def requestPointerLock(): Unit SVGScriptElement[JC] def scrollHeight: Int @@ -23195,6 +23304,7 @@ SVGStopElement[JC] def removeEventListener[T <: Event](`type`: String, listener: SVGStopElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGStopElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGStopElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGStopElement[JC] def replaceWith(nodes: Node | String*): Unit SVGStopElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGStopElement[JC] def requestPointerLock(): Unit SVGStopElement[JC] def scrollHeight: Int @@ -23318,6 +23428,7 @@ SVGStyleElement[JC] def removeEventListener[T <: Event](`type`: String, listener SVGStyleElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGStyleElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGStyleElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGStyleElement[JC] def replaceWith(nodes: Node | String*): Unit SVGStyleElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGStyleElement[JC] def requestPointerLock(): Unit SVGStyleElement[JC] def scrollHeight: Int @@ -23442,6 +23553,7 @@ SVGSwitchElement[JC] def removeEventListener[T <: Event](`type`: String, listene SVGSwitchElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGSwitchElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGSwitchElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGSwitchElement[JC] def replaceWith(nodes: Node | String*): Unit SVGSwitchElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGSwitchElement[JC] def requestPointerLock(): Unit SVGSwitchElement[JC] var requiredExtensions: SVGStringList @@ -23563,6 +23675,7 @@ SVGSymbolElement[JC] def removeEventListener[T <: Event](`type`: String, listene SVGSymbolElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGSymbolElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGSymbolElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGSymbolElement[JC] def replaceWith(nodes: Node | String*): Unit SVGSymbolElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGSymbolElement[JC] def requestPointerLock(): Unit SVGSymbolElement[JC] def scrollHeight: Int @@ -23692,6 +23805,7 @@ SVGTSpanElement[JC] def removeEventListener[T <: Event](`type`: String, listener SVGTSpanElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGTSpanElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGTSpanElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGTSpanElement[JC] def replaceWith(nodes: Node | String*): Unit SVGTSpanElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGTSpanElement[JC] def requestPointerLock(): Unit SVGTSpanElement[JC] var requiredExtensions: SVGStringList @@ -23830,6 +23944,7 @@ SVGTextContentElement[JC] def removeEventListener[T <: Event](`type`: String, li SVGTextContentElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGTextContentElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGTextContentElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGTextContentElement[JC] def replaceWith(nodes: Node | String*): Unit SVGTextContentElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGTextContentElement[JC] def requestPointerLock(): Unit SVGTextContentElement[JC] var requiredExtensions: SVGStringList @@ -23972,6 +24087,7 @@ SVGTextElement[JC] def removeEventListener[T <: Event](`type`: String, listener: SVGTextElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGTextElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGTextElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGTextElement[JC] def replaceWith(nodes: Node | String*): Unit SVGTextElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGTextElement[JC] def requestPointerLock(): Unit SVGTextElement[JC] var requiredExtensions: SVGStringList @@ -24109,6 +24225,7 @@ SVGTextPathElement[JC] def removeEventListener[T <: Event](`type`: String, liste SVGTextPathElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGTextPathElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGTextPathElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGTextPathElement[JC] def replaceWith(nodes: Node | String*): Unit SVGTextPathElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGTextPathElement[JC] def requestPointerLock(): Unit SVGTextPathElement[JC] var requiredExtensions: SVGStringList @@ -24250,6 +24367,7 @@ SVGTextPositioningElement[JC] def removeEventListener[T <: Event](`type`: String SVGTextPositioningElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGTextPositioningElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGTextPositioningElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGTextPositioningElement[JC] def replaceWith(nodes: Node | String*): Unit SVGTextPositioningElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGTextPositioningElement[JC] def requestPointerLock(): Unit SVGTextPositioningElement[JC] var requiredExtensions: SVGStringList @@ -24373,6 +24491,7 @@ SVGTitleElement[JC] def removeEventListener[T <: Event](`type`: String, listener SVGTitleElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGTitleElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGTitleElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGTitleElement[JC] def replaceWith(nodes: Node | String*): Unit SVGTitleElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGTitleElement[JC] def requestPointerLock(): Unit SVGTitleElement[JC] def scrollHeight: Int @@ -24540,6 +24659,7 @@ SVGUseElement[JC] def removeEventListener[T <: Event](`type`: String, listener: SVGUseElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGUseElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGUseElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGUseElement[JC] def replaceWith(nodes: Node | String*): Unit SVGUseElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGUseElement[JC] def requestPointerLock(): Unit SVGUseElement[JC] var requiredExtensions: SVGStringList @@ -24663,6 +24783,7 @@ SVGViewElement[JC] def removeEventListener[T <: Event](`type`: String, listener: SVGViewElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGViewElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGViewElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGViewElement[JC] def replaceWith(nodes: Node | String*): Unit SVGViewElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGViewElement[JC] def requestPointerLock(): Unit SVGViewElement[JC] def scrollHeight: Int diff --git a/api-reports/2_13.txt b/api-reports/2_13.txt index 0c7e86bb3..262c1fb3e 100644 --- a/api-reports/2_13.txt +++ b/api-reports/2_13.txt @@ -1782,6 +1782,7 @@ Element[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Fun Element[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit Element[JC] def replaceChild(newChild: Node, oldChild: Node): Node Element[JC] def replaceChildren(nodes: Node | String*): Unit +Element[JC] def replaceWith(nodes: Node | String*): Unit Element[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] Element[JC] def requestPointerLock(): Unit Element[JC] def scrollHeight: Int @@ -2251,6 +2252,7 @@ HTMLAnchorElement[JC] def removeEventListener[T <: Event](`type`: String, listen HTMLAnchorElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLAnchorElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLAnchorElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLAnchorElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLAnchorElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLAnchorElement[JC] def requestPointerLock(): Unit HTMLAnchorElement[JC] def scrollHeight: Int @@ -2463,6 +2465,7 @@ HTMLAreaElement[JC] def removeEventListener[T <: Event](`type`: String, listener HTMLAreaElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLAreaElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLAreaElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLAreaElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLAreaElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLAreaElement[JC] def requestPointerLock(): Unit HTMLAreaElement[JC] def scrollHeight: Int @@ -2687,6 +2690,7 @@ HTMLAudioElement[JC] def removeEventListener[T <: Event](`type`: String, listene HTMLAudioElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLAudioElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLAudioElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLAudioElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLAudioElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLAudioElement[JC] def requestPointerLock(): Unit HTMLAudioElement[JC] def scrollHeight: Int @@ -2892,6 +2896,7 @@ HTMLBRElement[JC] def removeEventListener[T <: Event](`type`: String, listener: HTMLBRElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLBRElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLBRElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLBRElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLBRElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLBRElement[JC] def requestPointerLock(): Unit HTMLBRElement[JC] def scrollHeight: Int @@ -3092,6 +3097,7 @@ HTMLBaseElement[JC] def removeEventListener[T <: Event](`type`: String, listener HTMLBaseElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLBaseElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLBaseElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLBaseElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLBaseElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLBaseElement[JC] def requestPointerLock(): Unit HTMLBaseElement[JC] def scrollHeight: Int @@ -3305,6 +3311,7 @@ HTMLBodyElement[JC] def removeEventListener[T <: Event](`type`: String, listener HTMLBodyElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLBodyElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLBodyElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLBodyElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLBodyElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLBodyElement[JC] def requestPointerLock(): Unit HTMLBodyElement[JC] var scroll: String @@ -3515,6 +3522,7 @@ HTMLButtonElement[JC] def removeEventListener[T <: Event](`type`: String, listen HTMLButtonElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLButtonElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLButtonElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLButtonElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLButtonElement[JC] def reportValidity(): Boolean HTMLButtonElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLButtonElement[JC] def requestPointerLock(): Unit @@ -3724,6 +3732,7 @@ HTMLCanvasElement[JC] def removeEventListener[T <: Event](`type`: String, listen HTMLCanvasElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLCanvasElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLCanvasElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLCanvasElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLCanvasElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLCanvasElement[JC] def requestPointerLock(): Unit HTMLCanvasElement[JC] def scrollHeight: Int @@ -3929,6 +3938,7 @@ HTMLDListElement[JC] def removeEventListener[T <: Event](`type`: String, listene HTMLDListElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLDListElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLDListElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLDListElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLDListElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLDListElement[JC] def requestPointerLock(): Unit HTMLDListElement[JC] def scrollHeight: Int @@ -4129,6 +4139,7 @@ HTMLDataListElement[JC] def removeEventListener[T <: Event](`type`: String, list HTMLDataListElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLDataListElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLDataListElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLDataListElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLDataListElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLDataListElement[JC] def requestPointerLock(): Unit HTMLDataListElement[JC] def scrollHeight: Int @@ -4330,6 +4341,7 @@ HTMLDialogElement[JC] def removeEventListener[T <: Event](`type`: String, listen HTMLDialogElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLDialogElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLDialogElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLDialogElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLDialogElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLDialogElement[JC] def requestPointerLock(): Unit HTMLDialogElement[JC] var returnValue: String @@ -4532,6 +4544,7 @@ HTMLDivElement[JC] def removeEventListener[T <: Event](`type`: String, listener: HTMLDivElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLDivElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLDivElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLDivElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLDivElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLDivElement[JC] def requestPointerLock(): Unit HTMLDivElement[JC] def scrollHeight: Int @@ -4931,6 +4944,7 @@ HTMLElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js HTMLElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLElement[JC] def requestPointerLock(): Unit HTMLElement[JC] def scrollHeight: Int @@ -5132,6 +5146,7 @@ HTMLEmbedElement[JC] def removeEventListener[T <: Event](`type`: String, listene HTMLEmbedElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLEmbedElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLEmbedElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLEmbedElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLEmbedElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLEmbedElement[JC] def requestPointerLock(): Unit HTMLEmbedElement[JC] def scrollHeight: Int @@ -5336,6 +5351,7 @@ HTMLFieldSetElement[JC] def removeEventListener[T <: Event](`type`: String, list HTMLFieldSetElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLFieldSetElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLFieldSetElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLFieldSetElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLFieldSetElement[JC] def reportValidity(): Boolean HTMLFieldSetElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLFieldSetElement[JC] def requestPointerLock(): Unit @@ -5558,6 +5574,7 @@ HTMLFormElement[JC] def removeEventListener[T <: Event](`type`: String, listener HTMLFormElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLFormElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLFormElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLFormElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLFormElement[JC] def reportValidity(): Boolean HTMLFormElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLFormElement[JC] def requestPointerLock(): Unit @@ -5762,6 +5779,7 @@ HTMLHRElement[JC] def removeEventListener[T <: Event](`type`: String, listener: HTMLHRElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLHRElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLHRElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLHRElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLHRElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLHRElement[JC] def requestPointerLock(): Unit HTMLHRElement[JC] def scrollHeight: Int @@ -5961,6 +5979,7 @@ HTMLHeadElement[JC] def removeEventListener[T <: Event](`type`: String, listener HTMLHeadElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLHeadElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLHeadElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLHeadElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLHeadElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLHeadElement[JC] def requestPointerLock(): Unit HTMLHeadElement[JC] def scrollHeight: Int @@ -6160,6 +6179,7 @@ HTMLHeadingElement[JC] def removeEventListener[T <: Event](`type`: String, liste HTMLHeadingElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLHeadingElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLHeadingElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLHeadingElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLHeadingElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLHeadingElement[JC] def requestPointerLock(): Unit HTMLHeadingElement[JC] def scrollHeight: Int @@ -6359,6 +6379,7 @@ HTMLHtmlElement[JC] def removeEventListener[T <: Event](`type`: String, listener HTMLHtmlElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLHtmlElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLHtmlElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLHtmlElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLHtmlElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLHtmlElement[JC] def requestPointerLock(): Unit HTMLHtmlElement[JC] def scrollHeight: Int @@ -6565,6 +6586,7 @@ HTMLIFrameElement[JC] def removeEventListener[T <: Event](`type`: String, listen HTMLIFrameElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLIFrameElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLIFrameElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLIFrameElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLIFrameElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLIFrameElement[JC] def requestPointerLock(): Unit HTMLIFrameElement[JC] var sandbox: DOMSettableTokenList @@ -6776,6 +6798,7 @@ HTMLImageElement[JC] def removeEventListener[T <: Event](`type`: String, listene HTMLImageElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLImageElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLImageElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLImageElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLImageElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLImageElement[JC] def requestPointerLock(): Unit HTMLImageElement[JC] def scrollHeight: Int @@ -7005,6 +7028,7 @@ HTMLInputElement[JC] def removeEventListener[T <: Event](`type`: String, listene HTMLInputElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLInputElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLInputElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLInputElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLInputElement[JC] def reportValidity(): Boolean HTMLInputElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLInputElement[JC] def requestPointerLock(): Unit @@ -7224,6 +7248,7 @@ HTMLLIElement[JC] def removeEventListener[T <: Event](`type`: String, listener: HTMLLIElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLLIElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLLIElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLLIElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLLIElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLLIElement[JC] def requestPointerLock(): Unit HTMLLIElement[JC] def scrollHeight: Int @@ -7426,6 +7451,7 @@ HTMLLabelElement[JC] def removeEventListener[T <: Event](`type`: String, listene HTMLLabelElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLLabelElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLLabelElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLLabelElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLLabelElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLLabelElement[JC] def requestPointerLock(): Unit HTMLLabelElement[JC] def scrollHeight: Int @@ -7627,6 +7653,7 @@ HTMLLegendElement[JC] def removeEventListener[T <: Event](`type`: String, listen HTMLLegendElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLLegendElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLLegendElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLLegendElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLLegendElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLLegendElement[JC] def requestPointerLock(): Unit HTMLLegendElement[JC] def scrollHeight: Int @@ -7830,6 +7857,7 @@ HTMLLinkElement[JC] def removeEventListener[T <: Event](`type`: String, listener HTMLLinkElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLLinkElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLLinkElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLLinkElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLLinkElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLLinkElement[JC] def requestPointerLock(): Unit HTMLLinkElement[JC] var rev: String @@ -8034,6 +8062,7 @@ HTMLMapElement[JC] def removeEventListener[T <: Event](`type`: String, listener: HTMLMapElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLMapElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLMapElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLMapElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLMapElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLMapElement[JC] def requestPointerLock(): Unit HTMLMapElement[JC] def scrollHeight: Int @@ -8255,6 +8284,7 @@ HTMLMediaElement[JC] def removeEventListener[T <: Event](`type`: String, listene HTMLMediaElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLMediaElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLMediaElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLMediaElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLMediaElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLMediaElement[JC] def requestPointerLock(): Unit HTMLMediaElement[JC] def scrollHeight: Int @@ -8469,6 +8499,7 @@ HTMLMenuElement[JC] def removeEventListener[T <: Event](`type`: String, listener HTMLMenuElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLMenuElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLMenuElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLMenuElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLMenuElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLMenuElement[JC] def requestPointerLock(): Unit HTMLMenuElement[JC] def scrollHeight: Int @@ -8673,6 +8704,7 @@ HTMLMetaElement[JC] def removeEventListener[T <: Event](`type`: String, listener HTMLMetaElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLMetaElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLMetaElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLMetaElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLMetaElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLMetaElement[JC] def requestPointerLock(): Unit HTMLMetaElement[JC] def scrollHeight: Int @@ -8875,6 +8907,7 @@ HTMLModElement[JC] def removeEventListener[T <: Event](`type`: String, listener: HTMLModElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLModElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLModElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLModElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLModElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLModElement[JC] def requestPointerLock(): Unit HTMLModElement[JC] def scrollHeight: Int @@ -9074,6 +9107,7 @@ HTMLOListElement[JC] def removeEventListener[T <: Event](`type`: String, listene HTMLOListElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLOListElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLOListElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLOListElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLOListElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLOListElement[JC] def requestPointerLock(): Unit HTMLOListElement[JC] def scrollHeight: Int @@ -9286,6 +9320,7 @@ HTMLObjectElement[JC] def removeEventListener[T <: Event](`type`: String, listen HTMLObjectElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLObjectElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLObjectElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLObjectElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLObjectElement[JC] def reportValidity(): Boolean HTMLObjectElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLObjectElement[JC] def requestPointerLock(): Unit @@ -9495,6 +9530,7 @@ HTMLOptGroupElement[JC] def removeEventListener[T <: Event](`type`: String, list HTMLOptGroupElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLOptGroupElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLOptGroupElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLOptGroupElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLOptGroupElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLOptGroupElement[JC] def requestPointerLock(): Unit HTMLOptGroupElement[JC] def scrollHeight: Int @@ -9700,6 +9736,7 @@ HTMLOptionElement[JC] def removeEventListener[T <: Event](`type`: String, listen HTMLOptionElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLOptionElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLOptionElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLOptionElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLOptionElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLOptionElement[JC] def requestPointerLock(): Unit HTMLOptionElement[JC] def scrollHeight: Int @@ -9906,6 +9943,7 @@ HTMLParagraphElement[JC] def removeEventListener[T <: Event](`type`: String, lis HTMLParagraphElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLParagraphElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLParagraphElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLParagraphElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLParagraphElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLParagraphElement[JC] def requestPointerLock(): Unit HTMLParagraphElement[JC] def scrollHeight: Int @@ -10106,6 +10144,7 @@ HTMLParamElement[JC] def removeEventListener[T <: Event](`type`: String, listene HTMLParamElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLParamElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLParamElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLParamElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLParamElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLParamElement[JC] def requestPointerLock(): Unit HTMLParamElement[JC] def scrollHeight: Int @@ -10306,6 +10345,7 @@ HTMLPreElement[JC] def removeEventListener[T <: Event](`type`: String, listener: HTMLPreElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLPreElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLPreElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLPreElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLPreElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLPreElement[JC] def requestPointerLock(): Unit HTMLPreElement[JC] def scrollHeight: Int @@ -10508,6 +10548,7 @@ HTMLProgressElement[JC] def removeEventListener[T <: Event](`type`: String, list HTMLProgressElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLProgressElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLProgressElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLProgressElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLProgressElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLProgressElement[JC] def requestPointerLock(): Unit HTMLProgressElement[JC] def scrollHeight: Int @@ -10710,6 +10751,7 @@ HTMLQuoteElement[JC] def removeEventListener[T <: Event](`type`: String, listene HTMLQuoteElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLQuoteElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLQuoteElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLQuoteElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLQuoteElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLQuoteElement[JC] def requestPointerLock(): Unit HTMLQuoteElement[JC] def scrollHeight: Int @@ -10914,6 +10956,7 @@ HTMLScriptElement[JC] def removeEventListener[T <: Event](`type`: String, listen HTMLScriptElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLScriptElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLScriptElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLScriptElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLScriptElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLScriptElement[JC] def requestPointerLock(): Unit HTMLScriptElement[JC] def scrollHeight: Int @@ -11129,6 +11172,7 @@ HTMLSelectElement[JC] def removeEventListener[T <: Event](`type`: String, listen HTMLSelectElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLSelectElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLSelectElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLSelectElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLSelectElement[JC] def reportValidity(): Boolean HTMLSelectElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLSelectElement[JC] def requestPointerLock(): Unit @@ -11340,6 +11384,7 @@ HTMLSourceElement[JC] def removeEventListener[T <: Event](`type`: String, listen HTMLSourceElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLSourceElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLSourceElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLSourceElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLSourceElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLSourceElement[JC] def requestPointerLock(): Unit HTMLSourceElement[JC] def scrollHeight: Int @@ -11541,6 +11586,7 @@ HTMLSpanElement[JC] def removeEventListener[T <: Event](`type`: String, listener HTMLSpanElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLSpanElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLSpanElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLSpanElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLSpanElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLSpanElement[JC] def requestPointerLock(): Unit HTMLSpanElement[JC] def scrollHeight: Int @@ -11741,6 +11787,7 @@ HTMLStyleElement[JC] def removeEventListener[T <: Event](`type`: String, listene HTMLStyleElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLStyleElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLStyleElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLStyleElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLStyleElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLStyleElement[JC] def requestPointerLock(): Unit HTMLStyleElement[JC] def scrollHeight: Int @@ -11943,6 +11990,7 @@ HTMLTableCaptionElement[JC] def removeEventListener[T <: Event](`type`: String, HTMLTableCaptionElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLTableCaptionElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLTableCaptionElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLTableCaptionElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLTableCaptionElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLTableCaptionElement[JC] def requestPointerLock(): Unit HTMLTableCaptionElement[JC] def scrollHeight: Int @@ -12145,6 +12193,7 @@ HTMLTableCellElement[JC] def removeEventListener[T <: Event](`type`: String, lis HTMLTableCellElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLTableCellElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLTableCellElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLTableCellElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLTableCellElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLTableCellElement[JC] def requestPointerLock(): Unit HTMLTableCellElement[JC] var rowSpan: Int @@ -12345,6 +12394,7 @@ HTMLTableColElement[JC] def removeEventListener[T <: Event](`type`: String, list HTMLTableColElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLTableColElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLTableColElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLTableColElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLTableColElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLTableColElement[JC] def requestPointerLock(): Unit HTMLTableColElement[JC] def scrollHeight: Int @@ -12556,6 +12606,7 @@ HTMLTableElement[JC] def removeEventListener[T <: Event](`type`: String, listene HTMLTableElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLTableElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLTableElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLTableElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLTableElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLTableElement[JC] def requestPointerLock(): Unit HTMLTableElement[JC] def rows: HTMLCollection[Element] @@ -12766,6 +12817,7 @@ HTMLTableRowElement[JC] def removeEventListener[T <: Event](`type`: String, list HTMLTableRowElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLTableRowElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLTableRowElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLTableRowElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLTableRowElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLTableRowElement[JC] def requestPointerLock(): Unit HTMLTableRowElement[JC] def rowIndex: Int @@ -12970,6 +13022,7 @@ HTMLTableSectionElement[JC] def removeEventListener[T <: Event](`type`: String, HTMLTableSectionElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLTableSectionElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLTableSectionElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLTableSectionElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLTableSectionElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLTableSectionElement[JC] def requestPointerLock(): Unit HTMLTableSectionElement[JC] def rows: HTMLCollection[Element] @@ -13171,6 +13224,7 @@ HTMLTemplateElement[JC] def removeEventListener[T <: Event](`type`: String, list HTMLTemplateElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLTemplateElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLTemplateElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLTemplateElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLTemplateElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLTemplateElement[JC] def requestPointerLock(): Unit HTMLTemplateElement[JC] def scrollHeight: Int @@ -13380,6 +13434,7 @@ HTMLTextAreaElement[JC] def removeEventListener[T <: Event](`type`: String, list HTMLTextAreaElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLTextAreaElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLTextAreaElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLTextAreaElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLTextAreaElement[JC] def reportValidity(): Boolean HTMLTextAreaElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLTextAreaElement[JC] def requestPointerLock(): Unit @@ -13594,6 +13649,7 @@ HTMLTitleElement[JC] def removeEventListener[T <: Event](`type`: String, listene HTMLTitleElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLTitleElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLTitleElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLTitleElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLTitleElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLTitleElement[JC] def requestPointerLock(): Unit HTMLTitleElement[JC] def scrollHeight: Int @@ -13796,6 +13852,7 @@ HTMLTrackElement[JC] def removeEventListener[T <: Event](`type`: String, listene HTMLTrackElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLTrackElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLTrackElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLTrackElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLTrackElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLTrackElement[JC] def requestPointerLock(): Unit HTMLTrackElement[JC] def scrollHeight: Int @@ -13998,6 +14055,7 @@ HTMLUListElement[JC] def removeEventListener[T <: Event](`type`: String, listene HTMLUListElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLUListElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLUListElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLUListElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLUListElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLUListElement[JC] def requestPointerLock(): Unit HTMLUListElement[JC] def scrollHeight: Int @@ -14197,6 +14255,7 @@ HTMLUnknownElement[JC] def removeEventListener[T <: Event](`type`: String, liste HTMLUnknownElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLUnknownElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLUnknownElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLUnknownElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLUnknownElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLUnknownElement[JC] def requestPointerLock(): Unit HTMLUnknownElement[JC] def scrollHeight: Int @@ -14420,6 +14479,7 @@ HTMLVideoElement[JC] def removeEventListener[T <: Event](`type`: String, listene HTMLVideoElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit HTMLVideoElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node HTMLVideoElement[JC] def replaceChildren(nodes: Node | String*): Unit +HTMLVideoElement[JC] def replaceWith(nodes: Node | String*): Unit HTMLVideoElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] HTMLVideoElement[JC] def requestPointerLock(): Unit HTMLVideoElement[JC] def scrollHeight: Int @@ -16772,6 +16832,7 @@ SVGAElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js SVGAElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGAElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGAElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGAElement[JC] def replaceWith(nodes: Node | String*): Unit SVGAElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGAElement[JC] def requestPointerLock(): Unit SVGAElement[JC] var requiredExtensions: SVGStringList @@ -16941,6 +17002,7 @@ SVGCircleElement[JC] def removeEventListener[T <: Event](`type`: String, listene SVGCircleElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGCircleElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGCircleElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGCircleElement[JC] def replaceWith(nodes: Node | String*): Unit SVGCircleElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGCircleElement[JC] def requestPointerLock(): Unit SVGCircleElement[JC] var requiredExtensions: SVGStringList @@ -17072,6 +17134,7 @@ SVGClipPathElement[JC] def removeEventListener[T <: Event](`type`: String, liste SVGClipPathElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGClipPathElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGClipPathElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGClipPathElement[JC] def replaceWith(nodes: Node | String*): Unit SVGClipPathElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGClipPathElement[JC] def requestPointerLock(): Unit SVGClipPathElement[JC] var requiredExtensions: SVGStringList @@ -17194,6 +17257,7 @@ SVGComponentTransferFunctionElement[JC] def removeEventListener[T <: Event](`typ SVGComponentTransferFunctionElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGComponentTransferFunctionElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGComponentTransferFunctionElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGComponentTransferFunctionElement[JC] def replaceWith(nodes: Node | String*): Unit SVGComponentTransferFunctionElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGComponentTransferFunctionElement[JC] def requestPointerLock(): Unit SVGComponentTransferFunctionElement[JC] def scrollHeight: Int @@ -17323,6 +17387,7 @@ SVGDefsElement[JC] def removeEventListener[T <: Event](`type`: String, listener: SVGDefsElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGDefsElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGDefsElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGDefsElement[JC] def replaceWith(nodes: Node | String*): Unit SVGDefsElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGDefsElement[JC] def requestPointerLock(): Unit SVGDefsElement[JC] var requiredExtensions: SVGStringList @@ -17442,6 +17507,7 @@ SVGDescElement[JC] def removeEventListener[T <: Event](`type`: String, listener: SVGDescElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGDescElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGDescElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGDescElement[JC] def replaceWith(nodes: Node | String*): Unit SVGDescElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGDescElement[JC] def requestPointerLock(): Unit SVGDescElement[JC] def scrollHeight: Int @@ -17556,6 +17622,7 @@ SVGElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js. SVGElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGElement[JC] def replaceWith(nodes: Node | String*): Unit SVGElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGElement[JC] def requestPointerLock(): Unit SVGElement[JC] def scrollHeight: Int @@ -17693,6 +17760,7 @@ SVGEllipseElement[JC] def removeEventListener[T <: Event](`type`: String, listen SVGEllipseElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGEllipseElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGEllipseElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGEllipseElement[JC] def replaceWith(nodes: Node | String*): Unit SVGEllipseElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGEllipseElement[JC] def requestPointerLock(): Unit SVGEllipseElement[JC] var requiredExtensions: SVGStringList @@ -17825,6 +17893,7 @@ SVGFEBlendElement[JC] def removeEventListener[T <: Event](`type`: String, listen SVGFEBlendElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGFEBlendElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGFEBlendElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGFEBlendElement[JC] def replaceWith(nodes: Node | String*): Unit SVGFEBlendElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGFEBlendElement[JC] def requestPointerLock(): Unit SVGFEBlendElement[JC] def result: SVGAnimatedString @@ -17950,6 +18019,7 @@ SVGFEColorMatrixElement[JC] def removeEventListener[T <: Event](`type`: String, SVGFEColorMatrixElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGFEColorMatrixElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGFEColorMatrixElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGFEColorMatrixElement[JC] def replaceWith(nodes: Node | String*): Unit SVGFEColorMatrixElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGFEColorMatrixElement[JC] def requestPointerLock(): Unit SVGFEColorMatrixElement[JC] def result: SVGAnimatedString @@ -18076,6 +18146,7 @@ SVGFEComponentTransferElement[JC] def removeEventListener[T <: Event](`type`: St SVGFEComponentTransferElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGFEComponentTransferElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGFEComponentTransferElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGFEComponentTransferElement[JC] def replaceWith(nodes: Node | String*): Unit SVGFEComponentTransferElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGFEComponentTransferElement[JC] def requestPointerLock(): Unit SVGFEComponentTransferElement[JC] def result: SVGAnimatedString @@ -18201,6 +18272,7 @@ SVGFECompositeElement[JC] def removeEventListener[T <: Event](`type`: String, li SVGFECompositeElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGFECompositeElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGFECompositeElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGFECompositeElement[JC] def replaceWith(nodes: Node | String*): Unit SVGFECompositeElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGFECompositeElement[JC] def requestPointerLock(): Unit SVGFECompositeElement[JC] def result: SVGAnimatedString @@ -18336,6 +18408,7 @@ SVGFEConvolveMatrixElement[JC] def removeEventListener[T <: Event](`type`: Strin SVGFEConvolveMatrixElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGFEConvolveMatrixElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGFEConvolveMatrixElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGFEConvolveMatrixElement[JC] def replaceWith(nodes: Node | String*): Unit SVGFEConvolveMatrixElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGFEConvolveMatrixElement[JC] def requestPointerLock(): Unit SVGFEConvolveMatrixElement[JC] def result: SVGAnimatedString @@ -18464,6 +18537,7 @@ SVGFEDiffuseLightingElement[JC] def removeEventListener[T <: Event](`type`: Stri SVGFEDiffuseLightingElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGFEDiffuseLightingElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGFEDiffuseLightingElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGFEDiffuseLightingElement[JC] def replaceWith(nodes: Node | String*): Unit SVGFEDiffuseLightingElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGFEDiffuseLightingElement[JC] def requestPointerLock(): Unit SVGFEDiffuseLightingElement[JC] def result: SVGAnimatedString @@ -18585,6 +18659,7 @@ SVGFEDisplacementMapElement[JC] def removeEventListener[T <: Event](`type`: Stri SVGFEDisplacementMapElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGFEDisplacementMapElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGFEDisplacementMapElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGFEDisplacementMapElement[JC] def replaceWith(nodes: Node | String*): Unit SVGFEDisplacementMapElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGFEDisplacementMapElement[JC] def requestPointerLock(): Unit SVGFEDisplacementMapElement[JC] def result: SVGAnimatedString @@ -18711,6 +18786,7 @@ SVGFEDistantLightElement[JC] def removeEventListener[T <: Event](`type`: String, SVGFEDistantLightElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGFEDistantLightElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGFEDistantLightElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGFEDistantLightElement[JC] def replaceWith(nodes: Node | String*): Unit SVGFEDistantLightElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGFEDistantLightElement[JC] def requestPointerLock(): Unit SVGFEDistantLightElement[JC] def scrollHeight: Int @@ -18824,6 +18900,7 @@ SVGFEFloodElement[JC] def removeEventListener[T <: Event](`type`: String, listen SVGFEFloodElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGFEFloodElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGFEFloodElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGFEFloodElement[JC] def replaceWith(nodes: Node | String*): Unit SVGFEFloodElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGFEFloodElement[JC] def requestPointerLock(): Unit SVGFEFloodElement[JC] def result: SVGAnimatedString @@ -18944,6 +19021,7 @@ SVGFEFuncAElement[JC] def removeEventListener[T <: Event](`type`: String, listen SVGFEFuncAElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGFEFuncAElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGFEFuncAElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGFEFuncAElement[JC] def replaceWith(nodes: Node | String*): Unit SVGFEFuncAElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGFEFuncAElement[JC] def requestPointerLock(): Unit SVGFEFuncAElement[JC] def scrollHeight: Int @@ -19062,6 +19140,7 @@ SVGFEFuncBElement[JC] def removeEventListener[T <: Event](`type`: String, listen SVGFEFuncBElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGFEFuncBElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGFEFuncBElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGFEFuncBElement[JC] def replaceWith(nodes: Node | String*): Unit SVGFEFuncBElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGFEFuncBElement[JC] def requestPointerLock(): Unit SVGFEFuncBElement[JC] def scrollHeight: Int @@ -19180,6 +19259,7 @@ SVGFEFuncGElement[JC] def removeEventListener[T <: Event](`type`: String, listen SVGFEFuncGElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGFEFuncGElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGFEFuncGElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGFEFuncGElement[JC] def replaceWith(nodes: Node | String*): Unit SVGFEFuncGElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGFEFuncGElement[JC] def requestPointerLock(): Unit SVGFEFuncGElement[JC] def scrollHeight: Int @@ -19298,6 +19378,7 @@ SVGFEFuncRElement[JC] def removeEventListener[T <: Event](`type`: String, listen SVGFEFuncRElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGFEFuncRElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGFEFuncRElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGFEFuncRElement[JC] def replaceWith(nodes: Node | String*): Unit SVGFEFuncRElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGFEFuncRElement[JC] def requestPointerLock(): Unit SVGFEFuncRElement[JC] def scrollHeight: Int @@ -19415,6 +19496,7 @@ SVGFEGaussianBlurElement[JC] def removeEventListener[T <: Event](`type`: String, SVGFEGaussianBlurElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGFEGaussianBlurElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGFEGaussianBlurElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGFEGaussianBlurElement[JC] def replaceWith(nodes: Node | String*): Unit SVGFEGaussianBlurElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGFEGaussianBlurElement[JC] def requestPointerLock(): Unit SVGFEGaussianBlurElement[JC] def result: SVGAnimatedString @@ -19539,6 +19621,7 @@ SVGFEImageElement[JC] def removeEventListener[T <: Event](`type`: String, listen SVGFEImageElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGFEImageElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGFEImageElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGFEImageElement[JC] def replaceWith(nodes: Node | String*): Unit SVGFEImageElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGFEImageElement[JC] def requestPointerLock(): Unit SVGFEImageElement[JC] def result: SVGAnimatedString @@ -19659,6 +19742,7 @@ SVGFEMergeElement[JC] def removeEventListener[T <: Event](`type`: String, listen SVGFEMergeElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGFEMergeElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGFEMergeElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGFEMergeElement[JC] def replaceWith(nodes: Node | String*): Unit SVGFEMergeElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGFEMergeElement[JC] def requestPointerLock(): Unit SVGFEMergeElement[JC] def result: SVGAnimatedString @@ -19776,6 +19860,7 @@ SVGFEMergeNodeElement[JC] def removeEventListener[T <: Event](`type`: String, li SVGFEMergeNodeElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGFEMergeNodeElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGFEMergeNodeElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGFEMergeNodeElement[JC] def replaceWith(nodes: Node | String*): Unit SVGFEMergeNodeElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGFEMergeNodeElement[JC] def requestPointerLock(): Unit SVGFEMergeNodeElement[JC] def scrollHeight: Int @@ -19893,6 +19978,7 @@ SVGFEMorphologyElement[JC] def removeEventListener[T <: Event](`type`: String, l SVGFEMorphologyElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGFEMorphologyElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGFEMorphologyElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGFEMorphologyElement[JC] def replaceWith(nodes: Node | String*): Unit SVGFEMorphologyElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGFEMorphologyElement[JC] def requestPointerLock(): Unit SVGFEMorphologyElement[JC] def result: SVGAnimatedString @@ -20017,6 +20103,7 @@ SVGFEOffsetElement[JC] def removeEventListener[T <: Event](`type`: String, liste SVGFEOffsetElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGFEOffsetElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGFEOffsetElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGFEOffsetElement[JC] def replaceWith(nodes: Node | String*): Unit SVGFEOffsetElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGFEOffsetElement[JC] def requestPointerLock(): Unit SVGFEOffsetElement[JC] def result: SVGAnimatedString @@ -20133,6 +20220,7 @@ SVGFEPointLightElement[JC] def removeEventListener[T <: Event](`type`: String, l SVGFEPointLightElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGFEPointLightElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGFEPointLightElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGFEPointLightElement[JC] def replaceWith(nodes: Node | String*): Unit SVGFEPointLightElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGFEPointLightElement[JC] def requestPointerLock(): Unit SVGFEPointLightElement[JC] def scrollHeight: Int @@ -20252,6 +20340,7 @@ SVGFESpecularLightingElement[JC] def removeEventListener[T <: Event](`type`: Str SVGFESpecularLightingElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGFESpecularLightingElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGFESpecularLightingElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGFESpecularLightingElement[JC] def replaceWith(nodes: Node | String*): Unit SVGFESpecularLightingElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGFESpecularLightingElement[JC] def requestPointerLock(): Unit SVGFESpecularLightingElement[JC] def result: SVGAnimatedString @@ -20375,6 +20464,7 @@ SVGFESpotLightElement[JC] def removeEventListener[T <: Event](`type`: String, li SVGFESpotLightElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGFESpotLightElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGFESpotLightElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGFESpotLightElement[JC] def replaceWith(nodes: Node | String*): Unit SVGFESpotLightElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGFESpotLightElement[JC] def requestPointerLock(): Unit SVGFESpotLightElement[JC] def scrollHeight: Int @@ -20493,6 +20583,7 @@ SVGFETileElement[JC] def removeEventListener[T <: Event](`type`: String, listene SVGFETileElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGFETileElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGFETileElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGFETileElement[JC] def replaceWith(nodes: Node | String*): Unit SVGFETileElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGFETileElement[JC] def requestPointerLock(): Unit SVGFETileElement[JC] def result: SVGAnimatedString @@ -20614,6 +20705,7 @@ SVGFETurbulenceElement[JC] def removeEventListener[T <: Event](`type`: String, l SVGFETurbulenceElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGFETurbulenceElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGFETurbulenceElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGFETurbulenceElement[JC] def replaceWith(nodes: Node | String*): Unit SVGFETurbulenceElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGFETurbulenceElement[JC] def requestPointerLock(): Unit SVGFETurbulenceElement[JC] def result: SVGAnimatedString @@ -20750,6 +20842,7 @@ SVGFilterElement[JC] def removeEventListener[T <: Event](`type`: String, listene SVGFilterElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGFilterElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGFilterElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGFilterElement[JC] def replaceWith(nodes: Node | String*): Unit SVGFilterElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGFilterElement[JC] def requestPointerLock(): Unit SVGFilterElement[JC] def scrollHeight: Int @@ -20886,6 +20979,7 @@ SVGGElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js SVGGElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGGElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGGElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGGElement[JC] def replaceWith(nodes: Node | String*): Unit SVGGElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGGElement[JC] def requestPointerLock(): Unit SVGGElement[JC] var requiredExtensions: SVGStringList @@ -21012,6 +21106,7 @@ SVGGradientElement[JC] def removeEventListener[T <: Event](`type`: String, liste SVGGradientElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGGradientElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGGradientElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGGradientElement[JC] def replaceWith(nodes: Node | String*): Unit SVGGradientElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGGradientElement[JC] def requestPointerLock(): Unit SVGGradientElement[JC] def scrollHeight: Int @@ -21141,6 +21236,7 @@ SVGImageElement[JC] def removeEventListener[T <: Event](`type`: String, listener SVGImageElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGImageElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGImageElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGImageElement[JC] def replaceWith(nodes: Node | String*): Unit SVGImageElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGImageElement[JC] def requestPointerLock(): Unit SVGImageElement[JC] var requiredExtensions: SVGStringList @@ -21298,6 +21394,7 @@ SVGLineElement[JC] def removeEventListener[T <: Event](`type`: String, listener: SVGLineElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGLineElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGLineElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGLineElement[JC] def replaceWith(nodes: Node | String*): Unit SVGLineElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGLineElement[JC] def requestPointerLock(): Unit SVGLineElement[JC] var requiredExtensions: SVGStringList @@ -21428,6 +21525,7 @@ SVGLinearGradientElement[JC] def removeEventListener[T <: Event](`type`: String, SVGLinearGradientElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGLinearGradientElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGLinearGradientElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGLinearGradientElement[JC] def replaceWith(nodes: Node | String*): Unit SVGLinearGradientElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGLinearGradientElement[JC] def requestPointerLock(): Unit SVGLinearGradientElement[JC] def scrollHeight: Int @@ -21561,6 +21659,7 @@ SVGMarkerElement[JC] def removeEventListener[T <: Event](`type`: String, listene SVGMarkerElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGMarkerElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGMarkerElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGMarkerElement[JC] def replaceWith(nodes: Node | String*): Unit SVGMarkerElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGMarkerElement[JC] def requestPointerLock(): Unit SVGMarkerElement[JC] def scrollHeight: Int @@ -21693,6 +21792,7 @@ SVGMaskElement[JC] def removeEventListener[T <: Event](`type`: String, listener: SVGMaskElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGMaskElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGMaskElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGMaskElement[JC] def replaceWith(nodes: Node | String*): Unit SVGMaskElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGMaskElement[JC] def requestPointerLock(): Unit SVGMaskElement[JC] var requiredExtensions: SVGStringList @@ -21830,6 +21930,7 @@ SVGMetadataElement[JC] def removeEventListener[T <: Event](`type`: String, liste SVGMetadataElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGMetadataElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGMetadataElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGMetadataElement[JC] def replaceWith(nodes: Node | String*): Unit SVGMetadataElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGMetadataElement[JC] def requestPointerLock(): Unit SVGMetadataElement[JC] def scrollHeight: Int @@ -21982,6 +22083,7 @@ SVGPathElement[JC] def removeEventListener[T <: Event](`type`: String, listener: SVGPathElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGPathElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGPathElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGPathElement[JC] def replaceWith(nodes: Node | String*): Unit SVGPathElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGPathElement[JC] def requestPointerLock(): Unit SVGPathElement[JC] var requiredExtensions: SVGStringList @@ -22238,6 +22340,7 @@ SVGPatternElement[JC] def removeEventListener[T <: Event](`type`: String, listen SVGPatternElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGPatternElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGPatternElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGPatternElement[JC] def replaceWith(nodes: Node | String*): Unit SVGPatternElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGPatternElement[JC] def requestPointerLock(): Unit SVGPatternElement[JC] var requiredExtensions: SVGStringList @@ -22381,6 +22484,7 @@ SVGPolygonElement[JC] def removeEventListener[T <: Event](`type`: String, listen SVGPolygonElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGPolygonElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGPolygonElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGPolygonElement[JC] def replaceWith(nodes: Node | String*): Unit SVGPolygonElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGPolygonElement[JC] def requestPointerLock(): Unit SVGPolygonElement[JC] var requiredExtensions: SVGStringList @@ -22510,6 +22614,7 @@ SVGPolylineElement[JC] def removeEventListener[T <: Event](`type`: String, liste SVGPolylineElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGPolylineElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGPolylineElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGPolylineElement[JC] def replaceWith(nodes: Node | String*): Unit SVGPolylineElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGPolylineElement[JC] def requestPointerLock(): Unit SVGPolylineElement[JC] var requiredExtensions: SVGStringList @@ -22657,6 +22762,7 @@ SVGRadialGradientElement[JC] def removeEventListener[T <: Event](`type`: String, SVGRadialGradientElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGRadialGradientElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGRadialGradientElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGRadialGradientElement[JC] def replaceWith(nodes: Node | String*): Unit SVGRadialGradientElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGRadialGradientElement[JC] def requestPointerLock(): Unit SVGRadialGradientElement[JC] def scrollHeight: Int @@ -22784,6 +22890,7 @@ SVGRectElement[JC] def removeEventListener[T <: Event](`type`: String, listener: SVGRectElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGRectElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGRectElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGRectElement[JC] def replaceWith(nodes: Node | String*): Unit SVGRectElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGRectElement[JC] def requestPointerLock(): Unit SVGRectElement[JC] var requiredExtensions: SVGStringList @@ -22949,6 +23056,7 @@ SVGSVGElement[JC] def removeEventListener[T <: Event](`type`: String, listener: SVGSVGElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGSVGElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGSVGElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGSVGElement[JC] def replaceWith(nodes: Node | String*): Unit SVGSVGElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGSVGElement[JC] def requestPointerLock(): Unit SVGSVGElement[JC] var requiredExtensions: SVGStringList @@ -23081,6 +23189,7 @@ SVGScriptElement[JC] def removeEventListener[T <: Event](`type`: String, listene SVGScriptElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGScriptElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGScriptElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGScriptElement[JC] def replaceWith(nodes: Node | String*): Unit SVGScriptElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGScriptElement[JC] def requestPointerLock(): Unit SVGScriptElement[JC] def scrollHeight: Int @@ -23195,6 +23304,7 @@ SVGStopElement[JC] def removeEventListener[T <: Event](`type`: String, listener: SVGStopElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGStopElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGStopElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGStopElement[JC] def replaceWith(nodes: Node | String*): Unit SVGStopElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGStopElement[JC] def requestPointerLock(): Unit SVGStopElement[JC] def scrollHeight: Int @@ -23318,6 +23428,7 @@ SVGStyleElement[JC] def removeEventListener[T <: Event](`type`: String, listener SVGStyleElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGStyleElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGStyleElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGStyleElement[JC] def replaceWith(nodes: Node | String*): Unit SVGStyleElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGStyleElement[JC] def requestPointerLock(): Unit SVGStyleElement[JC] def scrollHeight: Int @@ -23442,6 +23553,7 @@ SVGSwitchElement[JC] def removeEventListener[T <: Event](`type`: String, listene SVGSwitchElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGSwitchElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGSwitchElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGSwitchElement[JC] def replaceWith(nodes: Node | String*): Unit SVGSwitchElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGSwitchElement[JC] def requestPointerLock(): Unit SVGSwitchElement[JC] var requiredExtensions: SVGStringList @@ -23563,6 +23675,7 @@ SVGSymbolElement[JC] def removeEventListener[T <: Event](`type`: String, listene SVGSymbolElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGSymbolElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGSymbolElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGSymbolElement[JC] def replaceWith(nodes: Node | String*): Unit SVGSymbolElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGSymbolElement[JC] def requestPointerLock(): Unit SVGSymbolElement[JC] def scrollHeight: Int @@ -23692,6 +23805,7 @@ SVGTSpanElement[JC] def removeEventListener[T <: Event](`type`: String, listener SVGTSpanElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGTSpanElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGTSpanElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGTSpanElement[JC] def replaceWith(nodes: Node | String*): Unit SVGTSpanElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGTSpanElement[JC] def requestPointerLock(): Unit SVGTSpanElement[JC] var requiredExtensions: SVGStringList @@ -23830,6 +23944,7 @@ SVGTextContentElement[JC] def removeEventListener[T <: Event](`type`: String, li SVGTextContentElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGTextContentElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGTextContentElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGTextContentElement[JC] def replaceWith(nodes: Node | String*): Unit SVGTextContentElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGTextContentElement[JC] def requestPointerLock(): Unit SVGTextContentElement[JC] var requiredExtensions: SVGStringList @@ -23972,6 +24087,7 @@ SVGTextElement[JC] def removeEventListener[T <: Event](`type`: String, listener: SVGTextElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGTextElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGTextElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGTextElement[JC] def replaceWith(nodes: Node | String*): Unit SVGTextElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGTextElement[JC] def requestPointerLock(): Unit SVGTextElement[JC] var requiredExtensions: SVGStringList @@ -24109,6 +24225,7 @@ SVGTextPathElement[JC] def removeEventListener[T <: Event](`type`: String, liste SVGTextPathElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGTextPathElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGTextPathElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGTextPathElement[JC] def replaceWith(nodes: Node | String*): Unit SVGTextPathElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGTextPathElement[JC] def requestPointerLock(): Unit SVGTextPathElement[JC] var requiredExtensions: SVGStringList @@ -24250,6 +24367,7 @@ SVGTextPositioningElement[JC] def removeEventListener[T <: Event](`type`: String SVGTextPositioningElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGTextPositioningElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGTextPositioningElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGTextPositioningElement[JC] def replaceWith(nodes: Node | String*): Unit SVGTextPositioningElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGTextPositioningElement[JC] def requestPointerLock(): Unit SVGTextPositioningElement[JC] var requiredExtensions: SVGStringList @@ -24373,6 +24491,7 @@ SVGTitleElement[JC] def removeEventListener[T <: Event](`type`: String, listener SVGTitleElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGTitleElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGTitleElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGTitleElement[JC] def replaceWith(nodes: Node | String*): Unit SVGTitleElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGTitleElement[JC] def requestPointerLock(): Unit SVGTitleElement[JC] def scrollHeight: Int @@ -24540,6 +24659,7 @@ SVGUseElement[JC] def removeEventListener[T <: Event](`type`: String, listener: SVGUseElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGUseElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGUseElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGUseElement[JC] def replaceWith(nodes: Node | String*): Unit SVGUseElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGUseElement[JC] def requestPointerLock(): Unit SVGUseElement[JC] var requiredExtensions: SVGStringList @@ -24663,6 +24783,7 @@ SVGViewElement[JC] def removeEventListener[T <: Event](`type`: String, listener: SVGViewElement[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit SVGViewElement[JC] def replaceChild(newChild: Node, oldChild: Node): Node SVGViewElement[JC] def replaceChildren(nodes: Node | String*): Unit +SVGViewElement[JC] def replaceWith(nodes: Node | String*): Unit SVGViewElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit] SVGViewElement[JC] def requestPointerLock(): Unit SVGViewElement[JC] def scrollHeight: Int diff --git a/dom/src/main/scala/org/scalajs/dom/Element.scala b/dom/src/main/scala/org/scalajs/dom/Element.scala index 6d98b10ce..7a8b16039 100644 --- a/dom/src/main/scala/org/scalajs/dom/Element.scala +++ b/dom/src/main/scala/org/scalajs/dom/Element.scala @@ -265,4 +265,9 @@ abstract class Element extends Node with NodeSelector with ParentNode with NonDo /** Returns the open shadow root that is hosted by the element, or null if no open shadow root is present. */ def shadowRoot: ShadowRoot = js.native + + /** The Element.replaceWith() method replaces this Element in the children list of its parent with a set of Node or + * string objects. String objects are inserted as equivalent Text nodes. + */ + def replaceWith(nodes: (Node | String)*): Unit = js.native } From 731eeef711dd99ce1b77d05b771cefc991104253 Mon Sep 17 00:00:00 2001 From: zetashift Date: Sun, 21 Aug 2022 01:20:43 +0200 Subject: [PATCH 28/47] Better scaladoc for replaceWith Co-authored-by: Arman Bilge --- dom/src/main/scala/org/scalajs/dom/Element.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom/src/main/scala/org/scalajs/dom/Element.scala b/dom/src/main/scala/org/scalajs/dom/Element.scala index 7a8b16039..6503a0187 100644 --- a/dom/src/main/scala/org/scalajs/dom/Element.scala +++ b/dom/src/main/scala/org/scalajs/dom/Element.scala @@ -266,7 +266,7 @@ abstract class Element extends Node with NodeSelector with ParentNode with NonDo /** Returns the open shadow root that is hosted by the element, or null if no open shadow root is present. */ def shadowRoot: ShadowRoot = js.native - /** The Element.replaceWith() method replaces this Element in the children list of its parent with a set of Node or + /** Replaces this Element in the children list of its parent with a set of Node or * string objects. String objects are inserted as equivalent Text nodes. */ def replaceWith(nodes: (Node | String)*): Unit = js.native From d68117b978f9dd86363c179f57d5a45c756fafd0 Mon Sep 17 00:00:00 2001 From: zetashift Date: Sun, 21 Aug 2022 01:26:40 +0200 Subject: [PATCH 29/47] Move duplex over to RequestInit as a var --- dom/src/main/scala/org/scalajs/dom/Request.scala | 5 ----- dom/src/main/scala/org/scalajs/dom/RequestInit.scala | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dom/src/main/scala/org/scalajs/dom/Request.scala b/dom/src/main/scala/org/scalajs/dom/Request.scala index 297462f4d..124849a8f 100644 --- a/dom/src/main/scala/org/scalajs/dom/Request.scala +++ b/dom/src/main/scala/org/scalajs/dom/Request.scala @@ -47,9 +47,4 @@ class Request(input: RequestInfo, init: RequestInit = null) extends Body { def keepalive: Boolean = js.native def signal: AbortSignal = js.native - - /** "half" is the only valid value and it is for initiating a half-duplex fetch (i.e., the user agent sends the entire - * request before processing the response). - */ - def duplex: RequestDuplex = js.native } diff --git a/dom/src/main/scala/org/scalajs/dom/RequestInit.scala b/dom/src/main/scala/org/scalajs/dom/RequestInit.scala index f43401815..de8ea9bab 100644 --- a/dom/src/main/scala/org/scalajs/dom/RequestInit.scala +++ b/dom/src/main/scala/org/scalajs/dom/RequestInit.scala @@ -30,6 +30,11 @@ trait RequestInit extends js.Object { var signal: js.UndefOr[AbortSignal] = js.undefined + /** "half" is the only valid value and it is for initiating a half-duplex fetch (i.e., the user agent sends the entire + * request before processing the response). + */ + var duplex: js.UndefOr[RequestDuplex] = js.undefined + /** The whatwg spec section on [[https://fetch.spec.whatwg.org/#requestinit RequestInit dictionary]] has a comment * that states that this value "can only be set to null". In the detailed steps section for * [[https://fetch.spec.whatwg.org/#dom-request the Request(input,init) constructor]] it says even more clearly: "If From cf5a973ebb69997f97477d245ff35d7a724d7a6f Mon Sep 17 00:00:00 2001 From: zetashift Date: Sun, 21 Aug 2022 01:30:05 +0200 Subject: [PATCH 30/47] Scalafix api reports --- api-reports/2_12.txt | 2 +- api-reports/2_13.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api-reports/2_12.txt b/api-reports/2_12.txt index 5b8401c7d..0d7e7afd5 100644 --- a/api-reports/2_12.txt +++ b/api-reports/2_12.txt @@ -16510,7 +16510,6 @@ Request[JC] def bodyUsed: Boolean Request[JC] def cache: RequestCache Request[JC] def credentials: RequestCredentials Request[JC] def destination: RequestDestination -Request[JC] def duplex: RequestDuplex Request[JC] def formData(): js.Promise[FormData] Request[JC] def headers: Headers Request[JC] def integrity: String @@ -16548,6 +16547,7 @@ RequestDuplex[SO] val half: RequestDuplex RequestInit[JT] var body: js.UndefOr[BodyInit] RequestInit[JT] var cache: js.UndefOr[RequestCache] RequestInit[JT] var credentials: js.UndefOr[RequestCredentials] +RequestInit[JT] var duplex: js.UndefOr[RequestDuplex] RequestInit[JT] var headers: js.UndefOr[HeadersInit] RequestInit[JT] var integrity: js.UndefOr[String] RequestInit[JT] var keepalive: js.UndefOr[Boolean] diff --git a/api-reports/2_13.txt b/api-reports/2_13.txt index 5b8401c7d..0d7e7afd5 100644 --- a/api-reports/2_13.txt +++ b/api-reports/2_13.txt @@ -16510,7 +16510,6 @@ Request[JC] def bodyUsed: Boolean Request[JC] def cache: RequestCache Request[JC] def credentials: RequestCredentials Request[JC] def destination: RequestDestination -Request[JC] def duplex: RequestDuplex Request[JC] def formData(): js.Promise[FormData] Request[JC] def headers: Headers Request[JC] def integrity: String @@ -16548,6 +16547,7 @@ RequestDuplex[SO] val half: RequestDuplex RequestInit[JT] var body: js.UndefOr[BodyInit] RequestInit[JT] var cache: js.UndefOr[RequestCache] RequestInit[JT] var credentials: js.UndefOr[RequestCredentials] +RequestInit[JT] var duplex: js.UndefOr[RequestDuplex] RequestInit[JT] var headers: js.UndefOr[HeadersInit] RequestInit[JT] var integrity: js.UndefOr[String] RequestInit[JT] var keepalive: js.UndefOr[Boolean] From c11aedf7bcd0a0c46c723246e99033ee28e3b086 Mon Sep 17 00:00:00 2001 From: zetashift Date: Sun, 21 Aug 2022 01:34:37 +0200 Subject: [PATCH 31/47] Also scaladoc comment for the scala 2 enum --- dom/src/main/scala-2/org/scalajs/dom/ScrollRestoration.scala | 4 +++- dom/src/main/scala-3/org/scalajs/dom/ScrollRestoration.scala | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dom/src/main/scala-2/org/scalajs/dom/ScrollRestoration.scala b/dom/src/main/scala-2/org/scalajs/dom/ScrollRestoration.scala index 6e63ca0ed..751cd4904 100644 --- a/dom/src/main/scala-2/org/scalajs/dom/ScrollRestoration.scala +++ b/dom/src/main/scala-2/org/scalajs/dom/ScrollRestoration.scala @@ -10,6 +10,8 @@ sealed trait ScrollRestoration extends js.Any * which contains the spec for ScrollRestoration */ object ScrollRestoration { + /** The location on the page to which the user has scrolled will be restored. */ val auto: ScrollRestoration = "auto".asInstanceOf[ScrollRestoration] + /** The location on the page is not restored. The user will have to scroll to the location manually. */ val manual: ScrollRestoration = "manual".asInstanceOf[ScrollRestoration] -} \ No newline at end of file +} diff --git a/dom/src/main/scala-3/org/scalajs/dom/ScrollRestoration.scala b/dom/src/main/scala-3/org/scalajs/dom/ScrollRestoration.scala index d42dab8f3..5eb2e14ee 100644 --- a/dom/src/main/scala-3/org/scalajs/dom/ScrollRestoration.scala +++ b/dom/src/main/scala-3/org/scalajs/dom/ScrollRestoration.scala @@ -13,4 +13,4 @@ object ScrollRestoration { val auto: ScrollRestoration = "auto" /** The location on the page is not restored. The user will have to scroll to the location manually. */ val manual: ScrollRestoration = "manual" -} \ No newline at end of file +} From a41e082506c4391009f0ab7861da6a0577261819 Mon Sep 17 00:00:00 2001 From: zetashift Date: Sun, 21 Aug 2022 01:40:53 +0200 Subject: [PATCH 32/47] Please my CI overlord by formatting Element correctly --- dom/src/main/scala/org/scalajs/dom/Element.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dom/src/main/scala/org/scalajs/dom/Element.scala b/dom/src/main/scala/org/scalajs/dom/Element.scala index 6503a0187..c5817e621 100644 --- a/dom/src/main/scala/org/scalajs/dom/Element.scala +++ b/dom/src/main/scala/org/scalajs/dom/Element.scala @@ -266,8 +266,8 @@ abstract class Element extends Node with NodeSelector with ParentNode with NonDo /** Returns the open shadow root that is hosted by the element, or null if no open shadow root is present. */ def shadowRoot: ShadowRoot = js.native - /** Replaces this Element in the children list of its parent with a set of Node or - * string objects. String objects are inserted as equivalent Text nodes. + /** Replaces this Element in the children list of its parent with a set of Node or string objects. String objects are + * inserted as equivalent Text nodes. */ def replaceWith(nodes: (Node | String)*): Unit = js.native } From 2361c99bbdd6258c566909e02a2ee2ed84007d52 Mon Sep 17 00:00:00 2001 From: zetashift Date: Sun, 21 Aug 2022 21:17:18 +0200 Subject: [PATCH 33/47] add URLSearchParams to BodyInit --- dom/src/main/scala/org/scalajs/dom/package.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dom/src/main/scala/org/scalajs/dom/package.scala b/dom/src/main/scala/org/scalajs/dom/package.scala index caeea520b..96b116cad 100644 --- a/dom/src/main/scala/org/scalajs/dom/package.scala +++ b/dom/src/main/scala/org/scalajs/dom/package.scala @@ -30,9 +30,9 @@ package object dom { /** This type should capture strings consisting only of ASCII chars todo: is there a way to capture this type? */ type ByteString = String - /** defined at [[https://fetch.spec.whatwg.org/#body-mixin ¶6.2 Body mixin]] in whatwg Fetch spec */ + /** defined at [[https://fetch.spec.whatwg.org/#bodyinit-unions]] in whatwg Fetch spec */ type BodyInit = - Blob | BufferSource | FormData | String | ReadableStream[Uint8Array] // todo: add URLSearchParams + Blob | BufferSource | FormData | String | ReadableStream[Uint8Array] | URLSearchParams /** WebIDL sequence is js.Array[T] | JSIterable[T]. However @mseddon knows at least Blink's IDL compiler treats * these as simply js.Array[T] for now. We keep this type as a reminder to check in more detail From 2f4d34e6522f7c3cdbf0f3a9f3ba0c7a0be0dbe9 Mon Sep 17 00:00:00 2001 From: zetashift Date: Sun, 21 Aug 2022 21:20:32 +0200 Subject: [PATCH 34/47] prePR api-reports --- api-reports/2_12.txt | 2 +- api-reports/2_13.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api-reports/2_12.txt b/api-reports/2_12.txt index 0c7e86bb3..0e85ccf5c 100644 --- a/api-reports/2_12.txt +++ b/api-reports/2_12.txt @@ -26797,7 +26797,7 @@ intl/NumberFormatOptions[JT] var useGrouping: js.UndefOr[Boolean] intl/NumberFormatOptions[SO] def apply(localeMatcher: js.UndefOr[String]?, style: js.UndefOr[String]?, currency: js.UndefOr[String]?, currencyDisplay: js.UndefOr[String]?, useGrouping: js.UndefOr[Boolean]?, minimumIntegerDigits: js.UndefOr[Double]?, minimumFractionDigits: js.UndefOr[Double]?, maximumFractionDigits: js.UndefOr[Double]?, minimumSignificantDigits: js.UndefOr[Double]?, maximumSignificantDigits: js.UndefOr[Double]?): NumberFormatOptions (@deprecated in 2.0.0) package[SO] type AlgorithmIdentifier = Algorithm | String package[SO] type BigInteger = js.typedarray.Uint8Array -package[SO] type BodyInit = Blob | BufferSource | FormData | String | ReadableStream[Uint8Array] +package[SO] type BodyInit = Blob | BufferSource | FormData | String | ReadableStream[Uint8Array] | URLSearchParams package[SO] type BufferSource = ArrayBufferView | ArrayBuffer package[SO] type ByteString = String package[SO] type ClientRect = DOMRect (@deprecated in 2.0.0) diff --git a/api-reports/2_13.txt b/api-reports/2_13.txt index 0c7e86bb3..0e85ccf5c 100644 --- a/api-reports/2_13.txt +++ b/api-reports/2_13.txt @@ -26797,7 +26797,7 @@ intl/NumberFormatOptions[JT] var useGrouping: js.UndefOr[Boolean] intl/NumberFormatOptions[SO] def apply(localeMatcher: js.UndefOr[String]?, style: js.UndefOr[String]?, currency: js.UndefOr[String]?, currencyDisplay: js.UndefOr[String]?, useGrouping: js.UndefOr[Boolean]?, minimumIntegerDigits: js.UndefOr[Double]?, minimumFractionDigits: js.UndefOr[Double]?, maximumFractionDigits: js.UndefOr[Double]?, minimumSignificantDigits: js.UndefOr[Double]?, maximumSignificantDigits: js.UndefOr[Double]?): NumberFormatOptions (@deprecated in 2.0.0) package[SO] type AlgorithmIdentifier = Algorithm | String package[SO] type BigInteger = js.typedarray.Uint8Array -package[SO] type BodyInit = Blob | BufferSource | FormData | String | ReadableStream[Uint8Array] +package[SO] type BodyInit = Blob | BufferSource | FormData | String | ReadableStream[Uint8Array] | URLSearchParams package[SO] type BufferSource = ArrayBufferView | ArrayBuffer package[SO] type ByteString = String package[SO] type ClientRect = DOMRect (@deprecated in 2.0.0) From 1604459234253b784f8dc976e4b8a7bcbbac4584 Mon Sep 17 00:00:00 2001 From: zetashift Date: Sun, 21 Aug 2022 17:12:43 +0200 Subject: [PATCH 35/47] Fixup File API --- dom/src/main/scala/org/scalajs/dom/File.scala | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/dom/src/main/scala/org/scalajs/dom/File.scala b/dom/src/main/scala/org/scalajs/dom/File.scala index 4a7003f11..79c534653 100644 --- a/dom/src/main/scala/org/scalajs/dom/File.scala +++ b/dom/src/main/scala/org/scalajs/dom/File.scala @@ -19,8 +19,28 @@ import scala.scalajs.js.annotation._ */ @js.native @JSGlobal -abstract class File extends Blob { +abstract class File[A](bits: js.Iterable[A], name: String, options: FileOptions) extends Blob { /** Returns the name of the file. For security reasons, the path is excluded from this property. */ def name: String = js.native + + /** The File.lastModified read-only property provides the last modified date of the file as the number of milliseconds + * since the Unix epoch (January 1, 1970 at midnight). Files without a known last modified date return the current + * date. + */ + def lastModified: Int = js.native + + /** The File.webkitRelativePath is a read-only property that contains a string which specifies the file's path + * relative to the directory selected by the user in an element with its webkitdirectory attribute set. + * + * @return + * A string containing the path of the file relative to the ancestor directory the user selected. + */ + def webkitRelativePath: String = js.native +} + +/** An options object containing optional attributes for the file. */ +trait FileOptions extends js.Object { + var `type`: js.UndefOr[String] = js.undefined + var lastModified: js.UndefOr[Int] = js.undefined } From 6a010e322c0dd0a5007036260ba8dae0599d18c7 Mon Sep 17 00:00:00 2001 From: zetashift Date: Sun, 21 Aug 2022 17:20:44 +0200 Subject: [PATCH 36/47] Fixup File API with preSBT changes --- api-reports/2_12.txt | 5 ++++- api-reports/2_13.txt | 5 ++++- dom/src/main/scala/org/scalajs/dom/File.scala | 5 +---- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/api-reports/2_12.txt b/api-reports/2_12.txt index 98edbd087..3056b93c3 100644 --- a/api-reports/2_12.txt +++ b/api-reports/2_12.txt @@ -1946,15 +1946,18 @@ FetchEventInit[JT] var request: js.UndefOr[Request] FetchEventInit[JT] var scoped: js.UndefOr[Boolean] File[JC] def arrayBuffer(): js.Promise[ArrayBuffer] File[JC] def close(): Unit (@deprecated in 1.2.0) -File[JC] def name: String +File[JC] def lastModified: Int File[JC] def size: Double File[JC] def slice(start: Double?, end: Double?, contentType: String?): Blob File[JC] def stream(): ReadableStream[Uint8Array] File[JC] def text(): js.Promise[String] File[JC] def `type`: String +File[JC] def webkitRelativePath: String FileList[JC] @JSBracketAccess def apply(index: Int): T FileList[JC] def item(index: Int): File FileList[JC] def length: Int +FileOptions[JT] var lastModified: js.UndefOr[Int] +FileOptions[JT] var `type`: js.UndefOr[String] FileReader[JC] def abort(): Unit FileReader[JC] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit FileReader[JC] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit diff --git a/api-reports/2_13.txt b/api-reports/2_13.txt index 98edbd087..3056b93c3 100644 --- a/api-reports/2_13.txt +++ b/api-reports/2_13.txt @@ -1946,15 +1946,18 @@ FetchEventInit[JT] var request: js.UndefOr[Request] FetchEventInit[JT] var scoped: js.UndefOr[Boolean] File[JC] def arrayBuffer(): js.Promise[ArrayBuffer] File[JC] def close(): Unit (@deprecated in 1.2.0) -File[JC] def name: String +File[JC] def lastModified: Int File[JC] def size: Double File[JC] def slice(start: Double?, end: Double?, contentType: String?): Blob File[JC] def stream(): ReadableStream[Uint8Array] File[JC] def text(): js.Promise[String] File[JC] def `type`: String +File[JC] def webkitRelativePath: String FileList[JC] @JSBracketAccess def apply(index: Int): T FileList[JC] def item(index: Int): File FileList[JC] def length: Int +FileOptions[JT] var lastModified: js.UndefOr[Int] +FileOptions[JT] var `type`: js.UndefOr[String] FileReader[JC] def abort(): Unit FileReader[JC] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit FileReader[JC] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit diff --git a/dom/src/main/scala/org/scalajs/dom/File.scala b/dom/src/main/scala/org/scalajs/dom/File.scala index 79c534653..d1a7f7d4e 100644 --- a/dom/src/main/scala/org/scalajs/dom/File.scala +++ b/dom/src/main/scala/org/scalajs/dom/File.scala @@ -19,10 +19,7 @@ import scala.scalajs.js.annotation._ */ @js.native @JSGlobal -abstract class File[A](bits: js.Iterable[A], name: String, options: FileOptions) extends Blob { - - /** Returns the name of the file. For security reasons, the path is excluded from this property. */ - def name: String = js.native +abstract class File(bits: js.Iterable[Any], name: String, options: FileOptions) extends Blob { /** The File.lastModified read-only property provides the last modified date of the file as the number of milliseconds * since the Unix epoch (January 1, 1970 at midnight). Files without a known last modified date return the current From 9dabc3a93d5dd0a95821f08760292090e30080a6 Mon Sep 17 00:00:00 2001 From: zetashift Date: Sun, 21 Aug 2022 18:14:47 +0200 Subject: [PATCH 37/47] FileOptions changed to adhere to the spec and put in its own file --- dom/src/main/scala/org/scalajs/dom/File.scala | 10 ++-------- .../main/scala/org/scalajs/dom/FilePropertyBag.scala | 8 ++++++++ 2 files changed, 10 insertions(+), 8 deletions(-) create mode 100644 dom/src/main/scala/org/scalajs/dom/FilePropertyBag.scala diff --git a/dom/src/main/scala/org/scalajs/dom/File.scala b/dom/src/main/scala/org/scalajs/dom/File.scala index d1a7f7d4e..29faadb1e 100644 --- a/dom/src/main/scala/org/scalajs/dom/File.scala +++ b/dom/src/main/scala/org/scalajs/dom/File.scala @@ -19,7 +19,7 @@ import scala.scalajs.js.annotation._ */ @js.native @JSGlobal -abstract class File(bits: js.Iterable[Any], name: String, options: FileOptions) extends Blob { +class File(bits: js.Iterable[Any], name: String, options: FilePropertyBag) extends Blob { /** The File.lastModified read-only property provides the last modified date of the file as the number of milliseconds * since the Unix epoch (January 1, 1970 at midnight). Files without a known last modified date return the current @@ -34,10 +34,4 @@ abstract class File(bits: js.Iterable[Any], name: String, options: FileOptions) * A string containing the path of the file relative to the ancestor directory the user selected. */ def webkitRelativePath: String = js.native -} - -/** An options object containing optional attributes for the file. */ -trait FileOptions extends js.Object { - var `type`: js.UndefOr[String] = js.undefined - var lastModified: js.UndefOr[Int] = js.undefined -} +} \ No newline at end of file diff --git a/dom/src/main/scala/org/scalajs/dom/FilePropertyBag.scala b/dom/src/main/scala/org/scalajs/dom/FilePropertyBag.scala new file mode 100644 index 000000000..344c28b87 --- /dev/null +++ b/dom/src/main/scala/org/scalajs/dom/FilePropertyBag.scala @@ -0,0 +1,8 @@ +package org.scalajs.dom + +import scala.scalajs.js + +/** An options object containing optional attributes for the file. */ +trait FilePropertyBag extends BlobPropertyBag { + var lastModified: js.UndefOr[Int] = js.undefined +} From 6b375a9cf5f2d42388bdb44f45eb91be92d98c42 Mon Sep 17 00:00:00 2001 From: zetashift Date: Sun, 21 Aug 2022 18:20:45 +0200 Subject: [PATCH 38/47] preSBT fixes --- api-reports/2_12.txt | 5 +++-- api-reports/2_13.txt | 5 +++-- dom/src/main/scala/org/scalajs/dom/File.scala | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/api-reports/2_12.txt b/api-reports/2_12.txt index 3056b93c3..a50d34418 100644 --- a/api-reports/2_12.txt +++ b/api-reports/2_12.txt @@ -1956,8 +1956,9 @@ File[JC] def webkitRelativePath: String FileList[JC] @JSBracketAccess def apply(index: Int): T FileList[JC] def item(index: Int): File FileList[JC] def length: Int -FileOptions[JT] var lastModified: js.UndefOr[Int] -FileOptions[JT] var `type`: js.UndefOr[String] +FilePropertyBag[JT] var endings: js.UndefOr[String] +FilePropertyBag[JT] var lastModified: js.UndefOr[Int] +FilePropertyBag[JT] var `type`: js.UndefOr[String] FileReader[JC] def abort(): Unit FileReader[JC] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit FileReader[JC] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit diff --git a/api-reports/2_13.txt b/api-reports/2_13.txt index 3056b93c3..a50d34418 100644 --- a/api-reports/2_13.txt +++ b/api-reports/2_13.txt @@ -1956,8 +1956,9 @@ File[JC] def webkitRelativePath: String FileList[JC] @JSBracketAccess def apply(index: Int): T FileList[JC] def item(index: Int): File FileList[JC] def length: Int -FileOptions[JT] var lastModified: js.UndefOr[Int] -FileOptions[JT] var `type`: js.UndefOr[String] +FilePropertyBag[JT] var endings: js.UndefOr[String] +FilePropertyBag[JT] var lastModified: js.UndefOr[Int] +FilePropertyBag[JT] var `type`: js.UndefOr[String] FileReader[JC] def abort(): Unit FileReader[JC] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit FileReader[JC] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit diff --git a/dom/src/main/scala/org/scalajs/dom/File.scala b/dom/src/main/scala/org/scalajs/dom/File.scala index 29faadb1e..6d6e1468c 100644 --- a/dom/src/main/scala/org/scalajs/dom/File.scala +++ b/dom/src/main/scala/org/scalajs/dom/File.scala @@ -34,4 +34,4 @@ class File(bits: js.Iterable[Any], name: String, options: FilePropertyBag) exten * A string containing the path of the file relative to the ancestor directory the user selected. */ def webkitRelativePath: String = js.native -} \ No newline at end of file +} From d0ef86075938a087501279279c453ca34ceb8493 Mon Sep 17 00:00:00 2001 From: zetashift Date: Sun, 21 Aug 2022 20:51:40 +0200 Subject: [PATCH 39/47] prePR commit --- api-reports/2_12.txt | 1 + api-reports/2_13.txt | 1 + dom/src/main/scala/org/scalajs/dom/Blob.scala | 2 +- dom/src/main/scala/org/scalajs/dom/File.scala | 3 ++- dom/src/main/scala/org/scalajs/dom/package.scala | 2 ++ 5 files changed, 7 insertions(+), 2 deletions(-) diff --git a/api-reports/2_12.txt b/api-reports/2_12.txt index a50d34418..778d68534 100644 --- a/api-reports/2_12.txt +++ b/api-reports/2_12.txt @@ -26930,6 +26930,7 @@ intl/NumberFormatOptions[SO] def apply(localeMatcher: js.UndefOr[String]?, style package[SO] type AlgorithmIdentifier = Algorithm | String package[SO] type BigInteger = js.typedarray.Uint8Array package[SO] type BodyInit = Blob | BufferSource | FormData | String | ReadableStream[Uint8Array] | URLSearchParams +package[SO] type BlobPart = BufferSource | Blob | String package[SO] type BufferSource = ArrayBufferView | ArrayBuffer package[SO] type ByteString = String package[SO] type ClientRect = DOMRect (@deprecated in 2.0.0) diff --git a/api-reports/2_13.txt b/api-reports/2_13.txt index a50d34418..778d68534 100644 --- a/api-reports/2_13.txt +++ b/api-reports/2_13.txt @@ -26930,6 +26930,7 @@ intl/NumberFormatOptions[SO] def apply(localeMatcher: js.UndefOr[String]?, style package[SO] type AlgorithmIdentifier = Algorithm | String package[SO] type BigInteger = js.typedarray.Uint8Array package[SO] type BodyInit = Blob | BufferSource | FormData | String | ReadableStream[Uint8Array] | URLSearchParams +package[SO] type BlobPart = BufferSource | Blob | String package[SO] type BufferSource = ArrayBufferView | ArrayBuffer package[SO] type ByteString = String package[SO] type ClientRect = DOMRect (@deprecated in 2.0.0) diff --git a/dom/src/main/scala/org/scalajs/dom/Blob.scala b/dom/src/main/scala/org/scalajs/dom/Blob.scala index 5690e3836..cd2156692 100644 --- a/dom/src/main/scala/org/scalajs/dom/Blob.scala +++ b/dom/src/main/scala/org/scalajs/dom/Blob.scala @@ -23,7 +23,7 @@ import scala.scalajs.js.typedarray.{ArrayBuffer, Uint8Array} */ @js.native @JSGlobal -class Blob(blobParts: js.Array[js.Any] = js.native, options: BlobPropertyBag = js.native) extends js.Object { +class Blob(blobParts: js.Iterable[BlobPart], options: BlobPropertyBag = js.native) extends js.Object { @deprecated("This method seems to have been added in error and not actually exist.", "1.2.0") def close(): Unit = js.native diff --git a/dom/src/main/scala/org/scalajs/dom/File.scala b/dom/src/main/scala/org/scalajs/dom/File.scala index 6d6e1468c..0e05ea166 100644 --- a/dom/src/main/scala/org/scalajs/dom/File.scala +++ b/dom/src/main/scala/org/scalajs/dom/File.scala @@ -19,7 +19,8 @@ import scala.scalajs.js.annotation._ */ @js.native @JSGlobal -class File(bits: js.Iterable[Any], name: String, options: FilePropertyBag) extends Blob { +class File(bits: js.Iterable[BlobPart], name: String, options: FilePropertyBag = js.native) + extends Blob(bits, options) { /** The File.lastModified read-only property provides the last modified date of the file as the number of milliseconds * since the Unix epoch (January 1, 1970 at midnight). Files without a known last modified date return the current diff --git a/dom/src/main/scala/org/scalajs/dom/package.scala b/dom/src/main/scala/org/scalajs/dom/package.scala index 96b116cad..a17cd5c33 100644 --- a/dom/src/main/scala/org/scalajs/dom/package.scala +++ b/dom/src/main/scala/org/scalajs/dom/package.scala @@ -112,4 +112,6 @@ package object dom { @js.native @JSGlobal("crypto") val webcrypto: Crypto = js.native + + type BlobPart = BufferSource | Blob | String } From 335d828d8145251b06d5e8bfa7799eb737c368de Mon Sep 17 00:00:00 2001 From: zetashift Date: Mon, 22 Aug 2022 17:22:29 +0200 Subject: [PATCH 40/47] Rebased and renamed name member in the constructor --- api-reports/2_12.txt | 3 ++- api-reports/2_13.txt | 3 ++- dom/src/main/scala/org/scalajs/dom/File.scala | 5 ++++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/api-reports/2_12.txt b/api-reports/2_12.txt index 778d68534..569be3567 100644 --- a/api-reports/2_12.txt +++ b/api-reports/2_12.txt @@ -1947,6 +1947,7 @@ FetchEventInit[JT] var scoped: js.UndefOr[Boolean] File[JC] def arrayBuffer(): js.Promise[ArrayBuffer] File[JC] def close(): Unit (@deprecated in 1.2.0) File[JC] def lastModified: Int +File[JC] def name: String File[JC] def size: Double File[JC] def slice(start: Double?, end: Double?, contentType: String?): Blob File[JC] def stream(): ReadableStream[Uint8Array] @@ -26929,8 +26930,8 @@ intl/NumberFormatOptions[JT] var useGrouping: js.UndefOr[Boolean] intl/NumberFormatOptions[SO] def apply(localeMatcher: js.UndefOr[String]?, style: js.UndefOr[String]?, currency: js.UndefOr[String]?, currencyDisplay: js.UndefOr[String]?, useGrouping: js.UndefOr[Boolean]?, minimumIntegerDigits: js.UndefOr[Double]?, minimumFractionDigits: js.UndefOr[Double]?, maximumFractionDigits: js.UndefOr[Double]?, minimumSignificantDigits: js.UndefOr[Double]?, maximumSignificantDigits: js.UndefOr[Double]?): NumberFormatOptions (@deprecated in 2.0.0) package[SO] type AlgorithmIdentifier = Algorithm | String package[SO] type BigInteger = js.typedarray.Uint8Array -package[SO] type BodyInit = Blob | BufferSource | FormData | String | ReadableStream[Uint8Array] | URLSearchParams package[SO] type BlobPart = BufferSource | Blob | String +package[SO] type BodyInit = Blob | BufferSource | FormData | String | ReadableStream[Uint8Array] | URLSearchParams package[SO] type BufferSource = ArrayBufferView | ArrayBuffer package[SO] type ByteString = String package[SO] type ClientRect = DOMRect (@deprecated in 2.0.0) diff --git a/api-reports/2_13.txt b/api-reports/2_13.txt index 778d68534..569be3567 100644 --- a/api-reports/2_13.txt +++ b/api-reports/2_13.txt @@ -1947,6 +1947,7 @@ FetchEventInit[JT] var scoped: js.UndefOr[Boolean] File[JC] def arrayBuffer(): js.Promise[ArrayBuffer] File[JC] def close(): Unit (@deprecated in 1.2.0) File[JC] def lastModified: Int +File[JC] def name: String File[JC] def size: Double File[JC] def slice(start: Double?, end: Double?, contentType: String?): Blob File[JC] def stream(): ReadableStream[Uint8Array] @@ -26929,8 +26930,8 @@ intl/NumberFormatOptions[JT] var useGrouping: js.UndefOr[Boolean] intl/NumberFormatOptions[SO] def apply(localeMatcher: js.UndefOr[String]?, style: js.UndefOr[String]?, currency: js.UndefOr[String]?, currencyDisplay: js.UndefOr[String]?, useGrouping: js.UndefOr[Boolean]?, minimumIntegerDigits: js.UndefOr[Double]?, minimumFractionDigits: js.UndefOr[Double]?, maximumFractionDigits: js.UndefOr[Double]?, minimumSignificantDigits: js.UndefOr[Double]?, maximumSignificantDigits: js.UndefOr[Double]?): NumberFormatOptions (@deprecated in 2.0.0) package[SO] type AlgorithmIdentifier = Algorithm | String package[SO] type BigInteger = js.typedarray.Uint8Array -package[SO] type BodyInit = Blob | BufferSource | FormData | String | ReadableStream[Uint8Array] | URLSearchParams package[SO] type BlobPart = BufferSource | Blob | String +package[SO] type BodyInit = Blob | BufferSource | FormData | String | ReadableStream[Uint8Array] | URLSearchParams package[SO] type BufferSource = ArrayBufferView | ArrayBuffer package[SO] type ByteString = String package[SO] type ClientRect = DOMRect (@deprecated in 2.0.0) diff --git a/dom/src/main/scala/org/scalajs/dom/File.scala b/dom/src/main/scala/org/scalajs/dom/File.scala index 0e05ea166..00deea1c6 100644 --- a/dom/src/main/scala/org/scalajs/dom/File.scala +++ b/dom/src/main/scala/org/scalajs/dom/File.scala @@ -19,9 +19,12 @@ import scala.scalajs.js.annotation._ */ @js.native @JSGlobal -class File(bits: js.Iterable[BlobPart], name: String, options: FilePropertyBag = js.native) +class File(bits: js.Iterable[BlobPart], _name: String, options: FilePropertyBag = js.native) extends Blob(bits, options) { + /** Returns the name of the file. For security reasons, the path is excluded from this property. */ + def name: String = js.native + /** The File.lastModified read-only property provides the last modified date of the file as the number of milliseconds * since the Unix epoch (January 1, 1970 at midnight). Files without a known last modified date return the current * date. From a9451fd909a943c5c2b130531f3b41bc6e2b4f2b Mon Sep 17 00:00:00 2001 From: zetashift Date: Mon, 22 Aug 2022 17:53:57 +0200 Subject: [PATCH 41/47] Double type for lastModified --- api-reports/2_12.txt | 4 ++-- api-reports/2_13.txt | 4 ++-- dom/src/main/scala/org/scalajs/dom/File.scala | 2 +- dom/src/main/scala/org/scalajs/dom/FilePropertyBag.scala | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/api-reports/2_12.txt b/api-reports/2_12.txt index 569be3567..425ce42e7 100644 --- a/api-reports/2_12.txt +++ b/api-reports/2_12.txt @@ -1946,7 +1946,7 @@ FetchEventInit[JT] var request: js.UndefOr[Request] FetchEventInit[JT] var scoped: js.UndefOr[Boolean] File[JC] def arrayBuffer(): js.Promise[ArrayBuffer] File[JC] def close(): Unit (@deprecated in 1.2.0) -File[JC] def lastModified: Int +File[JC] def lastModified: Double File[JC] def name: String File[JC] def size: Double File[JC] def slice(start: Double?, end: Double?, contentType: String?): Blob @@ -1958,7 +1958,7 @@ FileList[JC] @JSBracketAccess def apply(index: Int): T FileList[JC] def item(index: Int): File FileList[JC] def length: Int FilePropertyBag[JT] var endings: js.UndefOr[String] -FilePropertyBag[JT] var lastModified: js.UndefOr[Int] +FilePropertyBag[JT] var lastModified: js.UndefOr[Double] FilePropertyBag[JT] var `type`: js.UndefOr[String] FileReader[JC] def abort(): Unit FileReader[JC] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit diff --git a/api-reports/2_13.txt b/api-reports/2_13.txt index 569be3567..425ce42e7 100644 --- a/api-reports/2_13.txt +++ b/api-reports/2_13.txt @@ -1946,7 +1946,7 @@ FetchEventInit[JT] var request: js.UndefOr[Request] FetchEventInit[JT] var scoped: js.UndefOr[Boolean] File[JC] def arrayBuffer(): js.Promise[ArrayBuffer] File[JC] def close(): Unit (@deprecated in 1.2.0) -File[JC] def lastModified: Int +File[JC] def lastModified: Double File[JC] def name: String File[JC] def size: Double File[JC] def slice(start: Double?, end: Double?, contentType: String?): Blob @@ -1958,7 +1958,7 @@ FileList[JC] @JSBracketAccess def apply(index: Int): T FileList[JC] def item(index: Int): File FileList[JC] def length: Int FilePropertyBag[JT] var endings: js.UndefOr[String] -FilePropertyBag[JT] var lastModified: js.UndefOr[Int] +FilePropertyBag[JT] var lastModified: js.UndefOr[Double] FilePropertyBag[JT] var `type`: js.UndefOr[String] FileReader[JC] def abort(): Unit FileReader[JC] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit diff --git a/dom/src/main/scala/org/scalajs/dom/File.scala b/dom/src/main/scala/org/scalajs/dom/File.scala index 00deea1c6..f405b5758 100644 --- a/dom/src/main/scala/org/scalajs/dom/File.scala +++ b/dom/src/main/scala/org/scalajs/dom/File.scala @@ -29,7 +29,7 @@ class File(bits: js.Iterable[BlobPart], _name: String, options: FilePropertyBag * since the Unix epoch (January 1, 1970 at midnight). Files without a known last modified date return the current * date. */ - def lastModified: Int = js.native + def lastModified: Double = js.native /** The File.webkitRelativePath is a read-only property that contains a string which specifies the file's path * relative to the directory selected by the user in an element with its webkitdirectory attribute set. diff --git a/dom/src/main/scala/org/scalajs/dom/FilePropertyBag.scala b/dom/src/main/scala/org/scalajs/dom/FilePropertyBag.scala index 344c28b87..b7ee4e25b 100644 --- a/dom/src/main/scala/org/scalajs/dom/FilePropertyBag.scala +++ b/dom/src/main/scala/org/scalajs/dom/FilePropertyBag.scala @@ -4,5 +4,5 @@ import scala.scalajs.js /** An options object containing optional attributes for the file. */ trait FilePropertyBag extends BlobPropertyBag { - var lastModified: js.UndefOr[Int] = js.undefined + var lastModified: js.UndefOr[Double] = js.undefined } From 997e36f1f3ba0bbdbdf60eccd5a9cdd4761f4057 Mon Sep 17 00:00:00 2001 From: zetashift Date: Mon, 22 Aug 2022 18:13:28 +0200 Subject: [PATCH 42/47] EndingType enum for endings --- api-reports/2_12.txt | 7 +++++-- api-reports/2_13.txt | 7 +++++-- .../scala-2/org/scalajs/dom/EndingType.scala | 16 ++++++++++++++++ .../scala-3/org/scalajs/dom/EndingType.scala | 14 ++++++++++++++ .../scala/org/scalajs/dom/BlobPropertyBag.scala | 2 +- 5 files changed, 41 insertions(+), 5 deletions(-) create mode 100644 dom/src/main/scala-2/org/scalajs/dom/EndingType.scala create mode 100644 dom/src/main/scala-3/org/scalajs/dom/EndingType.scala diff --git a/api-reports/2_12.txt b/api-reports/2_12.txt index 425ce42e7..9a4935c94 100644 --- a/api-reports/2_12.txt +++ b/api-reports/2_12.txt @@ -373,7 +373,7 @@ Blob[JC] def stream(): ReadableStream[Uint8Array] Blob[JC] def text(): js.Promise[String] Blob[JC] def `type`: String Blob[JO] -BlobPropertyBag[JT] var endings: js.UndefOr[String] +BlobPropertyBag[JT] var endings: js.UndefOr[EndingType] BlobPropertyBag[JT] var `type`: js.UndefOr[String] BlobPropertyBag[SO] def apply(`type`: js.UndefOr[String]?): BlobPropertyBag (@deprecated in 2.0.0) Body[JT] def arrayBuffer(): js.Promise[ArrayBuffer] @@ -1801,6 +1801,9 @@ ElementDefinitionOptions[JT] var `extends`: js.UndefOr[String] EndOfStreamError[JT] EndOfStreamError[SO] val decode: EndOfStreamError EndOfStreamError[SO] val network: EndOfStreamError +EndingType[JT] +EndingType[SO] val native: EndingType +EndingType[SO] val transparent: EndingType ErrorEvent[JT] def bubbles: Boolean ErrorEvent[JT] def cancelBubble: Boolean ErrorEvent[JT] def cancelable: Boolean @@ -1957,7 +1960,7 @@ File[JC] def webkitRelativePath: String FileList[JC] @JSBracketAccess def apply(index: Int): T FileList[JC] def item(index: Int): File FileList[JC] def length: Int -FilePropertyBag[JT] var endings: js.UndefOr[String] +FilePropertyBag[JT] var endings: js.UndefOr[EndingType] FilePropertyBag[JT] var lastModified: js.UndefOr[Double] FilePropertyBag[JT] var `type`: js.UndefOr[String] FileReader[JC] def abort(): Unit diff --git a/api-reports/2_13.txt b/api-reports/2_13.txt index 425ce42e7..9a4935c94 100644 --- a/api-reports/2_13.txt +++ b/api-reports/2_13.txt @@ -373,7 +373,7 @@ Blob[JC] def stream(): ReadableStream[Uint8Array] Blob[JC] def text(): js.Promise[String] Blob[JC] def `type`: String Blob[JO] -BlobPropertyBag[JT] var endings: js.UndefOr[String] +BlobPropertyBag[JT] var endings: js.UndefOr[EndingType] BlobPropertyBag[JT] var `type`: js.UndefOr[String] BlobPropertyBag[SO] def apply(`type`: js.UndefOr[String]?): BlobPropertyBag (@deprecated in 2.0.0) Body[JT] def arrayBuffer(): js.Promise[ArrayBuffer] @@ -1801,6 +1801,9 @@ ElementDefinitionOptions[JT] var `extends`: js.UndefOr[String] EndOfStreamError[JT] EndOfStreamError[SO] val decode: EndOfStreamError EndOfStreamError[SO] val network: EndOfStreamError +EndingType[JT] +EndingType[SO] val native: EndingType +EndingType[SO] val transparent: EndingType ErrorEvent[JT] def bubbles: Boolean ErrorEvent[JT] def cancelBubble: Boolean ErrorEvent[JT] def cancelable: Boolean @@ -1957,7 +1960,7 @@ File[JC] def webkitRelativePath: String FileList[JC] @JSBracketAccess def apply(index: Int): T FileList[JC] def item(index: Int): File FileList[JC] def length: Int -FilePropertyBag[JT] var endings: js.UndefOr[String] +FilePropertyBag[JT] var endings: js.UndefOr[EndingType] FilePropertyBag[JT] var lastModified: js.UndefOr[Double] FilePropertyBag[JT] var `type`: js.UndefOr[String] FileReader[JC] def abort(): Unit diff --git a/dom/src/main/scala-2/org/scalajs/dom/EndingType.scala b/dom/src/main/scala-2/org/scalajs/dom/EndingType.scala new file mode 100644 index 000000000..fbb249a3c --- /dev/null +++ b/dom/src/main/scala-2/org/scalajs/dom/EndingType.scala @@ -0,0 +1,16 @@ +package org.scalajs.dom + +import scala.scalajs.js + +/** + * Endings enum for [[https://w3c.github.io/FileAPI/#enumdef-endingtype]] + * If set to "native", line endings will be converted to native in any USVString elements in blobParts + */ +@js.native +sealed trait EndingType extends js.Any + +object EndingType { + val transparent: EndingType = "transparent".asInstanceOf[EndingType] + val native: EndingType = "native".asInstanceOf[EndingType] + +} diff --git a/dom/src/main/scala-3/org/scalajs/dom/EndingType.scala b/dom/src/main/scala-3/org/scalajs/dom/EndingType.scala new file mode 100644 index 000000000..01295a3cd --- /dev/null +++ b/dom/src/main/scala-3/org/scalajs/dom/EndingType.scala @@ -0,0 +1,14 @@ +package org.scalajs.dom + +import scala.scalajs.js + +/** + * Endings enum for [[https://w3c.github.io/FileAPI/#enumdef-endingtype]] + * If set to "native", line endings will be converted to native in any USVString elements in blobParts + */ +opaque type EndingType <: String = String + +object EndingType { + val transparent: EndingType = "transparent" + val native: EndingType = "native" +} diff --git a/dom/src/main/scala/org/scalajs/dom/BlobPropertyBag.scala b/dom/src/main/scala/org/scalajs/dom/BlobPropertyBag.scala index f59526533..924bbffac 100644 --- a/dom/src/main/scala/org/scalajs/dom/BlobPropertyBag.scala +++ b/dom/src/main/scala/org/scalajs/dom/BlobPropertyBag.scala @@ -11,7 +11,7 @@ import scala.scalajs.js trait BlobPropertyBag extends js.Object { var `type`: js.UndefOr[String] = js.undefined - var endings: js.UndefOr[String] = js.undefined + var endings: js.UndefOr[EndingType] = js.undefined } @deprecated("all members of BlobPropertyBag are deprecated", "2.0.0") From b318a27ee1bc1d2a666355f934a0d0150d9a7c82 Mon Sep 17 00:00:00 2001 From: Arman Bilge Date: Mon, 22 Aug 2022 23:19:36 +0000 Subject: [PATCH 43/47] Update to Scala.js 1.7.1 --- project/plugins.sbt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/plugins.sbt b/project/plugins.sbt index 97ed02f5f..336ed68d8 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -5,5 +5,5 @@ addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.10.1") addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.11.0") addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.10") addSbtPlugin("com.lihaoyi" % "scalatex-sbt-plugin" % "0.3.11") -addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.5.1") +addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.7.1") addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.6") From 511cdfe52bb7e038f4e18c9b832d7e15cf6c8b5b Mon Sep 17 00:00:00 2001 From: Arman Bilge Date: Mon, 22 Aug 2022 23:21:29 +0000 Subject: [PATCH 44/47] Update to Scala 3.1.3 --- .github/workflows/ci.yml | 4 ++-- project/Dependencies.scala | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ab24612de..8e57512ec 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: strategy: fail-fast: false matrix: - scalaversion: ["2.11.12", "2.12.14", "2.13.6", "3.0.2"] + scalaversion: ["2.11.12", "2.12.14", "2.13.6", "3.1.3"] steps: - uses: actions/checkout@v3 @@ -28,7 +28,7 @@ jobs: run: sbt -DCI=1 "++${{ matrix.scalaversion }}" dom/scalafmtCheck - name: Validate api report - if: matrix.scalaversion != '2.11.12' && matrix.scalaversion != '3.0.2' + if: matrix.scalaversion != '2.11.12' && matrix.scalaversion != '3.1.3' run: ./api-reports/validate "${{ matrix.scalaversion }}" readme: diff --git a/project/Dependencies.scala b/project/Dependencies.scala index 341b6890f..a376c4bf1 100644 --- a/project/Dependencies.scala +++ b/project/Dependencies.scala @@ -8,7 +8,7 @@ object Dependencies { val scala211 = "2.11.12" val scala212 = "2.12.14" val scala213 = "2.13.6" - val scala3 = "3.0.2" + val scala3 = "3.1.3" } object Dep { From 963f5eb2c382c5637ba8d6e4bf6851d672160ff3 Mon Sep 17 00:00:00 2001 From: Arman Bilge Date: Mon, 22 Aug 2022 23:30:10 +0000 Subject: [PATCH 45/47] Add .jvmopts --- .jvmopts | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .jvmopts diff --git a/.jvmopts b/.jvmopts new file mode 100644 index 000000000..3f0aee119 --- /dev/null +++ b/.jvmopts @@ -0,0 +1,3 @@ +-Xms1G +-Xmx4G +-XX:+UseG1GC From cdf7d8f33b01b4371641880aac81dceddb093226 Mon Sep 17 00:00:00 2001 From: Arman Bilge Date: Wed, 31 Aug 2022 02:50:48 +0000 Subject: [PATCH 46/47] Update to 2.12.15 --- .github/workflows/ci.yml | 2 +- project/Dependencies.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8e57512ec..402a90131 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: strategy: fail-fast: false matrix: - scalaversion: ["2.11.12", "2.12.14", "2.13.6", "3.1.3"] + scalaversion: ["2.11.12", "2.12.15", "2.13.6", "3.1.3"] steps: - uses: actions/checkout@v3 diff --git a/project/Dependencies.scala b/project/Dependencies.scala index a376c4bf1..9c549a088 100644 --- a/project/Dependencies.scala +++ b/project/Dependencies.scala @@ -6,7 +6,7 @@ object Dependencies { object Ver { val scala211 = "2.11.12" - val scala212 = "2.12.14" + val scala212 = "2.12.15" val scala213 = "2.13.6" val scala3 = "3.1.3" } From 3a8504712f98f6b75d957586b95104ec200a2c4c Mon Sep 17 00:00:00 2001 From: Arman Bilge Date: Wed, 31 Aug 2022 02:57:22 +0000 Subject: [PATCH 47/47] Mathc semanticdb version to scalafix --- scalafix.sbt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scalafix.sbt b/scalafix.sbt index c14eb48d0..c3048b42f 100644 --- a/scalafix.sbt +++ b/scalafix.sbt @@ -1,5 +1,5 @@ ThisBuild / semanticdbEnabled := true -ThisBuild / semanticdbVersion := "4.4.27" +ThisBuild / semanticdbVersion := scalafixSemanticdb.revision ThisBuild / scalafixScalaBinaryVersion := CrossVersion.binaryScalaVersion(scalaVersion.value) ThisBuild / scalacOptions ++= {