diff --git a/LICENSE b/LICENSE index fc3f6508c..fe122becb 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Documentation marked "MDN" is thanks to Mozilla Contributors +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/ diff --git a/src/main/scala/org/scalajs/dom/AbortController.scala b/src/main/scala/org/scalajs/dom/AbortController.scala index 462d9f715..dd3d22d37 100644 --- a/src/main/scala/org/scalajs/dom/AbortController.scala +++ b/src/main/scala/org/scalajs/dom/AbortController.scala @@ -5,45 +5,33 @@ import scala.scalajs.js.annotation.JSGlobal /** The AbortController interface represents a controller object that allows you to abort one or more DOM requests as * and when desired. - * - * MDN */ @js.native @JSGlobal class AbortController() extends js.Object { /** Returns a AbortSignal object instance, which can be used to communicate with/abort a DOM request - * - * MDN */ val signal: AbortSignal = js.native /** Aborts a DOM request before it has completed. This is able to abort fetch requests, consumption of any response * Body, and streams. - * - * MDN */ def abort(): Unit = js.native } /** The AbortSignal interface represents a signal object that allows you to communicate with a DOM request (such as a * Fetch) and abort it if required via an AbortController object. - * - * MDN */ @js.native trait AbortSignal extends EventTarget { /** A Boolean that indicates whether the request(s) the signal is communicating with is/are aborted (true) or not * (false). - * - * MDN */ def aborted: Boolean = js.native /** Invoked when an abort event fires, i.e. when the DOM request(s) the signal is communicating with is/are aborted. - * - * MDN */ var onabort: js.Function0[Any] = js.native } diff --git a/src/main/scala/org/scalajs/dom/CSSTypes.scala b/src/main/scala/org/scalajs/dom/CSSTypes.scala index 324be346f..264f97974 100644 --- a/src/main/scala/org/scalajs/dom/CSSTypes.scala +++ b/src/main/scala/org/scalajs/dom/CSSTypes.scala @@ -1,5 +1,5 @@ -/** Documentation marked "MDN" 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. +/** 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 @@ -15,15 +15,11 @@ object CSS extends js.Object { /** The CSS.supports() method returns a boolean value indicating if the browser supports a given CSS feature, or not. * Allows to test the support of a pair property-value. - * - * MDN */ def supports(propertyName: String, value: String): Boolean = js.native /** The CSS.supports() method returns a boolean value indicating if the browser supports a given CSS feature, or not. * Takes one parameter matching the condition of @supports. - * - * MDN */ def supports(supportCondition: String): Boolean = js.native @@ -31,8 +27,6 @@ object CSS extends js.Object { /** A CSSStyleDeclaration is an interface to the declaration block returned by the style property of a cssRule in a * stylesheet, when the rule is a CSSStyleRule. - * - * MDN */ @js.native @JSGlobal @@ -247,8 +241,6 @@ class CSSStyleDeclaration extends js.Object { } /** An object implementing the CSSStyleSheet interface represents a single CSS style sheet. - * - * MDN */ @js.native @JSGlobal @@ -262,14 +254,10 @@ class CSSStyleSheet extends StyleSheet { /** If this style sheet is imported into the document using an `@import` rule, the ownerRule property will return that * CSSImportRule, otherwise it returns null. - * - * MDN */ var ownerRule: CSSRule = js.native /** Returns a CSSRuleList of the CSS rules in the style sheet. - * - * MDN */ var cssRules: CSSRuleList = js.native var id: String = js.native @@ -279,16 +267,12 @@ class CSSStyleSheet extends StyleSheet { def addPageRule(bstrSelector: String, bstrStyle: String, lIndex: Int = js.native): Int = js.native /** The CSSStyleSheet.insertRule() method inserts a new style rule into the current style sheet. - * - * MDN */ def insertRule(rule: String, index: Int = js.native): Int = js.native def removeRule(lIndex: Int): Unit = js.native /** Deletes a rule from the style sheet. - * - * MDN */ def deleteRule(index: Int = js.native): Unit = js.native @@ -299,39 +283,29 @@ class CSSStyleSheet extends StyleSheet { /** CSSStyleRule represents a single CSS style rule. It implements the CSSRule interface with a type value of 1 * (CSSRule.STYLE_RULE). - * - * MDN */ @js.native @JSGlobal class CSSStyleRule extends CSSRule { /** Gets/sets the textual representation of the selector for this rule, e.g. "h1,h2". - * - * MDN */ var selectorText: String = js.native var readOnly: Boolean = js.native /** Returns the CSSStyleDeclaration object for the rule. - * - * MDN */ val style: CSSStyleDeclaration = js.native } /** CSSMediaRule is an object representing a single CSS `@media` rule. It implements the CSSConditionRule interface, and * therefore the CSSGroupingRule and the CSSRule interface with a type value of 4 (CSSRule.MEDIA_RULE). - * - * MDN */ @js.native @JSGlobal class CSSMediaRule extends CSSRule { /** Specifies a MediaList representing the intended destination medium for style information. - * - * MDN */ var media: MediaList = js.native var cssRules: CSSRuleList = js.native @@ -343,23 +317,17 @@ class CSSMediaRule extends CSSRule { /** The CSSNamespaceRule interface describes an object representing a single CSS `@@namespace` at-rule. It implements * the CSSRule interface, with a type value of 10 (CSSRule.NAMESPACE_RULE). - * - * MDN */ @js.native @JSGlobal class CSSNamespaceRule extends CSSRule { /** Returns a DOMString containing the text of the URI of the given namespace. - * - * MDN */ var namespaceURI: String = js.native /** Returns a DOMString with the name of the prefix associated to this namespace. If there is no such prefix, returns  * null. - * - * MDN */ var prefix: String = js.native } @@ -374,8 +342,6 @@ class CSSImportRule extends CSSRule { /** An object implementing the CSSRule DOM interface represents a single CSS at-rule. References to a * CSSRule-implementing object may be obtained by looking at a CSS style sheet's cssRules list. - * - * MDN */ @js.native @JSGlobal @@ -383,21 +349,15 @@ class CSSRule extends js.Object { /** cssText returns the actual text of the style rule. To be able to set a stylesheet rule dynamically, see Using * dynamic styling information. - * - * MDN */ var cssText: String = js.native /** parentStyleSheet returns the stylesheet object in which the current rule is defined. - * - * MDN */ var parentStyleSheet: CSSStyleSheet = js.native /** Returns the containing rule, otherwise null. E.g. if this rule is a style rule inside an `@media` block, the * parent rule would be that CSSMediaRule. - * - * MDN */ var parentRule: CSSRule = js.native var `type`: Int = js.native @@ -435,8 +395,6 @@ class CSSFontFaceRule extends CSSRule { /** CSSPageRule is an object representing a single CSS `@page` rule. It implements the CSSRule interface with a type * value of 6 (CSSRule.PAGE_RULE). - * - * MDN */ @js.native @JSGlobal @@ -444,22 +402,16 @@ class CSSPageRule extends CSSRule { var pseudoClass: String = js.native /** Represents the text of the page selector associated with the at-rule. - * - * MDN */ var selectorText: String = js.native var selector: String = js.native /** Returns the declaration block associated with the at-rule. - * - * MDN */ var style: CSSStyleDeclaration = js.native } /** A CSSRuleList is an array-like object containing an ordered collection of CSSRule objects. - * - * MDN */ @js.native @JSGlobal @@ -470,44 +422,32 @@ class CSSRuleList private[this] () extends DOMList[CSSRule] { /** The CSSKeyframesRule interface describes an object representing a complete set of keyframes for a CSS animation. It * corresponds to the contains of a whole `@@keyframes` at-rule. It implements the CSSRule interface with a type value * of 7 (CSSRule.KEYFRAMES_RULE). - * - * MDN */ @js.native @JSGlobal class CSSKeyframesRule extends CSSRule { /** Represents the name of the animation, used by the animation-name property. - * - * MDN */ var name: String = js.native /** Returns a CSSRuleList of the CSS rules in the media rule. - * - * MDN */ var cssRules: CSSRuleList = js.native /** Returns a keyframe rule corresponding to the given key. The key is a DOMString containing an index of the keyframe * o be returned, resolving to a number between 0 and 1. If no such keyframe exists, findRule returns null. - * - * MDN */ def findRule(rule: String): CSSKeyframeRule = js.native /** Deletes a keyframe rule from the current CSSKeyframesRule. The parameter is the index of the keyframe to be * deleted, expressed as a DOMString resolving as a number between 0 and 1. - * - * MDN */ def deleteRule(rule: String): Unit = js.native /** Inserts a new keyframe rule into the current CSSKeyframesRule. The parameter is a DOMString containing a keyframe * in the same format as an entry of a `@keyframes` at-rule. If it contains more than one keyframe rule, a * DOMException with a SYNTAX_ERR is thrown. - * - * MDN */ def appendRule(rule: String): Unit = js.native } @@ -515,8 +455,6 @@ class CSSKeyframesRule extends CSSRule { /** The CSSKeyframeRule interface describes an object representing a set of style for a given keyframe. It corresponds * to the contains of a single keyframe of a `@@keyframes` at-rule. It implements the CSSRule interface with a type * value of 8 (CSSRule.KEYFRAME_RULE). - * - * MDN */ @js.native @JSGlobal @@ -524,14 +462,10 @@ class CSSKeyframeRule extends CSSRule { /** Represents the key of the keyframe, like '10%', '75%'. The from keyword maps to '0%' and the to keyword maps to * '100%'. - * - * MDN */ var keyText: String = js.native /** Returns a CSSStyleDeclaration of the CSS style associated with the keyfrom. - * - * MDN */ var style: CSSStyleDeclaration = js.native } diff --git a/src/main/scala/org/scalajs/dom/Fetch.scala b/src/main/scala/org/scalajs/dom/Fetch.scala index 0310d3580..9686b9148 100644 --- a/src/main/scala/org/scalajs/dom/Fetch.scala +++ b/src/main/scala/org/scalajs/dom/Fetch.scala @@ -17,7 +17,7 @@ object Fetch extends js.Object { def fetch(info: RequestInfo, init: RequestInit = null): js.Promise[Response] = js.native } -/** The Request interface of the Fetch API represents a resource request. MDN +/** The Request interface of the Fetch API represents a resource request. * * see [[https://fetch.spec.whatwg.org/#request-class ¶6.3 Request Class]] in whatwg spec * @@ -173,12 +173,12 @@ trait ResponseInit extends js.Object { @js.native trait Body extends js.Object { - /** MDN: Contains a Boolean that indicates whether the body has been read. - */ + /* Contains a Boolean that indicates whether the body has been read. + */ def bodyUsed: Boolean = js.native - /** MDN: Takes a Response stream and reads it to completion. It returns a promise that resolves with an ArrayBuffer. - */ + /* Takes a Response stream and reads it to completion. It returns a promise that resolves with an ArrayBuffer. + */ def arrayBuffer(): js.Promise[ArrayBuffer] = js.native /** Takes a Response stream and reads it to completion. It returns a promise that resolves with a Blob. @@ -216,8 +216,6 @@ trait Body extends js.Object { * * You can retrieve a Headers object via the Request.headers and Response.headers properties, and create a new Headers * object using the Headers.Headers() constructor. - * - * MDN */ @js.native @JSGlobal diff --git a/src/main/scala/org/scalajs/dom/HTMLTypes.scala b/src/main/scala/org/scalajs/dom/HTMLTypes.scala index b5014a740..2e4933271 100644 --- a/src/main/scala/org/scalajs/dom/HTMLTypes.scala +++ b/src/main/scala/org/scalajs/dom/HTMLTypes.scala @@ -1,5 +1,5 @@ -/** Documentation marked "MDN" 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. +/** 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 @@ -16,168 +16,116 @@ import scala.scalajs.js.| abstract class HTMLDocument extends Document { /** Returns the title of the current document. - * - * MDN */ var title: String = js.native /** Gets/sets the domain portion of the origin of the current document, as used by the same origin policy. - * - * MDN */ var domain: String = js.native /** The Document.location property returns a Location object, which contains information about the URL of the document * and provides methods for changing that URL and load another URL. - * - * MDN */ var location: Location = js.native /** Returns a string containing the URL of the current document. - * - * MDN */ def URL: String = js.native /** Returns the URI of the page that linked to this page. - * - * MDN */ def referrer: String = js.native /** Returns a semicolon-separated list of the cookies for that document or sets a single cookie. - * - * MDN */ var cookie: String = js.native /** The Document.dir property is a DOMString representing the directionality of the text of the document, whether left * to right (default) or right to left. Possible values are 'rtl', right to left, and 'ltr', left to right. - * - * MDN */ var dir: String = js.native /** Can be used to make any document editable, for example in a <iframe />: - * - * MDN */ var designMode: String = js.native /** Indicates whether the document is rendered in Quirks mode or Strict mode. - * - * MDN */ def compatMode: String = js.native /** Returns "loading" while the document is loading, "interactive" once it is finished parsing but still loading * sub-resources, and "complete" once it has loaded. - * - * MDN */ def readyState: String = js.native var uniqueID: String = js.native /** In browsers returns the window object associated with the document or null if none available. - * - * MDN */ def defaultView: Window = js.native /** Returns the <head> element of the current document. If there are more than one <head> elements, the * first one is returned. - * - * MDN */ def head: HTMLHeadElement = js.native /** Returns the <body> or <frameset> node of the current document, or null if no such element exists. - * - * MDN */ var body: HTMLElement = js.native /** Returns the currently focused element, that is, the element that will get keystroke events if the user types any. * This attribute is read only. - * - * MDN */ def activeElement: Element = js.native /** Returns a list of the embedded <embed> elements within the current document. - * - * MDN */ def embeds: HTMLCollection = js.native /** forms returns a collection (an HTMLCollection) of the form elements within the current document. - * - * MDN */ def forms: HTMLCollection = js.native /** The links property returns a collection of all AREA elements and anchor elements in a document with a value for * the href attribute. - * - * MDN */ def links: HTMLCollection = js.native /** anchors returns a list of all of the anchors in the document. - * - * MDN */ def anchors: HTMLCollection = js.native /** Returns an HTMLCollection object containing one or more HTMLEmbedElements or null which represent the * <embed> elements in the current document. - * - * MDN */ def plugins: HTMLCollection = js.native /** document.images returns a collection of the images in the current HTML document. - * - * MDN */ def images: HTMLCollection = js.native /** Returns the current value of the current range for a formatting command. - * - * MDN */ def queryCommandValue(commandId: String): String = js.native /** Returns true if the formatting command is in an indeterminate state on the current range. - * - * MDN */ def queryCommandIndeterm(commandId: String): Boolean = js.native /** This method never did anything but throw an exception, and was removed in Gecko 14.0 (Firefox 14.0 / Thunderbird * 14.0 / SeaMonkey 2.11). - * - * MDN */ def queryCommandText(commandId: String): String = js.native /** Reports whether or not the specified editor query command is supported by the browser. - * - * MDN */ def queryCommandSupported(commandId: String): Boolean = js.native /** Returns true if the formatting command can be executed on the current range. - * - * MDN */ def queryCommandEnabled(commandId: String): Boolean = js.native /** Returns true if the formatting command has been executed on the current range. - * - * MDN */ def queryCommandState(commandId: String): Boolean = js.native @@ -185,40 +133,28 @@ abstract class HTMLDocument extends Document { * allows one to run commands to manipulate the contents of the editable region. Most commands affect the document's * selection (bold, italics, etc), while others insert new elements (adding a link) or affect an entire line * (indenting). When using contentEditable, calling execCommand will affect the currently active editable element. - * - * MDN */ def execCommand(commandId: String, showUI: Boolean = js.native, value: js.Any = js.native): Boolean = js.native /** This method never did anything and always threw an exception, so it was removed in Gecko 14.0 (Firefox 14.0 / * Thunderbird 14.0 / SeaMonkey 2.11). - * - * MDN */ def execCommandShowHelp(commandId: String): Boolean = js.native /** Writes a string of text to a document stream opened by document.open(). - * - * MDN */ def write(content: String*): Unit = js.native /** Writes a string of text followed by a newline character to a document. - * - * MDN */ def writeln(content: String*): Unit = js.native /** The document.open() method opens a document for writing. - * - * MDN */ def open(url: String = js.native, name: String = js.native, features: String = js.native, replace: Boolean = js.native): js.Dynamic = js.native /** The document.close() method finishes writing to a document, opened with document.open(). - * - * MDN */ def close(): Unit = js.native @@ -230,15 +166,11 @@ abstract class HTMLDocument extends Document { /** Returns a Boolean value indicating whether the document or any element inside the document has focus. This method * can be used to determine whether the active element in a document has focus. - * - * MDN */ def hasFocus(): Boolean = js.native /** The DOM getSelection() method is available on the Window and Document interfaces. See window.getSelection() for * details. - * - * MDN */ def getSelection(): Selection = js.native @@ -255,20 +187,14 @@ abstract class HTMLDocument extends Document { var onload: js.Function1[Event, _] = js.native /** The onchange property sets and returns the event handler for the change event. - * - * MDN */ var onchange: js.Function1[Event, _] = js.native /** Returns the event handling code for the readystatechange event. - * - * MDN */ var onreadystatechange: js.Function1[Event, _] = js.native /** The submit event is raised when the user clicks a submit button in a form - * - * MDN */ var onsubmit: js.Function1[Event, _] = js.native @@ -289,22 +215,16 @@ abstract class HTMLDocument extends Document { var oninput: js.Function1[Event, _] = js.native /** The keydown event is raised when the user presses a keyboard key. - * - * MDN */ var onkeydown: js.Function1[KeyboardEvent, _] = js.native /** The keyup event is raised when the user releases a key that's been pressed. - * - * MDN */ var onkeyup: js.Function1[KeyboardEvent, _] = js.native var onkeypress: js.Function1[KeyboardEvent, _] = js.native /** The onclick property returns the onClick event handler code on the current element. - * - * MDN */ var onclick: js.Function1[MouseEvent, _] = js.native @@ -313,14 +233,10 @@ abstract class HTMLDocument extends Document { var onmouseup: js.Function1[MouseEvent, _] = js.native /** The mouseover event is raised when the user moves the mouse over a particular element. - * - * MDN */ var onmouseover: js.Function1[MouseEvent, _] = js.native /** The mousedown event is raised when the user presses the mouse button. - * - * MDN */ var onmousedown: js.Function1[MouseEvent, _] = js.native @@ -328,8 +244,6 @@ abstract class HTMLDocument extends Document { /** The mouseout event is raised when the mouse leaves an element (e.g, when the mouse moves off of an image in the * web page, the mouseout event is raised for that image element). - * - * MDN */ var onmouseout: js.Function1[MouseEvent, _] = js.native @@ -340,16 +254,12 @@ abstract class HTMLDocument extends Document { var onscroll: js.Function1[UIEvent, _] = js.native /** Called periodically throughout the drag and drop operation. - * - * MDN */ var ondrag: js.Function1[DragEvent, _] = js.native /** Called for an element when the mouse pointer first moves over the element while something is being dragged. This * might be used to change the appearance of the element to indicate to the user that the object can be dropped on * it. - * - * MDN */ var ondragenter: js.Function1[DragEvent, _] = js.native @@ -357,21 +267,15 @@ abstract class HTMLDocument extends Document { /** This event handler is called for an element when something is being dragged over top of it. If the object can be * dropped on the element, the drag session should be notified. - * - * MDN */ var ondragover: js.Function1[DragEvent, _] = js.native /** An alias for ondraggesture; this is the HTML 5 spec name for the event and may be used in HTML or XUL; however, * for backward compatibility with older versions of Firefox, you may wish to continue using ondraggesture in XUL. - * - * MDN */ var ondragstart: js.Function1[DragEvent, _] = js.native /** Called when the drag operation is finished. - * - * MDN */ var ondragend: js.Function1[DragEvent, _] = js.native @@ -430,67 +334,47 @@ abstract class HTMLDocument extends Document { var onstoragecommit: js.Function1[StorageEvent, _] = js.native /** fired when a pointing device is moved into an element's hit test boundaries. - * - * MDN */ var onpointerover: js.Function1[PointerEvent, _] = js.native /** fired when a pointing device is moved into the hit test boundaries of an element or one of its descendants, * including as a result of a pointerdown event from a device that does not support hover (see pointerdown). - * - * MDN */ var onpointerenter: js.Function1[PointerEvent, _] = js.native /** fired when a pointer becomes active. - * - * MDN */ var onpointerdown: js.Function1[PointerEvent, _] = js.native /** fired when a pointer changes coordinates. - * - * MDN */ var onpointermove: js.Function1[PointerEvent, _] = js.native /** fired when a pointer is no longer active. - * - * MDN */ var onpointerup: js.Function1[PointerEvent, _] = js.native /** a browser fires this event if it concludes the pointer will no longer be able to generate events (for example the * related device is deactived). - * - * MDN */ var onpointercancel: js.Function1[PointerEvent, _] = js.native /** fired for several reasons including: pointing device is moved out of the hit test boundaries of an element; firing * the pointerup event for a device that does not support hover (see pointerup); after firing the pointercancel event * (see pointercancel); when a pen stylus leaves the hover range detectable by the digitizer. - * - * MDN */ var onpointerout: js.Function1[PointerEvent, _] = js.native /** fired when a pointing device is moved out of the hit test boundaries of an element. For pen devices, this event is * fired when the stylus leaves the hover range detectable by the digitizer. - * - * MDN */ var onpointerleave: js.Function1[PointerEvent, _] = js.native /** fired when an element receives pointer capture. - * - * MDN */ var gotpointercapture: js.Function1[PointerEvent, _] = js.native /** Fired after pointer capture is released for a pointer. - * - * MDN */ var lostpointercapture: js.Function1[PointerEvent, _] = js.native } @@ -498,8 +382,6 @@ abstract class HTMLDocument extends Document { /** The HTMLTableElement interface provides special properties and methods (beyond the regular HTMLElement object * interface it also has available to it by inheritance) for manipulating the layout and presentation of tables in an * HTML document. - * - * MDN */ @js.native @JSGlobal @@ -510,8 +392,6 @@ abstract class HTMLTableElement extends HTMLElement { * name is thrown. If a correct object is given, it is inserted in the tree immediately before the first element that * is neither a <caption>, a <colgroup>, nor a <thead>, or as the last child if there is no such * element, and the first <tfoot> that is a child of this element is removed from the tree, if any. - * - * MDN */ var tFoot: HTMLTableSectionElement = js.native @@ -519,8 +399,6 @@ abstract class HTMLTableElement extends HTMLElement { * the element, or a child or one of its <thead>, <tbody> and <tfoot> children. The rows members of * a <thead> appear first, in tree order, and those members of a <tbody> last, also in tree order. The * HTMLCollection is live and is automatically updated when the HTMLTableElement changes. - * - * MDN */ def rows: HTMLCollection = js.native @@ -528,15 +406,11 @@ abstract class HTMLTableElement extends HTMLElement { * none is found. When set, if the object doesn't represent a <caption>, a DOMException with the * HierarchyRequestError name is thrown. If a correct object is given, it is inserted in the tree as the first child * of this element and the first <caption> that is a child of this element is removed from the tree, if any. - * - * MDN */ var caption: HTMLTableCaptionElement = js.native /** Returns a live HTMLCollection containing all the <tbody> of the element. The HTMLCollection is live and is * automatically updated when the HTMLTableElement changes. - * - * MDN */ def tBodies: HTMLCollection = js.native @@ -545,24 +419,18 @@ abstract class HTMLTableElement extends HTMLElement { * name is thrown. If a correct object is given, it is inserted in the tree immediately before the first element that * is neither a <caption>, nor a <colgroup>, or as the last child if there is no such element, and the * first <thead> that is a child of this element is removed from the tree, if any. - * - * MDN */ var tHead: HTMLTableSectionElement = js.native /** Removes the row corresponding to the index given in parameter. If the index value is * -1 the last row is removed; if it smaller than -1 or greater than the amount of rows in the collection, a * DOMException with the value IndexSizeError is raised. - * - * MDN */ def deleteRow(index: Int): Unit = js.native def createTBody(): HTMLElement = js.native /** Removes the first <caption> that is a child of the element. - * - * MDN */ def deleteCaption(): Unit = js.native @@ -570,35 +438,25 @@ abstract class HTMLTableElement extends HTMLElement { * before the <tr> element at the givent index position. If necessary a <tbody> is created. If the index * is -1, the new row is appended to the collection. If the index is smaller than -1 or greater than the number of * rows in the collection, a DOMException with the value IndexSizeError is raised. - * - * MDN */ def insertRow(index: Int = js.native): HTMLElement = js.native /** Removes the first <tfoot> that is a child of the element. - * - * MDN */ def deleteTFoot(): Unit = js.native /** Returns an HTMLElement representing the first <thead> that is a child of the element. If none is found, a * new one is created and inserted in the tree immediately before the first element that is neither a * <caption>, nor a <colgroup>, or as the last child if there is no such element. - * - * MDN */ def createTHead(): HTMLElement = js.native /** Removes the first <thead> that is a child of the element. - * - * MDN */ def deleteTHead(): Unit = js.native /** Returns an HTMLElement representing the first <caption> that is a child of the element. If none is found, a * new one is created and inserted in the tree as the first child of the <table> element. - * - * MDN */ def createCaption(): HTMLElement = js.native @@ -607,16 +465,12 @@ abstract class HTMLTableElement extends HTMLElement { /** Returns an HTMLElement representing the first <tfoot> that is a child of the element. If none is found, a * new one is created and inserted in the tree immediately before the first element that is neither a * <caption>, a <colgroup>, nor a <thead>, or as the last child if there is no such element. - * - * MDN */ def createTFoot(): HTMLElement = js.native } /** The HTMLBaseElement interface contains the base URI for a document. This object inherits all of the properties and * methods as described in the HTMLElement interface. - * - * MDN */ @js.native @JSGlobal @@ -624,22 +478,16 @@ abstract class HTMLBaseElement extends HTMLElement { /** Is a DOMString that reflects the target HTML attribute, containing a default target browsing context or frame for * elements that do not have a target reference specified. - * - * MDN */ var target: String = js.native /** Is a DOMString that reflects the href HTML attribute, containing a base URL for relative URLs in the document. - * - * MDN */ var href: String = js.native } /** The HTMLParagraphElement interface provides special properties (beyond those of the regular HTMLElement object * interface it inherits) for manipulating <p> elements. - * - * MDN */ @js.native @JSGlobal @@ -647,97 +495,69 @@ abstract class HTMLParagraphElement extends HTMLElement /** The HTMLOListElement interface provides special properties (beyond those defined on the regular HTMLElement * interface it also has available to it by inheritance) for manipulating ordered list elements. - * - * MDN */ @js.native @JSGlobal abstract class HTMLOListElement extends HTMLElement { /** Is a long value reflecting the start and defining the value of the first number of the first element of the list. - * - * MDN */ var start: Int = js.native } /** DOM select elements share all of the properties and methods of other HTML elements described in the element section. * They also have the specialized interface HTMLSelectElement (or HTML 4 HTMLSelectElement). - * - * MDN */ @js.native @JSGlobal abstract class HTMLSelectElement extends HTMLElement { /** The set of <option> elements contained by this element. Read only. - * - * MDN */ val options: js.Array[HTMLOptionElement] = js.native /** The value of this form control, that is, of the first selected option. - * - * MDN */ var value: String = js.native /** The form that this element is associated with. If this element is a descendant of a form element, then this * attribute is the ID of that form element. If the element is not a descendant of a form element, then: HTML5 The * attribute can be the ID of any form element in the same document. HTML 4 The attribute is null. Read only. - * - * MDN */ def form: HTMLFormElement = js.native /** Reflects the name HTML attribute, containing the name of this control used by servers and DOM search functions. - * - * MDN */ var name: String = js.native /** Reflects the size HTML attribute, which contains the number of visible items in the control. The default is 1, * HTML5 unless multiple is true, in which case it is 4. - * - * MDN */ var size: Int = js.native /** The number of <option> elements in this select element. - * - * MDN */ var length: Int = js.native /** The index of the first selected <option> element. - * - * MDN */ var selectedIndex: Int = js.native /** Reflects the multiple HTML attribute, whichindicates whether multiple items can be selected. - * - * MDN */ var multiple: Boolean = js.native def `type`: String = js.native /** Reflects the disabled HTML attribute, which indicates whether the control is disabled. If it is disabled, it does * not accept clicks. - * - * MDN */ var disabled: Boolean = js.native /** Removes the element at the specified index from the options collection for this select element. - * - * MDN */ def remove(index: Int = js.native): Unit = js.native /** Adds an element to the collection of option elements for this select element. - * - * MDN */ def add(element: HTMLElement, before: js.Any = js.native): Unit = js.native @@ -754,36 +574,26 @@ abstract class HTMLSelectElement extends HTMLElement { /** A localized message that describes the validation constraints that the control does not satisfy (if any). This * attribute is the empty string if the control is not a candidate for constraint validation (willValidate is false), * or it satisfies its constraints. Read only. HTML5 - * - * MDN */ def validationMessage: String = js.native /** Reflects the autofocus HTML attribute, which indicates whether the control should have input focus when the page * loads, unless the user overrides it, for example by typing in a different control. Only one form-associated * element in a document can have this attribute specified. HTML5 - * - * MDN */ var autofocus: Boolean = js.native /** The validity states that this control is in. Read only. HTML5 - * - * MDN */ def validity: ValidityState = js.native /** Reflects the required HTML attribute, which indicates whether the user is required to select a value before * submitting the form. HTML5 - * - * MDN */ var required: Boolean = js.native /** Indicates whether the button is a candidate for constraint validation. It is false if any conditions bar it from * constraint validation. Read only. HTML5 - * - * MDN */ def willValidate: Boolean = js.native @@ -794,28 +604,20 @@ abstract class HTMLSelectElement extends HTMLElement { /** The HTMLMetaElement interface contains descriptive metadata about a document. Itt inherits all of the properties and * methods described in the HTMLElement interface. - * - * MDN */ @js.native @JSGlobal abstract class HTMLMetaElement extends HTMLElement { /** Gets or sets the name of an HTTP response header to define for a document. - * - * MDN */ var httpEquiv: String = js.native /** Gets or sets the name of a meta-data property to define for a document. - * - * MDN */ var name: String = js.native /** Gets or sets the value of meta-data property. - * - * MDN */ var content: String = js.native var url: String = js.native @@ -826,55 +628,39 @@ abstract class HTMLMetaElement extends HTMLElement { /** The HTMLLinkElement interface represents reference information for external resources and the relationship of those * resources to a document and vice-versa. This object inherits all of the properties and methods of the HTMLElement * interface. - * - * MDN */ @js.native @JSGlobal abstract class HTMLLinkElement extends HTMLElement with LinkStyle { /** Gets or sets the forward relationship of the linked resource from the document to the resource. - * - * MDN */ var rel: String = js.native /** Gets or sets the name of the target frame to which the resource applies. - * - * MDN */ var target: String = js.native /** Gets or sets the URI for the target resource. - * - * MDN */ var href: String = js.native /** Gets or sets a list of one or more media formats to which the resource applies. - * - * MDN */ var media: String = js.native /** Gets or sets the reverse relationship of the linked resource from the resource to the document. - * - * MDN */ var rev: String = js.native var `type`: String = js.native /** Gets or sets the language code for the linked resource. - * - * MDN */ var hreflang: String = js.native } /** The HTMLTableCaptionElement interface special properties (beyond the regular HTMLElement interface it also has * available to it by inheritance) for manipulating table caption elements. - * - * MDN */ @js.native @JSGlobal @@ -882,8 +668,6 @@ abstract class HTMLTableCaptionElement extends HTMLElement /** The HTMLOptionElement interface represents <option> elements and inherits all classes and methods of the * HTMLElement interface. - * - * MDN */ @js.native @JSGlobal @@ -891,55 +675,39 @@ abstract class HTMLOptionElement extends HTMLElement { /** The position of the option within the list of options it belongs to, in tree-order. If the option is not part of a * list of options, like when it is part of the <datalist> element, the value is 0. - * - * MDN */ def index: Int = js.native /** Contains the initial value of the selected HTML attribute, indicating whether the option is selected by default or * not. - * - * MDN */ var defaultSelected: Boolean = js.native /** Reflects the value of the value HTML attribute, if it exists; otherwise reflects value of the Node.textContent * property. - * - * MDN */ var value: String = js.native /** Contains the text content of the element. - * - * MDN */ var text: String = js.native /** If the option is a descendent of a <select> element, then this property has the same value as the form * property of the corresponding HTMLSelectElement object; otherwise, it is null. - * - * MDN */ def form: HTMLFormElement = js.native /** Reflects the value of the label HTML attribute, which provides a label for the option. If this attribute isn't * specifically set, reading it returns the element's text content. - * - * MDN */ var label: String = js.native /** Indicates whether the option is currently selected. - * - * MDN */ var selected: Boolean = js.native /** Reflects the value of the disabled HTML attribute, which indicates that the option is unavailable to be selected. * An option can also be disabled if it is a child of an <optgroup> element that is disabled. - * - * MDN */ var disabled: Boolean = js.native @@ -948,8 +716,6 @@ abstract class HTMLOptionElement extends HTMLElement { /** The HTMLMapElement interface provides special properties and methods (beyond those of the regular object HTMLElement * interface it also has available to it by inheritance) for manipulating the layout and presentation of map elements. - * - * MDN */ @js.native @JSGlobal @@ -957,8 +723,6 @@ abstract class HTMLMapElement extends HTMLElement { /** Is a DOMString representing the <map> element for referencing it other context. If the id attribute is set, * this must have the same value; and it cannot be null or empty. - * - * MDN */ var name: String = js.native } @@ -971,8 +735,6 @@ abstract class HTMLMenuElement extends HTMLElement { /** HTMLCollection is an interface representing a generic collection of elements (in document order) and offers methods * and properties for traversing the list. - * - * MDN */ @js.native @JSGlobal @@ -982,74 +744,52 @@ class HTMLCollection private[this] () extends DOMList[Element] { /** Returns the specific node whose ID or, as a fallback, name matches the string specified by name. Matching by name * is only done as a last resort, only in HTML, and only if the referenced element supports the name attribute. * Returns null if no node exists by the given name. - * - * MDN */ def namedItem(name: String): Element = js.native } /** The HTMLImageElement interface provides special properties and methods (beyond the regular HTMLElement interface it * also has available to it by inheritance) for manipulating the layout and presentation of <img> elements. - * - * MDN */ @js.native @JSGlobal abstract class HTMLImageElement extends HTMLElement { /** Reflects the width HTML attribute, indicating the rendered width of the image in CSS pixels. - * - * MDN */ var width: Int = js.native /** Intrinsic height of the image in CSS pixels, if it is available; otherwise, 0. - * - * MDN */ var naturalHeight: Int = js.native /** Reflects the alt HTML attribute, indicating fallback context for the image. - * - * MDN */ var alt: String = js.native /** Reflects the src HTML attribute, containing the URL of the image. - * - * MDN */ var src: String = js.native /** Reflects the usemap HTML attribute, containing a partial URL of a map element. - * - * MDN */ var useMap: String = js.native /** Intrinsic width of the image in CSS pixels, if it is available; otherwise, 0. - * - * MDN */ var naturalWidth: Int = js.native /** Reflects the height HTML attribute, indicating the rendered height of the image in CSS pixels. - * - * MDN */ var height: Int = js.native var href: String = js.native /** Reflects the ismap HTML attribute, indicating that the image is part of a server-side image map. - * - * MDN */ var isMap: Boolean = js.native /** True if the browser has fetched the image, and it is in a supported image type that was decoded without errors. - * - * MDN */ def complete: Boolean = js.native @@ -1059,101 +799,71 @@ abstract class HTMLImageElement extends HTMLElement { /** The HTMLAreaElement interface provides special properties and methods (beyond those of the regular object * HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of * area elements. - * - * MDN */ @js.native @JSGlobal abstract class HTMLAreaElement extends HTMLElement { /** Is a DOMString containing the protocol component (including trailing colon ':'), of the referenced URL. - * - * MDN */ var protocol: String = js.native /** Is a DOMString containing tThe search element (including leading question mark '?'), if any, of the referenced * URL. - * - * MDN */ var search: String = js.native /** Is a DOMString that reflects the alt HTML attribute, containing alternative text for the element. - * - * MDN */ var alt: String = js.native /** Is a DOMString that reflects the coords HTML attribute, containing coordinates to define the hot-spot region. - * - * MDN */ var coords: String = js.native /** Is a DOMString containing the hostname in the referenced URL. - * - * MDN */ var hostname: String = js.native /** Is a DOMString containing the port component, if any, of the referenced URL. - * - * MDN */ var port: String = js.native /** Is a DOMString containing the path name component, if any, of the referenced URL. - * - * MDN */ var pathname: String = js.native /** Is a DOMString containing the hostname and port (if it's not the default port) in the referenced URL. - * - * MDN */ var host: String = js.native /** Is a DOMString containing the fragment identifier (including the leading hash mark (#)), if any, in the referenced * URL. - * - * MDN */ var hash: String = js.native /** Is a DOMString that reflects the target HTML attribute, indicating the browsing context in which to open the * linked resource. - * - * MDN */ var target: String = js.native /** Is a DOMString containing that reflects the href HTML attribute, containing a valid URL of a linked resource. - * - * MDN */ var href: String = js.native /** Is a DOMString teflects the shape HTML attribute, indicating the shape of the hot-spot, limited to known values. - * - * MDN */ var shape: String = js.native } /** The HTMLButtonElement interface provides properties and methods (beyond the <button> object interface it also * has available to them by inheritance) for manipulating the layout and presentation of button elements. - * - * MDN */ @js.native @JSGlobal abstract class HTMLButtonElement extends HTMLElement { /** The current form control value of the button. - * - * MDN */ var value: String = js.native var status: js.Any = js.native @@ -1161,78 +871,56 @@ abstract class HTMLButtonElement extends HTMLElement { /** The form that this button is associated with. If the button is a descendant of a form element, then this attribute * is the ID of that form element. If the button is not a descendant of a form element, then the attribute can be the * ID of any form element in the same document it is related to, or the null value if none matches. - * - * MDN */ def form: HTMLFormElement = js.native /** The name of the object when submitted with a form. HTML5 If specified, it must not be the empty string. - * - * MDN */ var name: String = js.native var `type`: String = js.native /** The control is disabled, meaning that it does not accept any clicks. - * - * MDN */ var disabled: Boolean = js.native /** A localized message that describes the validation constraints that the control does not satisfy (if any). This * attribute is the empty string if the control is not a candidate for constraint validation (willValidate is false), * or it satisfies its constraints. - * - * MDN */ def validationMessage: String = js.native /** A name or keyword indicating where to display the response that is received after submitting the form. If * specified, this attribute overrides the target attribute of the <form> element that owns this element. - * - * MDN */ var formTarget: String = js.native /** Indicates whether the button is a candidate for constraint validation. It is false if any conditions bar it from * constraint validation. - * - * MDN */ def willValidate: Boolean = js.native /** The URI of a resource that processes information submitted by the button. If specified, this attribute overrides * the action attribute of the <form> element that owns this element. - * - * MDN */ var formAction: String = js.native /** The control should have input focus when the page loads, unless the user overrides it, for example by typing in a * different control. Only one form-associated element in a document can have this attribute specified. - * - * MDN */ var autofocus: Boolean = js.native /** The validity states that this button is in. - * - * MDN */ def validity: ValidityState = js.native /** Indicates that the form is not to be validated when it is submitted. If specified, this attribute overrides the * enctype attribute of the <form> element that owns this element. - * - * MDN */ var formNoValidate: String = js.native var formEnctype: String = js.native /** The HTTP method that the browser uses to submit the form. If specified, this attribute overrides the method * attribute of the <form> element that owns this element. - * - * MDN */ var formMethod: String = js.native @@ -1243,22 +931,16 @@ abstract class HTMLButtonElement extends HTMLElement { /** The HTMLSourceElement interface provides special properties (beyond the regular HTMLElement object interface it also * has available to it by inheritance) for manipulating <source> elements. - * - * MDN */ @js.native @JSGlobal abstract class HTMLSourceElement extends HTMLElement { /** Reflects the src HTML attribute, containing the URL for the media resource. - * - * MDN */ var src: String = js.native /** Reflects the media HTML attribute, containing the intended type of the media resource. - * - * MDN */ var media: String = js.native var `type`: String = js.native @@ -1267,8 +949,6 @@ abstract class HTMLSourceElement extends HTMLElement { /** DOM Script objects expose the HTMLScriptElement (or HTML 4 HTMLScriptElement) interface, which provides special * properties and methods (beyond the regular element object interface they also have available to them by inheritance) * for manipulating the layout and presentation of <script> elements. - * - * MDN */ @js.native @JSGlobal @@ -1280,20 +960,14 @@ abstract class HTMLScriptElement extends HTMLElement { * act the same way as the textContent IDL attribute. Note: When inserted using the document.write() method, * <script> elements execute (typically synchronously), but when inserted using innerHTML and outerHTML * attributes, they do not execute at all. - * - * MDN */ var text: String = js.native /** Represents gives the address of the external script resource to use. It reflects the src attribute. - * - * MDN */ var src: String = js.native /** Represents the character encoding of the external script resource. It reflects the charset attribute. - * - * MDN */ var charset: String = js.native var `type`: String = js.native @@ -1312,8 +986,6 @@ abstract class HTMLScriptElement extends HTMLElement { * rules for the document.write() method, the handling of scripting, etc. The defer attribute may be specified even * if the async attribute is specified, to cause legacy Web browsers that only support defer (and not async) to fall * back to the defer behavior instead of the synchronous blocking behavior that is the default. - * - * MDN */ var async: Boolean = js.native @@ -1322,8 +994,6 @@ abstract class HTMLScriptElement extends HTMLElement { /** The HTMLTableRowElement interface provides special properties and methods (beyond the HTMLElement interface it also * has available to it by inheritance) for manipulating the layout and presentation of rows in an HTML table. - * - * MDN */ @js.native @JSGlobal @@ -1331,15 +1001,11 @@ abstract class HTMLTableRowElement extends HTMLElement with HTMLTableAlignment { /** Returns a long value which gives the logical position of the row within the entire table. If the row is not part * of a table, returns -1. - * - * MDN */ def rowIndex: Int = js.native /** Returns a live HTMLCollection containing the cells in the row. The HTMLCollection is live and is automatically * updated when cells are added or removed. - * - * MDN */ def cells: HTMLCollection = js.native @@ -1347,8 +1013,6 @@ abstract class HTMLTableRowElement extends HTMLElement with HTMLTableAlignment { /** Returns a long value which gives the logical position of the row within the table section it belongs to. If the * row is not part of a section, returns -1. - * - * MDN */ def sectionRowIndex: Int = js.native var borderColor: js.Any = js.native @@ -1358,24 +1022,18 @@ abstract class HTMLTableRowElement extends HTMLElement with HTMLTableAlignment { /** Removes the cell at the given position in the row. If the given position is greater (or equal as it starts at * zero) than the amount of cells in the row, or is smaller than 0, it raises a DOMException with the IndexSizeError * value. - * - * MDN */ def deleteCell(index: Int = js.native): Unit = js.native /** Inserts a new cell just before the given position in the row. If the given position is not given or is -1, it * appends the cell to the row. If the given position is greater (or equal as it starts at zero) than the amount of * cells in the row, or is smaller than -1, it raises a DOMException with the IndexSizeError value. - * - * MDN */ def insertCell(index: Int = js.native): HTMLElement = js.native } /** The HTMLHtmlElement interface serves as the root node for a given HTML document. This object inherits the properties * and methods described in the HTMLElement interface. - * - * MDN */ @js.native @JSGlobal @@ -1384,8 +1042,6 @@ abstract class HTMLHtmlElement extends HTMLElement /** The HTMLQuoteElement interface provides special properties and methods (beyond the regular HTMLElement interface it * also has available to it by inheritance) for manipulating quoting elements, like <blockquote> and <q>, * but not the <cite> element. - * - * MDN */ @js.native @JSGlobal @@ -1393,16 +1049,12 @@ abstract class HTMLQuoteElement extends HTMLElement { var dateTime: String = js.native /** Reflects the cite HTML attribute, containing a URL for the source of the quotation. - * - * MDN */ var cite: String = js.native } /** The HTMLDListElement interface provides special properties (beyond those of the regular HTMLElement interface it * also has available to it by inheritance) for manipulating definition list elements. - * - * MDN */ @js.native @JSGlobal @@ -1410,16 +1062,12 @@ abstract class HTMLDListElement extends HTMLElement /** The HTMLLabelElement interface gives access to properties specific to <label> elements. It inherits from * HTMLElement. - * - * MDN */ @js.native @JSGlobal abstract class HTMLLabelElement extends HTMLElement { /** The ID of the labeled control. Reflects the for attribute. - * - * MDN */ var htmlFor: String = js.native @@ -1428,8 +1076,6 @@ abstract class HTMLLabelElement extends HTMLElement { /** The HTMLLegendElement is an interface allowing to access properties of the <legend> elements. It inherits * properties and methods from the HTMLElement interface. - * - * MDN */ @js.native @JSGlobal @@ -1441,8 +1087,6 @@ abstract class HTMLLegendElement extends HTMLElement { /** The HTMLLIElement interface expose specific properties and methods (beyond those defined by regular HTMLElement * interface it also has available to it by inheritance) for manipulating list elements. - * - * MDN */ @js.native @JSGlobal @@ -1451,55 +1095,39 @@ abstract class HTMLLIElement extends HTMLElement { /** Indicates the ordinal position of the list element inside a given <ol>. It reflects the value attribute of * the HTML <li> element, and can be smaller than 0. If the <li> element is not a child of an <ol> * element, the property has no meaning. - * - * MDN */ var value: Int = js.native } /** The HTMLIFrameElement interface provides special properties and methods (beyond those of the HTMLElement interface * it also has available to it by inheritance) for manipulating the layout and presentation of inline frame elements. - * - * MDN */ @js.native @JSGlobal abstract class HTMLIFrameElement extends HTMLElement with GetSVGDocument { /** Reflects the width HTML attribute, indicating the width of the frame. - * - * MDN */ var width: String = js.native /** The window proxy for the nested browsing context. - * - * MDN */ def contentWindow: Window = js.native /** Reflects the src HTML attribute, containing the address of the content to be embedded. - * - * MDN */ var src: String = js.native /** Reflects the name HTML attribute, containing a name by which to refer to the frame. - * - * MDN */ var name: String = js.native /** Reflects the height HTML attribute, indicating the height of the frame. - * - * MDN */ var height: String = js.native var border: String = js.native /** The active document in the inline frame's nested browsing context. - * - * MDN */ def contentDocument: Document = js.native @@ -1507,16 +1135,12 @@ abstract class HTMLIFrameElement extends HTMLElement with GetSVGDocument { var onload: js.Function1[Event, _] = js.native /** Reflects the sandbox HTML attribute, indicating extra restrictions on the behavior of the nested content. - * - * MDN */ var sandbox: DOMSettableTokenList = js.native } /** The HTMLBodyElement interface provides special properties (beyond those of the regular HTMLElement interface they * also inherit) for manipulating body elements. - * - * MDN */ @js.native @JSGlobal @@ -1524,86 +1148,60 @@ abstract class HTMLBodyElement extends HTMLElement { var scroll: String = js.native /** Reflects the ononline HTML attribute value for a function to call when network communication is restored. - * - * MDN */ var ononline: js.Function1[Event, _] = js.native /** Reflects the onmessage HTML attribute value for a function to call when the document receives a message. - * - * MDN */ var onmessage: js.Function1[MessageEvent, _] = js.native /** Exposes the window.onerror event handler to call when the document fails to load properly. Note: This handler is * triggered when the event reaches the window, not the body element. Use addEventListener() to attach an event * listener to the body element. - * - * MDN */ var onerror: js.Function1[Event, _] = js.native /** Reflects the onresize HTML attribute value for a function to call when the document has been resized. - * - * MDN */ var onresize: js.Function1[UIEvent, _] = js.native /** Reflects the onafterprint HTML attribute value for a function to call after the user has printed the document. - * - * MDN */ var onafterprint: js.Function1[Event, _] = js.native /** Reflects the onbeforeprint HTML attribute value for a function to call when the user has requested printing the * document. - * - * MDN */ var onbeforeprint: js.Function1[Event, _] = js.native /** Reflects the onoffline HTML attribute value for a function to call when network communication fails. - * - * MDN */ var onoffline: js.Function1[Event, _] = js.native /** Reflects the onunload HTML attribute value for a function to call when when the document is going away. - * - * MDN */ var onunload: js.Function1[Event, _] = js.native /** Reflects the onhashchange HTML attribute value for a function to call when the fragment identifier in the address * of the document changes. - * - * MDN */ var onhashchange: js.Function1[Event, _] = js.native /** Exposes the window.onload event handler to call when the window gains focus. Note: This handler is triggered when * the event reaches the window, not the body element. Use addEventListener() to attach an event listener to the body * element. - * - * MDN */ var onload: js.Function1[Event, _] = js.native /** Reflects the onbeforeunload HTML attribute value for a function to call when the document is about to be unloaded. - * - * MDN */ var onbeforeunload: js.Function1[BeforeUnloadEvent, _] = js.native /** Reflects the onpopstate HTML attribute value for a function to call when the storage area has changed. - * - * MDN */ var onstorage: js.Function1[StorageEvent, _] = js.native /** Reflects the onpopstate HTML attribute value for a function to call when the user has navigated session history. - * - * MDN */ var onpopstate: js.Function1[PopStateEvent, _] = js.native } @@ -1611,8 +1209,6 @@ abstract class HTMLBodyElement extends HTMLElement { /** The HTMLTableSectionElement interface provides special properties and methods (beyond the HTMLElement interface it * also has available to it by inheritance) for manipulating the layout and presentation of sections, that is headers, * footers and bodies, in an HTML table. - * - * MDN */ @js.native @JSGlobal @@ -1620,16 +1216,12 @@ abstract class HTMLTableSectionElement extends HTMLElement with HTMLTableAlignme /** Returns a live HTMLCollection containing the rows in the section. The HTMLCollection is live and is automatically * updated when rows are added or removed. - * - * MDN */ def rows: HTMLCollection = js.native /** Removes the cell at the given position in the section. If the given position is greater (or equal as it starts at * zero) than the amount of rows in the section, or is smaller than 0, it raises a DOMException with the * IndexSizeError value. - * - * MDN */ def deleteRow(index: Int = js.native): Unit = js.native @@ -1640,8 +1232,6 @@ abstract class HTMLTableSectionElement extends HTMLElement with HTMLTableAlignme /** The HTMLInputElement interface provides special properties and methods (beyond the regular HTMLElement interface it * also has available to it by inheritance) for manipulating the layout and presentation of input elements. - * - * MDN */ @js.native @JSGlobal @@ -1649,8 +1239,6 @@ abstract class HTMLInputElement extends HTMLElement { /** Reflects the width HTML attribute, which defines the width of the image displayed for the button, if the value of * type is image. - * - * MDN */ var width: String = js.native var status: Boolean = js.native @@ -1659,107 +1247,75 @@ abstract class HTMLInputElement extends HTMLElement { * HTML5 this can be the id attribute of any <form> element in the same document. Even if the attribute is set * on <input>, this property will be null, if it isn't the id of a <form> element. HTML 4 this must be * null. - * - * MDN */ def form: HTMLFormElement = js.native /** The index of the beginning of selected text. - * - * MDN */ var selectionStart: Int = js.native /** Indicates that a checkbox is neither on nor off. - * - * MDN */ var indeterminate: Boolean = js.native /** Reflects the readonly HTML attribute, indicating that the user cannot modify the value of the control. HTML5This * is ignored if the value of the type attribute is hidden, range, color, checkbox, radio, file, or a button type. - * - * MDN */ var readOnly: Boolean = js.native /** Reflects the size HTML attribute, containing size of the control. This value is in pixels unless the value of type * is text or password, in which case, it is an integer number of characters. HTML5 Applies only when type is set to * text, search, tel, url, email, or password; otherwise it is ignored. - * - * MDN */ var size: Int = js.native /** The index of the end of selected text. - * - * MDN */ var selectionEnd: Int = js.native /** Reflects the accept HTML attribute, containing comma-separated list of file types accepted by the server when type * is file. - * - * MDN */ var accept: String = js.native /** Reflects the alt HTML attribute, containing alternative text to use when type is image. - * - * MDN */ var alt: String = js.native /** The default state of a radio button or checkbox as originally specified in HTML that created this object. - * - * MDN */ var defaultChecked: Boolean = js.native /** Current value in the control. - * - * MDN */ var value: String = js.native /** Reflects the src HTML attribute, which specifies a URI for the location of an image to display on the graphical * submit button, if the value of type is image; otherwise it is ignored. - * - * MDN */ var src: String = js.native /** Reflects the name HTML attribute, containing a name that identifies the element when submitting the form. - * - * MDN */ var name: String = js.native /** Reflects the height HTML attribute, which defines the height of the image displayed for the button, if the value * of type is image. - * - * MDN */ var height: String = js.native /** The current state of the element when type is checkbox or radio. - * - * MDN */ var checked: Boolean = js.native /** Reflects the disabled HTML attribute, indicating that the control is not available for interaction. The input * values will not be submitted with the form. - * - * MDN */ var disabled: Boolean = js.native /** Reflects the maxlength HTML attribute, containing the maximum length of text (in Unicode code points) that the * value can be changed to. The constraint is evaluated only when the value is changed Note: If you set maxLength to * a negative value programmatically, an exception will be thrown. - * - * MDN */ var maxLength: Int = js.native @@ -1769,8 +1325,6 @@ abstract class HTMLInputElement extends HTMLElement { var `type`: String = js.native /** The default value as originally specified in HTML that created this object. - * - * MDN */ var defaultValue: String = js.native @@ -1778,53 +1332,39 @@ abstract class HTMLInputElement extends HTMLElement { * "forward" or "backward" to establish the direction in which selection was set, or "none" if the direction is * unknown or not relevant. The default is "none". Specifying a selectionDirection parameter sets the value of the * selectionDirection property. - * - * MDN */ def setSelectionRange(start: Int, end: Int): Unit = js.native /** Selects the input text in the element, and focuses it so the user can subsequently replace the whole entry. - * - * MDN */ def select(): Unit = js.native /** A localized message that describes the validation constraints that the control does not satisfy (if any). This is * the empty string if the control is not a candidate for constraint validation (willvalidate is false), or it * satisfies its constraints. - * - * MDN */ def validationMessage: String = js.native var files: FileList = js.native /** Reflects the max HTML attribute, containing the maximum (numeric or date-time) value for this item, which must not * be less than its minimum (min attribute) value. - * - * MDN */ var max: String = js.native /** Reflects the formtarget HTML attribute, containing a name or keyword indicating where to display the response that * is received after submitting the form. If specified, this attribute overrides the target attribute of the * <form> element that owns this element. - * - * MDN */ var formTarget: String = js.native /** Indicates whether the element is a candidate for constraint validation. It is false if any conditions bar it from * constraint validation. - * - * MDN */ def willValidate: Boolean = js.native /** Reflects the step HTML attribute, which works with min and max to limit the increments at which a numeric or * date-time value can be set. It can be the string any or a positive floating point number. If this is not set to * any, the control accepts only values at multiples of the step value greater than the minimum. - * - * MDN */ var step: String = js.native @@ -1832,52 +1372,38 @@ abstract class HTMLInputElement extends HTMLElement { * loads, unless the user overrides it, for example by typing in a different control. Only one form element in a * document can have the autofocus attribute. It cannot be applied if the type attribute is set to hidden (that is, * you cannot automatically set focus to a hidden control). - * - * MDN */ var autofocus: Boolean = js.native /** Reflects the required HTML attribute, indicating that the user must fill in a value before submitting a form. - * - * MDN */ var required: Boolean = js.native /** Reflects the formenctype HTML attribute, containing the type of content that is used to submit the form to the * server. If specified, this attribute overrides the enctype attribute of the <form> element that owns this * element. - * - * MDN */ var formEnctype: String = js.native /** The value of the element, interpreted as one of the following in order: a time value a number null if conversion * is not possible - * - * MDN */ var valueAsNumber: Double = js.native /** Reflects the placeholder HTML attribute, containing a hint to the user of what can be entered in the control. The * placeholder text must not contain carriage returns or line-feeds. This attribute applies when the value of the * type attribute is text, search, tel, url or email; otherwise it is ignored. - * - * MDN */ var placeholder: String = js.native /** Reflects the formmethod HTML attribute, containing the HTTP method that the browser uses to submit the form. If * specified, this attribute overrides the method attribute of the <form> element that owns this element. - * - * MDN */ var formMethod: String = js.native /** Identifies a list of pre-defined options to suggest to the user. The value must be the id of a <datalist> * element in the same document. The browser displays only options that are valid values for this input element. This * attribute is ignored when the type attribute's value is hidden, checkbox, radio, file, or a button type. - * - * MDN */ var list: HTMLElement = js.native @@ -1887,23 +1413,17 @@ abstract class HTMLInputElement extends HTMLElement { * field for every use, or the document provides its own auto-completion method; the browser does not automatically * complete the entry. on: The browser can automatically complete the value based on values that the user has entered * during previous uses. - * - * MDN */ var autocomplete: String = js.native /** Reflects the min HTML attribute, containing the minimum (numeric or date-time) value for this item, which must not * be greater than its maximum (max attribute) value. - * - * MDN */ var min: String = js.native /** Reflects the formaction HTML attribute, containing the URI of a program that processes information submitted by * the element. If specified, this attribute overrides the action attribute of the <form> element that owns * this element. - * - * MDN */ var formAction: String = js.native @@ -1911,59 +1431,43 @@ abstract class HTMLInputElement extends HTMLElement { * The pattern must match the entire value, not just some subset. Use the title attribute to describe the pattern to * help the user. This attribute applies when the value of the type attribute is text, search, tel, url or email; * otherwise it is ignored. - * - * MDN */ var pattern: String = js.native /** The validity state that this element is in. - * - * MDN */ def validity: ValidityState = js.native /** Reflects the formnovalidate HTML attribute, indicating that the form is not to be validated when it is submitted. * If specified, this attribute overrides the novalidate attribute of the <form> element that owns this * element. - * - * MDN */ var formNoValidate: String = js.native /** Reflects the multiple HTML attribute, indicating whether more than one value is possible (e.g., multiple files). - * - * MDN */ var multiple: Boolean = js.native /** Returns false if the element is a candidate for constraint validation, and it does not satisfy its constraints. In * this case, it also fires an invalid event at the element. It returns true if the element is not a candidate for * constraint validation, or if it satisfies its constraints. - * - * MDN */ def checkValidity(): Boolean = js.native /** Decrements the value by (step * n), where n defaults to 1 if not specified. Throws an INVALID_STATE_ERR exception: * if the method is not applicable to for the current type value. if the element has no step value. if the value * cannot be converted to a number. if the resulting value is above the max or below the min. - * - * MDN */ def stepDown(n: Int = js.native): Unit = js.native /** Increments the value by (step * n), where n defaults to 1 if not specified. Throws an INVALID_STATE_ERR exception: * if the method is not applicable to for the current type value. if the element has no step value. if the value * cannot be converted to a number. if the resulting value is above the max or below the min. - * - * MDN */ def stepUp(n: Int = js.native): Unit = js.native /** Sets a custom validity message for the element. If this message is not the empty string, then the element is * suffering from a custom validity error, and does not validate. - * - * MDN */ def setCustomValidity(error: String): Unit = js.native } @@ -1971,8 +1475,6 @@ abstract class HTMLInputElement extends HTMLElement { /** The HTMLAnchorElement interface represents hyperlink elements and provides special properties and methods (beyond * those of the regular HTMLElement object interface they also have available to them by inheritance) for manipulating * the layout and presentation of such elements. - * - * MDN */ @js.native @JSGlobal @@ -1980,76 +1482,52 @@ abstract class HTMLAnchorElement extends HTMLElement { /** Is a DOMString that reflects the rel HTML attribute, specifying the relationship of the target object to the link * object. - * - * MDN */ var rel: String = js.native /** Is a DOMString representing the protocol component, including trailing colon (':'), of the referenced URL. - * - * MDN */ var protocol: String = js.native /** Is a DOMString representing tThe search element, including leading question mark ('?'), if any, of the referenced * URL. - * - * MDN */ var search: String = js.native /** Is a DOMString representing the hostname in the referenced URL. - * - * MDN */ var hostname: String = js.native /** Is a DOMString representing the path name component, if any, of the referenced URL. - * - * MDN */ var pathname: String = js.native /** Is a DOMString that reflects the target HTML attribute, indicating where to display the linked resource. - * - * MDN */ var target: String = js.native /** Is a DOMString that reflects the href HTML attribute, containing a valid URL of a linked resource. - * - * MDN */ var href: String = js.native /** Is a DOMString representing the character encoding of the linked resource. - * - * MDN */ var charset: String = js.native /** Is a DOMString that reflects the hreflang HTML attribute, indicating the language of the linked resource. - * - * MDN */ var hreflang: String = js.native /** Is a DOMString representing the port component, if any, of the referenced URL. - * - * MDN */ var port: String = js.native /** Is a DOMString representing the hostname and port (if it's not the default port) in the referenced URL. - * - * MDN */ var host: String = js.native /** Is a DOMString representing the fragment identifier, including the leading hash mark ('#'), if any, in the * referenced URL. - * - * MDN */ var hash: String = js.native @@ -2057,8 +1535,6 @@ abstract class HTMLAnchorElement extends HTMLElement { var mimeType: String = js.native /** Is a DOMString being a synonym for the Node.textContent property. - * - * MDN */ var text: String = js.native } @@ -2066,30 +1542,22 @@ abstract class HTMLAnchorElement extends HTMLElement { /** The HTMLParamElement interface provides special properties (beyond those of the regular HTMLElement object interface * it inherits) for manipulating <param> elements, representing a pair of a key and a value that acts as a * parameter for an <object> element. - * - * MDN */ @js.native @JSGlobal abstract class HTMLParamElement extends HTMLElement { /** Is a DOMString representing the value associated to the parameter. It reflects the value attribute. - * - * MDN */ var value: String = js.native /** Is a DOMString representing the name of the parameter. It reflects the name attribute. - * - * MDN */ var name: String = js.native } /** The HTMLPreElement interface expose specific properties and methods (beyond those defined by regular HTMLElement * interface it also has available to it by inheritance) for manipulating block of preformatted text. - * - * MDN */ @js.native @JSGlobal @@ -2098,22 +1566,16 @@ abstract class HTMLPreElement extends HTMLElement /** The HTMLCanvasElement interface provides properties and methods for manipulating the layout and presentation of * canvas elements. The HTMLCanvasElement interface also inherits the properties and methods of the HTMLElement * interface. - * - * MDN */ @js.native @JSGlobal abstract class HTMLCanvasElement extends HTMLElement { /** Reflects the width HTML attribute, specifying the width of the coordinate space in CSS pixels. - * - * MDN */ var width: Int = js.native /** Reflects the height HTML attribute, specifying the height of the coordinate space in CSS pixels. - * - * MDN */ var height: Int = js.native @@ -2123,8 +1585,6 @@ abstract class HTMLCanvasElement extends HTMLElement { * requested type is not supported. Chrome supports the image/webp type. If the requested type is image/jpeg or * image/webp, then the second argument, if it is between 0.0 and 1.0, is treated as indicating image quality; if the * second argument is anything else, the default value for image quality is used. Other arguments are ignored. - * - * MDN */ def toDataURL(`type`: String, args: js.Any*): String = js.native @@ -2132,54 +1592,40 @@ abstract class HTMLCanvasElement extends HTMLElement { * draw on the canvas. Calling getContext with "2d" returns a CanvasRenderingContext2D object, whereas calling it * with "experimental-webgl" (or "webgl") returns a WebGLRenderingContext object. This context is only available on * browsers that implement WebGL. - * - * MDN */ def getContext(contextId: String, args: js.Any*): js.Dynamic = js.native } /** The HTMLTitleElement interface contains the title for a document. This element inherits all of the properties and * methods of the HTMLElement interface. - * - * MDN */ @js.native @JSGlobal abstract class HTMLTitleElement extends HTMLElement { /** DOMString representing the text of the document's title. - * - * MDN */ var text: String = js.native } /** The HTMLStyleElement interface represents a <style> element. It inherits properties and methods from its * parent, HTMLElement, and from LinkStyle. - * - * MDN */ @js.native @JSGlobal abstract class HTMLStyleElement extends HTMLElement with LinkStyle { /** Is a DOMString representing the intended destination medium for style information. - * - * MDN */ var media: String = js.native /** Returns the type of the current style. - * - * MDN */ var `type`: String = js.native } /** The HTMLUnknownElement interface represents an invalid HTML element and derives from the HTMLElement interface, but * without implementing any additional properties or methods. - * - * MDN */ @js.native @JSGlobal @@ -2187,8 +1633,6 @@ abstract class HTMLUnknownElement extends HTMLElement /** The HTMLAudioElement interface provides access to the properties of <audio> elements, as well as methods to * manipulate them. It derives from the HTMLMediaElement interface. - * - * MDN */ @js.native @JSGlobal @@ -2197,8 +1641,6 @@ abstract class HTMLAudioElement extends HTMLMediaElement /** The HTMLTableCellElement interface provides special properties and methods (beyond the regular HTMLElement interface * it also has available to it by inheritance) for manipulating the layout and presentation of table cells, either * header or data cells, in an HTML document. - * - * MDN */ @js.native @JSGlobal @@ -2206,27 +1648,19 @@ abstract class HTMLTableCellElement extends HTMLElement with HTMLTableAlignment /** Is a DOMSettableTokenList describing a list of id of <th> elements that represents headers associated with * the cell. It reflects the headers attribute. - * - * MDN */ def headers: String = js.native /** Is a long representing the cell position in the cells collection of the <tr> it belongs to. If the cell * doesn't belong to a <tr>, it returns -1. - * - * MDN */ def cellIndex: Int = js.native /** Is an unsigned long that represents the number of columns this cell must span. It reflects the colspan attribute. - * - * MDN */ var colSpan: Int = js.native /** Is an unsigned long that represents the number of rows this cell must span. It reflects the rowspan attribute. - * - * MDN */ var rowSpan: Int = js.native } @@ -2234,76 +1668,54 @@ abstract class HTMLTableCellElement extends HTMLElement with HTMLTableAlignment /** The HTMLTextAreaElement interface, which provides special properties and methods (beyond the regular HTMLElement * interface it also has available to it by inheritance) for manipulating the layout and presentation of * <textarea> elements. - * - * MDN */ @js.native @JSGlobal abstract class HTMLTextAreaElement extends HTMLElement { /** The raw value contained in the control. - * - * MDN */ var value: String = js.native var status: js.Any = js.native /** The containing form element, if this element is in a form. If this element is not contained in a form element, it * can be the id attribute of any <form> element in the same document or the value null. - * - * MDN */ def form: HTMLFormElement = js.native /** Reflects name HTML attribute, containing the name of the control. - * - * MDN */ var name: String = js.native /** Reflects the disabled HTML attribute, indicating that the control is not available for interaction. - * - * MDN */ var disabled: Boolean = js.native /** The index of the beginning of selected text. If no text is selected, contains the index of the character that * follows the input cursor. On being set, the control behaves as if setSelectionRange() had been called with this as * the first argument, and selectionEnd as the second argument. - * - * MDN */ var selectionStart: Int = js.native /** Reflects the rows HTML attribute, indicating the number of visible text lines for the control. - * - * MDN */ var rows: Int = js.native /** Reflects the cols HTML attribute, indicating the visible width of the text area. - * - * MDN */ var cols: Int = js.native /** Reflects the readonly HTML attribute, indicating that the user cannot modify the value of the control. - * - * MDN */ var readOnly: Boolean = js.native /** Reflects the wrap HTML attribute, indicating how the control wraps text. - * - * MDN */ var wrap: String = js.native /** The index of the end of selected text. If no text is selected, contains the index of the character that follows * the input cursor. On being set, the control behaves as if setSelectionRange() had been called with this as the * second argument, and selectionStart as the first argument. - * - * MDN */ var selectionEnd: Int = js.native @@ -2312,83 +1724,59 @@ abstract class HTMLTextAreaElement extends HTMLElement { def `type`: String = js.native /** The control's default value, which behaves like the element.textContent property. - * - * MDN */ var defaultValue: String = js.native /** Selects a range of text, and sets selectionStart and selectionEnd. If either argument is greater than the length * of the value, it is treated as pointing to the end of the value. If end is less than start, then both are treated * as the value of end. - * - * MDN */ def setSelectionRange(start: Int, end: Int): Unit = js.native /** Selects the contents of the control. - * - * MDN */ def select(): Unit = js.native /** A localized message that describes the validation constraints that the control does not satisfy (if any). This is * the empty string if the control is not a candidate for constraint validation (willValidate is false), or it * satisfies its constraints. - * - * MDN */ def validationMessage: String = js.native /** Reflects the autofocus HTML attribute, indicating that the control should have input focus when the page loads - * - * MDN */ var autofocus: Boolean = js.native /** The validity states that this element is in. - * - * MDN */ def validity: ValidityState = js.native /** Reflects the required HTML attribute, indicating that the user must specify a value before submitting the form. - * - * MDN */ var required: Boolean = js.native /** Reflects the maxlength HTML attribute, indicating the maximum number of characters the user can enter. This * constraint is evaluated only when the value changes. - * - * MDN */ var maxLength: Int = js.native /** Indicates whether the element is a candidate for constraint validation. It is false if any conditions bar it from * constraint validation. - * - * MDN */ def willValidate: Boolean = js.native /** Reflects the placeholder HTML attribute, containing a hint to the user about what to enter in the control. - * - * MDN */ var placeholder: String = js.native /** Returns false if the button is a candidate for constraint validation, and it does not satisfy its constraints. In * this case, it also fires an invalid event at the control. It returns true if the control is not a candidate for * constraint validation, or if it satisfies its constraints. - * - * MDN */ def checkValidity(): Boolean = js.native /** Sets a custom validity message for the element. If this message is not the empty string, then the element is * suffering from a custom validity error, and does not validate. - * - * MDN */ def setCustomValidity(error: String): Unit = js.native } @@ -2396,8 +1784,6 @@ abstract class HTMLTextAreaElement extends HTMLElement { /** The HTMLModElement interface provides special properties (beyond the regular methods and properties available * through the HTMLElement interface they also have available to them by inheritance) for manipulating modification * elements, that is <del> and <ins>. - * - * MDN */ @js.native @JSGlobal @@ -2405,16 +1791,12 @@ abstract class HTMLModElement extends HTMLElement { var dateTime: String = js.native /** Reflects the cite HTML attribute, containing a URI of a resource explaining the change. - * - * MDN */ var cite: String = js.native } /** The HTMLTableColElement interface provides special properties (beyond the HTMLElement interface it also has * available to it inheritance) for manipulating single or grouped table column elements. - * - * MDN */ @js.native @JSGlobal @@ -2422,8 +1804,6 @@ abstract class HTMLTableColElement extends HTMLElement with HTMLTableAlignment { /** Reflects the span HTML attribute, indicating the number of columns to apply this object's attributes to. Must be a * positive integer. - * - * MDN */ var span: Int = js.native } @@ -2433,8 +1813,6 @@ trait HTMLTableAlignment extends js.Object /** The HTMLUListElement interface provides special properties (beyond those defined on the regular HTMLElement * interface it also has available to it by inheritance) for manipulating unordered list elements. - * - * MDN */ @js.native @JSGlobal @@ -2442,16 +1820,12 @@ abstract class HTMLUListElement extends HTMLElement /** The HTMLDivElement interface provides special properties (beyond the regular HTMLElement interface it also has * available to it by inheritance) for manipulating div elements. - * - * MDN */ @js.native @JSGlobal abstract class HTMLDivElement extends HTMLElement /** The HTMLBRElement interface represents a HTML line break element (<br>). It inherits from HTMLElement. - * - * MDN */ @js.native @JSGlobal @@ -2459,87 +1833,61 @@ abstract class HTMLBRElement extends HTMLElement /** The HTMLMediaElement interface has special properties and methods (beyond the properties and methods available for * all children of HTMLElement), that are common to all media-related objects. - * - * MDN */ @js.native @JSGlobal abstract class HTMLMediaElement extends HTMLElement { /** The initial playback position in seconds. - * - * MDN */ def initialTime: Double = js.native /** The ranges of the media source that the browser has played, if any. - * - * MDN */ def played: TimeRanges = js.native /** The absolute URL of the chosen media resource (if, for example, the server selects a media file based on the * resolution of the user's display), or an empty string if the networkState is EMPTY. - * - * MDN */ def currentSrc: String = js.native /** Reflects the loop HTML attribute, indicating whether the media element should start over when it reaches the end. - * - * MDN */ var loop: Boolean = js.native /** Indicates whether the media element has ended playback. - * - * MDN */ def ended: Boolean = js.native /** The ranges of the media source that the browser has buffered (if any) at the moment the buffered property is * accessed. The returned TimeRanges object is normalized. - * - * MDN */ def buffered: TimeRanges = js.native /** The MediaError object for the most recent error, or null if there has not been an error. - * - * MDN */ def error: MediaError = js.native /** The time ranges that the user is able to seek to, if any. - * - * MDN */ def seekable: TimeRanges = js.native /** Reflects the autoplay HTML attribute, indicating whether playback should automatically begin as soon as enough * media is available to do so without interruption. - * - * MDN */ var autoplay: Boolean = js.native /** Reflects the controls HTML attribute, indicating whether user interface items for controlling the resource should * be displayed. - * - * MDN */ var controls: Boolean = js.native /** The audio volume, from 0.0 (silent) to 1.0 (loudest). - * - * MDN */ var volume: Double = js.native /** Reflects the src HTML attribute, containing the URL of a media resource to use. Gecko implements a similar * functionality is available for streams: mozSrcObject. - * - * MDN */ var src: String = js.native @@ -2549,62 +1897,44 @@ abstract class HTMLMediaElement extends HTMLElement { * The audio is muted when the media plays backwards or if the fast forward or slow motion is outside a useful range * (E.g. Gecko mute the sound outside the range 0.25 and 5.0). The pitch of the audio is corrected by default and is * the same for every speed. Some navigators implement the non-standard preservespitch property to control this. - * - * MDN */ var playbackRate: Double = js.native /** The length of the media in seconds, or zero if no media data is available.  If the media data is available but the * length is unknown, this value is NaN.  If the media is streamed and has no predefined length, the value is Inf. - * - * MDN */ def duration: Double = js.native /** true if the audio is muted, and false otherwise. - * - * MDN */ var muted: Boolean = js.native /** The default playback rate for the media. 1.0 is "normal speed," values lower than * 1.0 make the media play slower than normal, higher values make it play faster. The value 0.0 is invalid and throws * a NOT_SUPPORTED_ERR exception. - * - * MDN */ var defaultPlaybackRate: Double = js.native /** Indicates whether the media element is paused. - * - * MDN */ def paused: Boolean = js.native /** Indicates whether the media is in the process of seeking to a new position. - * - * MDN */ def seeking: Boolean = js.native /** The current playback time, in seconds. Setting this value seeks the media to the new time. - * - * MDN */ var currentTime: Double = js.native /** Reflects the preload HTML attribute, indicating what data should be preloaded, if any. Possible values are: none, * metadata, auto. See preload attribute documentation for details. - * - * MDN */ var preload: String = js.native /** The current state of fetching the media over the network. Constant Value Description NETWORK_EMPTY 0 There is no * data yet.  The readyState is also HAVE_NOTHING. NETWORK_IDLE 1   NETWORK_LOADING 2 The media is loading. * NETWORK_NO_SOURCE[1] 3 - * - * MDN */ def networkState: Int = js.native @@ -2612,32 +1942,22 @@ abstract class HTMLMediaElement extends HTMLElement { /** Begins playback of the media. If you have changed the src attribute of the media element since the page was * loaded, you must call load() before play(), otherwise the original media plays again. - * - * MDN */ def play(): js.UndefOr[js.Promise[Unit]] = js.native /** Begins loading the media content from the server. - * - * MDN */ def load(): Unit = js.native /** Determines whether the specified media type can be played back. - * - * MDN */ def canPlayType(`type`: String): String = js.native /** Represents the list of TextTrack objects contained in the element. - * - * MDN */ def textTracks: TextTrackList = js.native /** Represents the list of AudioTrack objects contained in the element. - * - * MDN */ def audioTracks: AudioTrackList = js.native @@ -2652,34 +1972,24 @@ object HTMLMediaElement extends js.Object { /* ??? ConstructorMember(FunSignature(List(),List(),Some(TypeRef(TypeName(HTMLMediaElement),List())))) */ /** Enough of the media resource has been retrieved that the metadata attributes are initialized.  Seeking will no * longer raise an exception. - * - * MDN */ val HAVE_METADATA: Int = js.native /** Data is available for the current playback position, but not enough to actually play more than one frame. - * - * MDN */ val HAVE_CURRENT_DATA: Int = js.native /** No information is available about the media resource. - * - * MDN */ val HAVE_NOTHING: Int = js.native val NETWORK_NO_SOURCE: Int = js.native /** Enough data is available—and the download rate is high enough—that the media can be played through to the end * without interruption. - * - * MDN */ val HAVE_ENOUGH_DATA: Int = js.native /** There is no data yet.  The readyState is also HAVE_NOTHING. - * - * MDN */ val NETWORK_EMPTY: Int = js.native val NETWORK_LOADING: Int = js.native @@ -2687,16 +1997,12 @@ object HTMLMediaElement extends js.Object { /** Data for the current playback position as well as for at least a little bit of time into the future is available * (in other words, at least two frames of video, for example). - * - * MDN */ val HAVE_FUTURE_DATA: Int = js.native } /** The HTMLFieldSetElement interface special properties and methods (beyond the regular HTMLelement interface it also * has available to it by inheritance) for manipulating the layout and presentation of field-set elements. - * - * MDN */ @js.native @JSGlobal @@ -2705,55 +2011,39 @@ abstract class HTMLFieldSetElement extends HTMLElement { /** The containing form element, if this element is in a form. If the button is not a descendant of a form element, * then the attribute can be the ID of any form element in the same document it is related to, or the null value if * none matches. - * - * MDN */ def form: HTMLFormElement = js.native /** Reflects the disabled HTML attribute, indicating whether the user can interact with the control. - * - * MDN */ var disabled: Boolean = js.native /** A localized message that describes the validation constraints that the element does not satisfy (if any). This is * the empty string if the element is not a candidate for constraint validation (willValidate is false), or it * satisfies its constraints. - * - * MDN */ def validationMessage: String = js.native /** The validity states that this element is in. - * - * MDN */ def validity: ValidityState = js.native /** Always false because <fieldset> objects are never candidates for constraint validation. - * - * MDN */ def willValidate: Boolean = js.native /** Always returns true because <fieldset> objects are never candidates for constraint validation. - * - * MDN */ def checkValidity(): Boolean = js.native /** Sets a custom validity message for the field set. If this message is not the empty string, then the field set is * suffering from a custom validity error, and does not validate. - * - * MDN */ def setCustomValidity(error: String): Unit = js.native } /** The HTMLElement interface represents any HTML element. Some elements directly implement this interface, other * implement it via an interface that inherit it. - * - * MDN */ @js.native @JSGlobal @@ -2773,22 +2063,16 @@ abstract class HTMLElement extends Element { var recordNumber: js.Any = js.native /** Establishes the text to be displayed in a 'tool tip' popup when the mouse is over the displayed node. - * - * MDN */ var title: String = js.native var ondurationchange: js.Function1[Event, _] = js.native /** Height of an element relative to the element's offsetParent. - * - * MDN */ def offsetHeight: Double = js.native /** The dir attribute gets or sets the text writing directionality of the content of the current element. - * - * MDN */ var dir: String = js.native var onemptied: js.Function1[Event, _] = js.native @@ -2810,8 +2094,6 @@ abstract class HTMLElement extends Element { * standards compliant mode; body in quirks rendering mode) is the offsetParent. offsetParent returns null when the * element has style.display set to "none". The offsetParent is useful because offsetTop and offsetLeft are relative * to its padding edge. - * - * MDN */ def offsetParent: Element = js.native @@ -2830,16 +2112,12 @@ abstract class HTMLElement extends Element { * * The items in the returned collection are objects and not strings. To get data from those node objects, you must * use their properties (e.g. elementNodeReference.children[1].nodeName to get the name, etc.). - * - * MDN */ var ondragend: js.Function1[DragEvent, _] = js.native var onbeforepaste: js.Function1[DragEvent, _] = js.native var ondragover: js.Function1[DragEvent, _] = js.native /** offsetTop returns the distance of the current element relative to the top of the offsetParent node. - * - * MDN */ def offsetTop: Double = js.native @@ -2850,8 +2128,6 @@ abstract class HTMLElement extends Element { var onmouseover: js.Function1[MouseEvent, _] = js.native /** This property gets or sets the base language of an element's attribute values and text content. - * - * MDN */ var lang: String = js.native @@ -2863,8 +2139,6 @@ abstract class HTMLElement extends Element { /** Returns the number of pixels that the upper left corner of the current element is offset to the left within the * offsetParent node. - * - * MDN */ def offsetLeft: Double = js.native @@ -2872,16 +2146,12 @@ abstract class HTMLElement extends Element { var onmousemove: js.Function1[MouseEvent, _] = js.native /** isContentEditable returns true if the contents of the element are editable; otherwise it returns false. - * - * MDN */ def isContentEditable: Boolean = js.native var onratechange: js.Function1[Event, _] = js.native /** contentEditable is used to indicate whether or not the element is editable. This enumerated attribute can have the * following values: - * - * MDN */ var contentEditable: String = js.native @@ -2904,8 +2174,6 @@ abstract class HTMLElement extends Element { * * An element with a '''0''' value, an invalid value, or no '''tabindex''' value should be placed after elements with * a positive '''tabindex''' in the sequential keyboard navigation order. - * - * MDN */ var tabIndex: Int = js.native @@ -2931,8 +2199,6 @@ abstract class HTMLElement extends Element { var ondrop: js.Function1[DragEvent, _] = js.native /** Returns the layout width of an element. - * - * MDN */ def offsetWidth: Double = js.native @@ -2942,22 +2208,16 @@ abstract class HTMLElement extends Element { var oninput: js.Function1[Event, _] = js.native /** Sets focus on the specified element, if it can be focused. - * - * MDN */ def focus(): Unit = js.native /** The blur method removes keyboard focus from the current element. - * - * MDN */ def blur(): Unit = js.native def contains(child: HTMLElement): Boolean = js.native /** The click method simulates a mouse click on an element. - * - * MDN */ def click(): Unit = js.native @@ -2966,16 +2226,12 @@ abstract class HTMLElement extends Element { var draggable: Boolean = js.native /** Returns an object that represents the element's style attribute. - * - * MDN */ def style: CSSStyleDeclaration = js.native def style_=(value: CSSStyleDeclaration): Unit = js.native def style_=(value: String): Unit = js.native /** Returns the Document that this node belongs to. If no document is associated with it, returns null. - * - * MDN * * This is defined on Node; we override it here because we know (from the fact that this is an HTMLElement) that we * are getting an HTMLDocument here. @@ -2987,81 +2243,57 @@ abstract class HTMLElement extends Element { * one entry for each custom data attribute. Note that the dataset property itself can be read, but not directly * written. Instead, all writes must be to the individual properties within the dataset, which in turn represent the * data attributes. - * - * MDN */ def dataset: js.Dictionary[String] = js.native /** fired when a pointing device is moved into an element's hit test boundaries. - * - * MDN */ var onpointerover: js.Function1[PointerEvent, _] = js.native /** fired when a pointing device is moved into the hit test boundaries of an element or one of its descendants, * including as a result of a pointerdown event from a device that does not support hover (see pointerdown). - * - * MDN */ var onpointerenter: js.Function1[PointerEvent, _] = js.native /** fired when a pointer becomes active. - * - * MDN */ var onpointerdown: js.Function1[PointerEvent, _] = js.native /** fired when a pointer changes coordinates. - * - * MDN */ var onpointermove: js.Function1[PointerEvent, _] = js.native /** fired when a pointer is no longer active. - * - * MDN */ var onpointerup: js.Function1[PointerEvent, _] = js.native /** a browser fires this event if it concludes the pointer will no longer be able to generate events (for example the * related device is deactived). - * - * MDN */ var onpointercancel: js.Function1[PointerEvent, _] = js.native /** fired for several reasons including: pointing device is moved out of the hit test boundaries of an element; firing * the pointerup event for a device that does not support hover (see pointerup); after firing the pointercancel event * (see pointercancel); when a pen stylus leaves the hover range detectable by the digitizer. - * - * MDN */ var onpointerout: js.Function1[PointerEvent, _] = js.native /** fired when a pointing device is moved out of the hit test boundaries of an element. For pen devices, this event is * fired when the stylus leaves the hover range detectable by the digitizer. - * - * MDN */ var onpointerleave: js.Function1[PointerEvent, _] = js.native /** fired when an element receives pointer capture. - * - * MDN */ var gotpointercapture: js.Function1[PointerEvent, _] = js.native /** Fired after pointer capture is released for a pointer. - * - * MDN */ var lostpointercapture: js.Function1[PointerEvent, _] = js.native } /** The HTMLHRElement interface provides special properties (beyond those of the HTMLElement interface it also has * available to it by inheritance) for manipulating <hr> elements. - * - * MDN */ @js.native @JSGlobal @@ -3070,24 +2302,18 @@ abstract class HTMLHRElement extends HTMLElement /** The HTMLObjectElement interface provides special properties and methods (beyond those on the HTMLElement interface * it also has available to it by inheritance) for manipulating the layout and presentation of <object> element, * representing external resources. - * - * MDN */ @js.native @JSGlobal abstract class HTMLObjectElement extends HTMLElement with GetSVGDocument { /** Reflects the width HTML attribute, specifying the displayed width of the resource in CSS pixels. - * - * MDN */ var width: String = js.native var `object`: Object = js.native /** The object element's form owner, or null if there isn't one. - * - * MDN */ def form: HTMLFormElement = js.native @@ -3095,32 +2321,22 @@ abstract class HTMLObjectElement extends HTMLElement with GetSVGDocument { var classid: String = js.native /** Reflects the name HTML attribute, specifying the name of the object (HTML 4, or of a browsing context (HTML5. - * - * MDN */ var name: String = js.native /** Reflects the usemap HTML attribute, specifying a <map> element to use. - * - * MDN */ var useMap: String = js.native /** Reflects the data HTML attribute, specifying the address of a resource's data. - * - * MDN */ var data: String = js.native /** Reflects the height HTML attribute, specifying the displayed height of the resource in CSS pixels. - * - * MDN */ var height: String = js.native /** The active document of the object element's nested browsing context, if any; otherwise null. - * - * MDN */ def contentDocument: Document = js.native var altHtml: String = js.native @@ -3131,62 +2347,44 @@ abstract class HTMLObjectElement extends HTMLElement with GetSVGDocument { /** A localized message that describes the validation constraints that the control does not satisfy (if any). This is * the empty string if the control is not a candidate for constraint validation (willValidate is false), or it * satisfies its constraints. - * - * MDN */ def validationMessage: String = js.native /** The validity states that this element is in. - * - * MDN */ def validity: ValidityState = js.native /** Indicates whether the element is a candidate for constraint validation. Always false for HTMLObjectElement * objects. - * - * MDN */ def willValidate: Boolean = js.native /** Always returns true, because object objects are never candidates for constraint validation. - * - * MDN */ def checkValidity(): Boolean = js.native /** Sets a custom validity message for the element. If this message is not the empty string, then the element is * suffering from a custom validity error, and does not validate. - * - * MDN */ def setCustomValidity(error: String): Unit = js.native } /** The HTMLEmbedElement interface, which provides special properties (beyond the regular <htmlelement> interface * it also has available to it by inheritance) for manipulating <embed> elements. - * - * MDN */ @js.native @JSGlobal abstract class HTMLEmbedElement extends HTMLElement with GetSVGDocument { /** Reflects the width HTML attribute, containing the displayed width of the resource. - * - * MDN */ var width: String = js.native /** Reflects the src HTML attribute, containing the address of the resource. - * - * MDN */ var src: String = js.native /** Reflects the height HTML attribute, containing the displayed height of the resource. - * - * MDN */ var height: String = js.native } @@ -3194,30 +2392,22 @@ abstract class HTMLEmbedElement extends HTMLElement with GetSVGDocument { /** The HTMLOptGroupElement interface provides special properties and methods (beyond the regular HTMLElement object * interface they also have available to them by inheritance) for manipulating the layout and presentation of * <optgroup> elements. - * - * MDN */ @js.native @JSGlobal abstract class HTMLOptGroupElement extends HTMLElement { /** Set or get the label for the group. - * - * MDN */ var label: String = js.native /** If true, the whole list of children <option> is disabled - * - * MDN */ var disabled: Boolean = js.native } /** The HTMLVideoElement interface provides special properties and methods for manipulating video objects. It also * inherits properties and methods of HTMLMediaElement and HTMLElement. - * - * MDN */ @js.native @JSGlobal @@ -3225,38 +2415,28 @@ abstract class HTMLVideoElement extends HTMLMediaElement { /** Is a DOMString that reflects the width HTML attribute, which specifies the width of the display area, in CSS * pixels. - * - * MDN */ var width: Int = js.native /** Returns an unsigned long containing the intrinsic width of the resource in CSS pixels, taking into account the * dimensions, aspect ratio, clean aperture, resolution, and so forth, as defined for the format used by the * resource. If the element's ready state is HAVE_NOTHING, the value is 0. - * - * MDN */ def videoWidth: Int = js.native /** Returns an unsigned long containing the intrinsic height of the resource in CSS pixels, taking into account the * dimensions, aspect ratio, clean aperture, resolution, and so forth, as defined for the format used by the * resource. If the element's ready state is HAVE_NOTHING, the value is 0. - * - * MDN */ def videoHeight: Int = js.native /** Is a DOMString that reflects the height HTML attribute, which specifies the height of the display area, in CSS * pixels. - * - * MDN */ var height: Int = js.native /** Is a DOMString that reflects the poster HTML attribute, which specifies an image to show while no video data is * available. - * - * MDN */ var poster: String = js.native } @@ -3264,8 +2444,6 @@ abstract class HTMLVideoElement extends HTMLMediaElement { /** The HTMLProgressElement interface provides special properties and methods (beyond the regular HTMLElement interface * it also has available to it by inheritance) for manipulating the layout and presentation of <progress> * elements. - * - * MDN */ @js.native @JSGlobal @@ -3273,22 +2451,16 @@ abstract class HTMLProgressElement extends HTMLElement { /** If the progress bar is an indeterminate progress bar, then this property return 0. Otherwise, it returns the * current value. - * - * MDN */ var value: Double = js.native /** This property reflect the content attribute of the same name, limited to numbers greater than zero. Its default * value is 1.0. - * - * MDN */ var max: Double = js.native /** If the progress bar is an indeterminate progress bar, then the position property return −1. Otherwise, it returns * the result of dividing the current value by the maximum value. - * - * MDN */ def position: Double = js.native var form: HTMLFormElement = js.native @@ -3296,24 +2468,18 @@ abstract class HTMLProgressElement extends HTMLElement { /** The HTMLDataListElement interface provides special properties (beyond the HTMLElement object interface it also has * available to it by inheritance) to manipulate <datalist> elements and their content. - * - * MDN */ @js.native @JSGlobal abstract class HTMLDataListElement extends HTMLElement { /** A collection of the contained option elements. - * - * MDN */ def options: HTMLCollection = js.native } /** The HTMLTrackElement interface provides access to the properties of <track> elements, as well as methods to * manipulate them. - * - * MDN */ @js.native @JSGlobal @@ -3327,8 +2493,6 @@ abstract class HTMLTrackElement extends HTMLElement { /** The HTMLSpanElement interface represents a <span> element and derives from the HTMLElement interface, but * without implementing any additional properties or methods. - * - * MDN */ @js.native @JSGlobal @@ -3336,8 +2500,6 @@ abstract class HTMLSpanElement extends HTMLElement /** The HTMLHeadElement interface contains the descriptive information, or metadata, for a document. This object * inherits all of the properties and methods described in the HTMLElement interface. - * - * MDN */ @js.native @JSGlobal @@ -3345,8 +2507,6 @@ abstract class HTMLHeadElement extends HTMLElement /** The HTMLHeadingElement interface represents the different heading elements. It inherits methods and properties from * the HTMLElement interface. - * - * MDN */ @js.native @JSGlobal @@ -3354,94 +2514,66 @@ abstract class HTMLHeadingElement extends HTMLElement /** The HTMLFormElement interface provides methods to create and modify <form> elements; it inherits from * properties and methods of the HTMLElement interface. - * - * MDN */ @js.native @JSGlobal abstract class HTMLFormElement extends HTMLElement { /** length returns the number of controls in the FORM element. - * - * MDN */ def length: Int = js.native /** target gets/sets the target of the action (i.e., the frame to render its output in). - * - * MDN */ var target: String = js.native /** acceptCharset returns a list of the supported character encodings for the given FORM element. This list can be * comma- or space-separated. - * - * MDN */ var acceptCharset: String = js.native /** enctype gets/sets the content type of the FORM element. - * - * MDN */ var enctype: String = js.native /** elements returns an HTMLFormControlsCollection (HTML 4 HTMLCollection) of all the form controls contained in the * FORM element, with the exception of input elements which have a type attribute of image. - * - * MDN */ def elements: HTMLCollection = js.native /** action gets/sets the action of the <form> element. - * - * MDN */ var action: String = js.native /** name returns the name of the current form element as a string. - * - * MDN */ var name: String = js.native /** method gets/sets the HTTP method used to submit the form. - * - * MDN */ var method: String = js.native /** encoding is an alternative name for the enctype element on the DOM HTMLFormElement object. - * - * MDN */ var encoding: String = js.native /** reset restores a form element's default values. - * - * MDN */ def reset(): Unit = js.native /** Gets the item in the elements collection at the specified index, or null if there is no item at that index. You * can also specify the index in array-style brackets or parentheses after the form object name, without calling this * method explicitly. - * - * MDN */ def item(name: js.Any = js.native, index: js.Any = js.native): js.Dynamic = js.native /** This method does something similar to activating a submit button of the form. - * - * MDN */ def submit(): Unit = js.native /** Gets the item or list of items in elements collection whose name or id match the specified name, or null if no * items match. You can also specify the name in array-style brackets or parentheses after the form object name, * without calling this method explicitly. - * - * MDN */ def namedItem(name: String): js.Dynamic = js.native @@ -3453,14 +2585,10 @@ abstract class HTMLFormElement extends HTMLElement { /** Reflects the autocomplete HTML attribute, containing a string that indicates whether the controls in this form can * have their values automatically populated by the browser. - * - * MDN */ var autocomplete: String = js.native /** Reflects the novalidate HTML attribute, indicating that the form should not be validated. - * - * MDN */ var noValidate: Boolean = js.native diff --git a/src/main/scala/org/scalajs/dom/IDBTypes.scala b/src/main/scala/org/scalajs/dom/IDBTypes.scala index 404c9a4ec..bee6afe3b 100644 --- a/src/main/scala/org/scalajs/dom/IDBTypes.scala +++ b/src/main/scala/org/scalajs/dom/IDBTypes.scala @@ -1,5 +1,5 @@ -/** Documentation marked "MDN" 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. +/** 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 @@ -19,22 +19,16 @@ sealed trait IDBTransactionMode extends js.Any object IDBTransactionMode { /** Allows data to be read but not changed. It is the default transaction mode. - * - * MDN */ val READ_ONLY: IDBTransactionMode = "readonly".asInstanceOf[IDBTransactionMode] /** Allows any operation to be performed, including ones that delete and create object stores and indexes. This mode * is for updating the version number of transactions that were started using the setVersion() method of IDBDatabase * objects. Transactions of this mode cannot run concurrently with other transactions. - * - * MDN */ val VERSION_CHANGE: IDBTransactionMode = "versionchange".asInstanceOf[IDBTransactionMode] /** Allows reading and writing of data in existing data stores to be changed. - * - * MDN */ val READ_WRITE: IDBTransactionMode = "readwrite".asInstanceOf[IDBTransactionMode] @@ -42,31 +36,23 @@ object IDBTransactionMode { /** The IDBObjectStore interface of the IndexedDB API represents an object store in a database. Records within an object * store are sorted according to their keys. This sorting enables fast insertion, look-up, and ordered retrieval. - * - * MDN */ @js.native @JSGlobal class IDBObjectStore extends js.Object { /** A list of the names of indexes on objects in this object store. - * - * MDN */ def indexNames: DOMStringList = js.native def name: String = js.native /** The name of the transaction to which this object store belongs. - * - * MDN */ def transaction: IDBTransaction = js.native /** The key path of this object store. If this attribute is null, the application must provide a key for each * modification operation. - * - * MDN */ def keyPath: String = js.native @@ -76,92 +62,66 @@ class IDBObjectStore extends js.Object { * addition to the IDBObjectStore.add request’s success event, because the transaction may still fail after the * success event fires. In other words, the success event is only triggered when the transaction has been * successfully queued. - * - * MDN */ def add(value: js.Any, key: js.Any = js.native): IDBRequest = js.native /** Clearing an object store consists of removing all records from the object store and removing all records in * indexes that reference the object store. - * - * MDN */ def clear(): IDBRequest = js.native /** Note that this method must be called only from a VersionChange transaction mode callback. - * - * MDN */ def createIndex(name: String, keyPath: String, optionalParameters: js.Any = js.native): IDBIndex = js.native /** If the record is successfully stored, then a success event is fired on the returned request object with the result * set to the key for the stored record, and the transaction set to the transaction in which this object store is * opened. - * - * MDN */ def put(value: js.Any, key: js.Any = js.native): IDBRequest = js.native /** The method sets the position of the cursor to the appropriate record, based on the specified direction. - * - * MDN */ def openCursor(range: js.UndefOr[IDBKeyRange | js.Any] = js.undefined, direction: js.UndefOr[IDBCursorDirection] = js.undefined): IDBRequest = js.native /** The method sets the position of the cursor to the appropriate key, based on the specified direction. - * - * MDN */ def openKeyCursor(range: js.UndefOr[IDBKeyRange | js.Any] = js.undefined, direction: js.UndefOr[IDBCursorDirection] = js.undefined): IDBRequest = js.native /** Note that this method must be called only from a VersionChange transaction mode callback. Note that this method * synchronously modifies the IDBObjectStore.indexNames property. - * - * MDN */ def deleteIndex(indexName: String): Unit = js.native /** This method may raise a DOMException of one of the following types: - * - * MDN */ def index(name: String): IDBIndex = js.native /** If a value is successfully found, then a structured clone of it is created and set as the result of the request * object. - * - * MDN */ def get(key: js.Any): IDBRequest = js.native /** If a value is successfully found, then a structured clone of it is created and set as the result of the request * object. - * - * MDN */ def getAll(query: js.UndefOr[IDBKeyRange | js.Any] = js.undefined, count: js.UndefOr[Int] = js.undefined): IDBRequest = js.native /** If a value is successfully found, then a structured clone of it is created and set as the result of the request * object. - * - * MDN */ def getAllKeys(query: js.UndefOr[IDBKeyRange | js.Any] = js.undefined, count: js.UndefOr[Int] = js.undefined): IDBRequest = js.native /** If a value is successfully found, then a structured clone of it is created and set as the result of the request * object. - * - * MDN */ def getKey(key: js.Any): IDBRequest = js.native /** returns an IDBRequest object, and, in a separate thread, deletes the current object store. - * - * MDN */ def delete(key: js.Any): IDBRequest = js.native } @@ -173,8 +133,6 @@ trait IDBVersionChangeEventInit extends EventInit { /** The specification has changed and some not up-to-date browsers only support the deprecated unique attribute, * version, from an early draft version. - * - * MDN */ @js.native @JSGlobal @@ -183,14 +141,10 @@ class IDBVersionChangeEvent(typeArg: String, init: js.UndefOr[IDBVersionChangeEv /** Returns the new version of the database. * * This is null when the database is being deleted. - * - * MDN */ def newVersion: Integer = js.native /** Returns the old version of the database. - * - * MDN */ def oldVersion: Int = js.native } @@ -208,30 +162,22 @@ class IDBVersionChangeEvent(typeArg: String, init: js.UndefOr[IDBVersionChangeEv * object store are inserted, updated, or deleted. Each record in an index can point to only one record in its * referenced object store, but several indexes can reference the same object store. When the object store changes, all * indexes that refers to the object store are automatically updated. - * - * MDN */ @js.native @JSGlobal class IDBIndex extends js.Object { /** If true, this index does not allow duplicate values for a key. - * - * MDN */ def unique: Boolean = js.native def name: String = js.native /** The key path of this index. If null, this index is not auto-populated. - * - * MDN */ def keyPath: String = js.native /** The name of the object store referenced by this index. - * - * MDN */ def objectStore: IDBObjectStore = js.native @@ -239,35 +185,25 @@ class IDBIndex extends js.Object { /** If you want to see how many records are between keys 1000 and 2000 in an object store, you can write the * following: - * - * MDN */ def count(): IDBRequest = js.native /** Returns an IDBRequest object, and, in a separate thread, finds either the given key or the primary key, if key is * a key range. - * - * MDN */ def getKey(key: js.Any): IDBRequest = js.native /** Returns an IDBRequest object, and, in a separate thread, creates a cursor over the specified key range, as * arranged by this index. - * - * MDN */ def openKeyCursor(range: IDBKeyRange = js.native, direction: IDBCursorDirection = js.native): IDBRequest = js.native /** Returns an IDBRequest object, and, in a separate thread, finds either the value in the referenced object store * that corresponds to the given key or the first corresponding value, if key is a key range. - * - * MDN */ def get(key: js.Any): IDBRequest = js.native /** The method sets the position of the cursor to the appropriate record, based on the specified direction. - * - * MDN */ def openCursor(range: IDBKeyRange = js.native, direction: IDBCursorDirection = js.native): IDBRequest = js.native } @@ -278,8 +214,6 @@ class IDBIndex extends js.Object { * The cursor has a source that indicates which index or object store it is iterating. It has a position within the * range, and moves in a direction that is increasing or decreasing in the order of record keys. The cursor enables an * application to asynchronously process all the records in the cursor's range. - * - * MDN */ @js.native @JSGlobal @@ -288,35 +222,25 @@ class IDBCursor extends js.Object { /** On getting, this object returns the IDBObjectStore or IDBIndex that the cursor is iterating. This function never * returns null or throws an exception, even if the cursor is currently being iterated, has iterated past its end, or * its transaction is not active. - * - * MDN */ def source: js.Any = js.native /** Is a DOMString that, on getting, returns the direction of traversal of the cursor. See Constants for possible * values. - * - * MDN */ def direction: IDBCursorDirection = js.native /** Returns the key for the record at the cursor's position. If the cursor is outside its range, this is set to * undefined. The cursor's key can be any data type. - * - * MDN */ def key: js.Any = js.native /** Returns the cursor's current effective key. If the cursor is currently being iterated or has iterated outside its * range, this is set to undefined. The cursor's primary key can be any data type. - * - * MDN */ def primaryKey: js.Any = js.native /** This method may raise a DOMException of one of the following types: - * - * MDN */ def advance(count: Int): Unit = js.native @@ -332,15 +256,11 @@ class IDBCursor extends js.Object { /** Returns an IDBRequest object, and, in a separate thread, deletes the record at the cursor's position, without * changing the cursor's position. - * - * MDN */ def delete(): IDBRequest = js.native /** Returns an IDBRequest object, and, in a separate thread, updates the value at the current position of the cursor * in the object store. - * - * MDN */ def update(value: js.Any): IDBRequest = js.native } @@ -352,36 +272,26 @@ object IDBCursorDirection { /** The cursor shows all records, including duplicates. It starts at the upper bound of the key range and moves * downwards (monotonically decreasing in the order of keys). - * - * MDN */ val PREV: IDBCursorDirection = "prev".asInstanceOf[IDBCursorDirection] /** The cursor shows all records, excluding duplicates. If multiple records exist with the same key, only the first * one iterated is retrieved. It starts at the upper bound of the key range and moves downwards. - * - * MDN */ val PREV_UNIQUE: IDBCursorDirection = "prevunique".asInstanceOf[IDBCursorDirection] /** The cursor shows all records, including duplicates. It starts at the lower bound of the key range and moves * upwards (monotonically increasing in the order of keys). - * - * MDN */ val NEXT: IDBCursorDirection = "next".asInstanceOf[IDBCursorDirection] /** The cursor shows all records, excluding duplicates. If multiple records exist with the same key, only the first * one iterated is retrieved. It starts at the lower bound of the key range and moves upwards. - * - * MDN */ val NEXT_UNIQUE: IDBCursorDirection = "nextunique".asInstanceOf[IDBCursorDirection] } /** Same as IDBCursor with the value property. - * - * MDN */ @js.native @JSGlobal @@ -397,34 +307,24 @@ class IDBCursorWithValue extends IDBCursor { * upper and lower bounds, then it is bounded; if it has no bounds, it is unbounded. A bounded key range can either be * open (the endpoints are excluded) or closed (the endpoints are included). To retrieve all keys within a certain * range, you can use the following code constructs: - * - * MDN */ @js.native @JSGlobal class IDBKeyRange extends js.Object { /** The upper bound of the key range (can be any type.) - * - * MDN */ def upper: js.Any = js.native /** Returns false if the upper-bound value is included in the key range. - * - * MDN */ def upperOpen: Boolean = js.native /** The lower bound of the key range (can be any type.) - * - * MDN */ def lower: js.Any = js.native /** Returns false if the lower-bound value is included in the key range. - * - * MDN */ def lowerOpen: Boolean = js.native } @@ -435,27 +335,19 @@ object IDBKeyRange extends js.Object { /** The bounds can be open (that is, the bounds exclude the endpoint values) or closed (that is, the bounds include * the endpoint values). By default, the bounds are closed. - * - * MDN */ def bound(lower: js.Any, upper: js.Any, lowerOpen: Boolean = js.native, upperOpen: Boolean = js.native): IDBKeyRange = js.native /** This method may raise a DOMException of the following types: - * - * MDN */ def only(value: js.Any): IDBKeyRange = js.native /** By default, it includes the lower endpoint value and is closed. - * - * MDN */ def lowerBound(bound: js.Any, open: Boolean = js.native): IDBKeyRange = js.native /** By default, it includes the upper endpoint value and is closed. - * - * MDN */ def upperBound(bound: js.Any, open: Boolean = js.native): IDBKeyRange = js.native } @@ -464,64 +356,46 @@ object IDBKeyRange extends js.Object { * event handler attributes. All reading and writing of data are done within transactions. You actually use IDBDatabase * to start transactions and use IDBTransaction to set the mode of the transaction and access an object store and make * your request. You can also use it to abort transactions. - * - * MDN */ @js.native @JSGlobal class IDBTransaction extends EventTarget { /** The event handler for the oncomplete event. - * - * MDN */ var oncomplete: js.Function1[Event, _] = js.native /** The database connection with which this transaction is associated. - * - * MDN */ def db: IDBDatabase = js.native /** The mode for isolating access to data in the object stores that are in the scope of the transaction. For possible * values, see Constants. The default value is readonly. - * - * MDN */ def mode: IDBTransactionMode = js.native /** Returns a DOMException indicating the type of error that occured when there is an unsuccessful transaction. This * property is null if the transaction is not finished, is finished and successfully committed, or was aborted with * IDBTransaction.abort function. - * - * MDN */ def error: DOMException = js.native /** The event handler for the onerror event. - * - * MDN */ var onerror: js.Function1[Event, _] = js.native /** The event handler for the onabort event. - * - * MDN */ var onabort: js.Function1[Event, _] = js.native /** Returns immediately, and rolls back all the changes to objects in the database associated with this transaction. * If this transaction has been aborted or completed, then this method throws an error event. - * - * MDN */ def abort(): Unit = js.native /** Every call to this method on the same transaction object, with the same name, returns the same IDBObjectStore * instance. If this method is called on a different transaction object, a different IDBObjectStore instance is * returned. - * - * MDN */ def objectStore(name: String): IDBObjectStore = js.native } @@ -533,8 +407,6 @@ class IDBTransaction extends EventTarget { * Everything you do in IndexedDB always happens in the context of a transaction, representing interactions with data * in the database. All objects in IndexedDB—including object stores, indexes, and cursors—are tied to a particular * transaction. Thus, you cannot execute commands, access data, or open anything outside of a transaction. - * - * MDN */ @js.native @JSGlobal @@ -547,26 +419,18 @@ class IDBDatabase extends EventTarget { def version: Int = js.native /** A DOMString that contains the name of the connected database. - * - * MDN */ def name: String = js.native /** A DOMStringList that contains a list of the names of the object stores currently in the connected database. - * - * MDN */ def objectStoreNames: DOMStringList = js.native /** Fires when access to the database fails. - * - * MDN */ var onerror: js.Function1[Event, _] = js.native /** Fires when access of the database is aborted. - * - * MDN */ var onabort: js.Function1[Event, _] = js.native @@ -579,39 +443,29 @@ class IDBDatabase extends EventTarget { /** The method takes the name of the store as well as a parameter object. The parameter object lets you define * important optional properties. You can use the property to uniquely identify individual objects in the store. As * the property is an identifier, it should be unique to every object, and every object should have that property. - * - * MDN */ def createObjectStore(name: String, optionalParameters: js.Any = js.native): IDBObjectStore = js.native /** The connection is not actually closed until all transactions created using this connection are complete. No new * transactions can be created for this connection once this method is called. Methods that create transactions throw * an exception if a closing operation is pending. - * - * MDN */ def close(): Unit = js.native /** Immediately returns a transaction object (IDBTransaction) containing the IDBTransaction.objectStore method, which * you can use to access your object store. Runs in a separate thread. - * - * MDN */ def transaction(storeNames: js.Any, mode: IDBTransactionMode = js.native): IDBTransaction = js.native /** As with createObjectStore, this method can be called only within a versionchange transaction. So for WebKit * browsers you must call the IDBVersionChangeRequest.setVersion method first before you can remove any object store * or index. - * - * MDN */ def deleteObjectStore(name: String): Unit = js.native } /** The IDBOpenDBRequest interface of the IndexedDB API provides access to results of requests to open databases using * specific event handler attributes. - * - * MDN */ @js.native @JSGlobal @@ -619,16 +473,12 @@ class IDBOpenDBRequest extends IDBRequest { /** The event handler for the upgradeneeded event, fired when a database of a bigger version number than the existing * stored database is loaded. - * - * MDN */ var onupgradeneeded: js.Function1[IDBVersionChangeEvent, _] = js.native /** The event handler for the blocked event. This event is triggered when the upgradeneeded should be triggered * because of a version change but the database is still in use (ie not closed) somewhere, even after the * versionchange event was sent. - * - * MDN */ var onblocked: js.Function1[IDBVersionChangeEvent, _] = js.native } @@ -653,14 +503,10 @@ class IDBFactory extends js.Object { def open(name: String): IDBOpenDBRequest = js.native /** A method that compares two keys and returns a result indicating which one is greater in value. - * - * MDN */ def cmp(first: js.Any, second: js.Any): Int = js.native /** The deletion operation (performed in a different thread) consists of the following steps: - * - * MDN */ def deleteDatabase(name: String): IDBOpenDBRequest = js.native } @@ -672,8 +518,6 @@ class IDBFactory extends js.Object { * The request object does not initially contain any information about the result of the operation, but once * information becomes available, an event is fired on the request, and the information becomes available through the * properties of the IDBRequest instance. - * - * MDN */ @js.native @JSGlobal @@ -681,55 +525,39 @@ class IDBRequest extends EventTarget { /** The source of the request, such as an Index or a ObjectStore. If no source exists (such as when calling * IDBFactory.open), it returns null. - * - * MDN */ def source: js.Any = js.native /** The event handler for the success event. - * - * MDN */ var onsuccess: js.Function1[Event, _] = js.native /** Returns a DOMException in the event of an unsuccessful request, indicating what went wrong. - * - * MDN */ def error: DOMException = js.native /** The transaction for the request. This property can be null for certain requests, such as for request returned from * IDBFactory.open (You're just connecting to a database, so there is no transaction to return). - * - * MDN */ def transaction: IDBTransaction = js.native /** The event handler for the error event. - * - * MDN */ var onerror: js.Function1[Event, _] = js.native /** The state of the request. Every request starts in the pending state. The state changes to done when the request * completes successfully or when an error occurs. - * - * MDN */ def readyState: String = js.native /** Returns the result of the request. If the the request failed and the result is not available, * the InvalidStateError exception is thrown. - * - * MDN */ def result: js.Any = js.native } /** The IDBEvironment interface of the IndexedDB API provides asynchronous access to a client-side database. It is * implemented by window and Worker objects. - * - * MDN */ @deprecated( "Removed. This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible. See https://developer.mozilla.org/en-US/docs/Web/API/IDBEnvironment", @@ -739,8 +567,6 @@ trait IDBEnvironment extends js.Object { /** an IDBRequest object that communicates back to the requesting application through events. This design means that * any number of requests can be active on any database at a time. - * - * MDN */ @deprecated("Use window.indexedDB", "1.2.0") def indexedDB: IDBFactory = js.native diff --git a/src/main/scala/org/scalajs/dom/Notification.scala b/src/main/scala/org/scalajs/dom/Notification.scala index c776c7a5d..a0cc95a8c 100644 --- a/src/main/scala/org/scalajs/dom/Notification.scala +++ b/src/main/scala/org/scalajs/dom/Notification.scala @@ -7,62 +7,44 @@ import scala.scalajs.js.annotation._ trait NotificationOptions extends js.Object { /** The body property of the Notification interface indicates the body string of the notification. - * - * MDN */ val body: String = js.native /** The dir property of the Notification interface indicates the text direction of the notification. - * - * MDN */ val dir: String = js.native /** The icon property of the Notification interface contains the URL of an icon to be displayed as part of the * notification. - * - * MDN */ val icon: String = js.native /** The lang property of the Notification interface indicates the text direction of the notification. - * - * MDN */ val lang: String = js.native /** The noscreen property of the Notification interface specifies whether the notification firing should enable the * device's screen or not. - * - * MDN */ val noscreen: Boolean = js.native /** The renotify property of the Notification interface specifies whether the user should be notified after a new * notification replaces an old one. - * - * MDN */ val renotify: Boolean = js.native /** The silent property of the Notification interface specifies whether the notification should be silent, i.e. no * sounds or vibrations should be issued, regardless of the device settings. - * - * MDN */ val silent: Boolean = js.native /** The sound property of the Notification interface specifies the URL of an audio file to be played when the * notification fires. - * - * MDN */ val sound: String = js.native /** The sticky property of the Notification interface specifies whether the notification should be 'sticky', i.e. not * easily clearable by the user. - * - * MDN */ val sticky: Boolean = js.native @@ -71,23 +53,17 @@ trait NotificationOptions extends js.Object { * The idea of notification tags is that more than one notification can share the same tag, linking them together. * One notification can then be programmatically replaced with another to avoid the users' screen being filled up * with a huge number of similar notifications. - * - * MDN */ val tag: String = js.native /** The onclick property of the Notification interface specifies an event listener to receive click events. These * events occur when the user clicks on a displayed Notification. - * - * MDN */ val onclick: js.Function0[Any] = js.native /** The onerror property of the Notification interface specifies an event listener to receive error events. These * events occur when something goes wrong with a Notification (in many cases an error preventing the notification * from being displayed.) - * - * MDN */ val onerror: js.Function0[Any] = js.native @@ -162,15 +138,11 @@ object Notification extends js.Object { /** The permission read-only property of the Notification interface indicates the current permission granted by the * user for the current origin to display web notifications. - * - * MDN */ val permission: String = js.native /** The requestPermission() method of the Notification interface requests permission from the user for the current * origin to display notifications. - * - * MDN */ def requestPermission(callback: js.Function1[String, Any]): Unit = js.native } @@ -179,8 +151,6 @@ object Notification extends js.Object { * * NOTE: requires permission Note: This feature is available in Web Workers. * - * MDN - * * @param title * The text title of the notification * @param options @@ -194,8 +164,6 @@ class Notification(title: String, options: NotificationOptions = ???) extends Ev /** The body read-only property of the Notification interface indicates the body string of the notification, as * specified in the body option of the Notification() constructor. - * - * MDN */ val body: String = js.native @@ -203,80 +171,58 @@ class Notification(title: String, options: NotificationOptions = ???) extends Ev * as specified in the data option of the Notification() constructor. * * The notification's data can be any arbitrary data that you want associated with the notification. - * - * MDN */ val data: js.Object = js.native /** The dir read-only property of the Notification interface indicates the text direction of the notification, * asspecified in the dir option of the Notification() constructor. - * - * MDN */ val dir: String = js.native /** The icon read-only property of the Notification interface contains the URL of an icon to be displayed as part of * the notification, as specified in the icon option of the Notification() constructor. - * - * MDN */ val icon: String = js.native /** The lang read-only property of the Notification interface indicates the text direction of the notification, as * specified in the lang option of the Notification() constructor. - * - * MDN */ val lang: String = js.native /** The noscreen read-only property of the Notification interface specifies whether the notification firing should * enable the device's screen or not, as specified in the noscreen option of the Notification() constructor. - * - * MDN */ val noscreen: Boolean = js.native /** The onclick property of the Notification interface specifies an event listener to receive click events. These * events occur when the user clicks on a displayed Notification. - * - * MDN */ var onclick: js.Function0[Any] = js.native /** The onerror property of the Notification interface specifies an event listener to receive error events. These * events occur when something goes wrong with a Notification (in many cases an error preventing the notification * from being displayed.) - * - * MDN */ var onerror: js.Function0[Any] = js.native /** The renotify read-only property of the Notification interface specifies whether the user should be notified after * a new notification replaces an old one, as specified in the renotify option of the Notification() constructor. - * - * MDN */ val renotify: Boolean = js.native /** The silent read-only property of the Notification interface specifies whether the notification should be silent, * i.e. no sounds or vibrations should be issued, regardless of the device settings. This is specified in the * renotify option of the Notification() constructor. - * - * MDN */ val silent: Boolean = js.native /** The sound read-only property of the Notification interface specifies the URL of an audio file to be played when * the notification fires. This is specified in the sound option of the Notification() constructor. - * - * MDN */ val sound: String = js.native /** The sticky read-only property of the Notification interface specifies whether the notification should be 'sticky', * i.e. not easily clearable by the user. This is specified in the sticky option of the Notification() constructor. - * - * MDN */ val sticky: Boolean = js.native @@ -286,21 +232,15 @@ class Notification(title: String, options: NotificationOptions = ???) extends Ev * The idea of notification tags is that more than one notification can share the same tag, linking them together. * One notification can then be programmatically replaced with another to avoid the users' screen being filled up * with a huge number of similar notifications. - * - * MDN */ val tag: String = js.native /** The vibrate read-only property of the Notification interface. Specifies a vibration pattern for devices with * vibration hardware to emit. - * - * MDN */ val vibrate: js.Array[Double] = js.native /** The close() method of the Notification interface is used to close a previously displayed notification. - * - * MDN */ def close(): Unit = js.native } diff --git a/src/main/scala/org/scalajs/dom/OffscreenCanvas.scala b/src/main/scala/org/scalajs/dom/OffscreenCanvas.scala index 9ee8cfbb4..15738b48e 100644 --- a/src/main/scala/org/scalajs/dom/OffscreenCanvas.scala +++ b/src/main/scala/org/scalajs/dom/OffscreenCanvas.scala @@ -5,30 +5,22 @@ import scala.scalajs.js.annotation.JSGlobal /** The OffscreenCanvas interface provides a canvas that can be rendered off screen. It is available in both the window * and worker contexts. - * - * MDN */ @js.native @JSGlobal class OffscreenCanvas(var width: Double, var height: Double) extends js.Object { /** Returns a rendering context for the offscreen canvas. - * - * MDN */ def getContext(contextType: String): js.Dynamic = js.native def getContext(contextType: String, contextAttributes: WebGLContextAttributes): js.Dynamic = js.native def getContext(contextType: String, contextAttributes: TwoDContextAttributes): js.Dynamic = js.native /** Creates a Blob object representing the image contained in the canvas. - * - * MDN */ def convertToBlob(options: ConvertToBlobOptions = ???): js.Promise[Blob] = js.native /** Creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. - * - * MDN */ def transferToImageBitmap(): ImageBitmap = js.native } diff --git a/src/main/scala/org/scalajs/dom/SVGTypes.scala b/src/main/scala/org/scalajs/dom/SVGTypes.scala index 11e17e102..074d5c0fe 100644 --- a/src/main/scala/org/scalajs/dom/SVGTypes.scala +++ b/src/main/scala/org/scalajs/dom/SVGTypes.scala @@ -1,5 +1,5 @@ -/** Documentation marked "MDN" 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. +/** 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 @@ -25,8 +25,6 @@ class SVGPathSegCurvetoQuadraticRel extends SVGPathSeg { /** The marker element defines the graphics that is to be used for drawing arrowheads or polymarkers on a given * <path> , <line> , <polyline> or <polygon> element. - * - * MDN */ @js.native @JSGlobal @@ -62,8 +60,6 @@ object SVGMarkerElement extends js.Object { } /** The SVGGElement interface corresponds to the <g> element. - * - * MDN */ @js.native @JSGlobal @@ -112,8 +108,6 @@ class SVGPathSegMovetoRel extends SVGPathSeg { /** The SVGLineElement interface provides access to the properties of <line> elements, as well as methods to * manipulate them. - * - * MDN */ @js.native @JSGlobal @@ -122,33 +116,23 @@ abstract class SVGLineElement with SVGExternalResourcesRequired { /** Corresponds to attribute y1 on the given <line> element. - * - * MDN */ def y1: SVGAnimatedLength = js.native /** Corresponds to attribute x2 on the given <line> element. - * - * MDN */ def x2: SVGAnimatedLength = js.native /** Corresponds to attribute x1 on the given <line> element. - * - * MDN */ def x1: SVGAnimatedLength = js.native /** Corresponds to attribute y2 on the given <line> element. - * - * MDN */ def y2: SVGAnimatedLength = js.native } /** The SVGDescElement interface corresponds to the <desc> element. - * - * MDN */ @js.native @JSGlobal @@ -163,8 +147,6 @@ class SVGPathSegCurvetoQuadraticSmoothRel extends SVGPathSeg { /** The SVGClipPathElement interface provides access to the properties of <clippath> elements, as well as methods * to manipulate them. - * - * MDN */ @js.native @JSGlobal @@ -174,48 +156,34 @@ abstract class SVGClipPathElement /** Corresponds to attribute clipPathUnits on the given <clippath> element. Takes one of the constants defined * in SVGUnitTypes - * - * MDN */ def clipPathUnits: SVGAnimatedEnumeration = js.native } /** The SVGTextPositioningElement interface is inherited by text-related interfaces: SVGTextElement, SVGTSpanElement, * SVGTRefElement and SVGAltGlyphElement. - * - * MDN */ @js.native @JSGlobal abstract class SVGTextPositioningElement extends SVGTextContentElement { /** Corresponds to attribute y on the given element. - * - * MDN */ def y: SVGAnimatedLengthList = js.native /** Corresponds to attribute rotate on the given element. - * - * MDN */ def rotate: SVGAnimatedNumberList = js.native /** Corresponds to attribute dy on the given element. - * - * MDN */ def dy: SVGAnimatedLengthList = js.native /** Corresponds to attribute x on the given element. - * - * MDN */ def x: SVGAnimatedLengthList = js.native /** Corresponds to attribute dx on the given element. - * - * MDN */ def dx: SVGAnimatedLengthList = js.native } @@ -227,8 +195,6 @@ class SVGPathSegLinetoVerticalRel extends SVGPathSeg { } /** The SVGAnimatedString interface is used for attributes of type DOMString which can be animated. - * - * MDN */ @js.native @JSGlobal @@ -236,54 +202,38 @@ class SVGAnimatedString extends js.Object { /** If the given attribute or property is being animated, contains the current animated value of the attribute or * property. If the given attribute or property is not currently being animated, contains the same value as baseVal. - * - * MDN */ def animVal: String = js.native /** The base value of the given attribute before applying any animations. - * - * MDN */ var baseVal: String = js.native } /** Interface SVGTests defines an interface which applies to all elements which have attributes requiredFeatures, * requiredExtensions and systemLanguage. - * - * MDN */ @js.native trait SVGTests extends js.Object { /** Corresponds to attribute requiredFeatures on the given element. - * - * MDN */ var requiredFeatures: SVGStringList = js.native /** Corresponds to attribute requiredExtensions on the given element. - * - * MDN */ var requiredExtensions: SVGStringList = js.native /** Corresponds to attribute systemLanguage on the given element. - * - * MDN */ var systemLanguage: SVGStringList = js.native /** Returns true if the browser supports the given extension, specified by a URI. - * - * MDN */ def hasExtension(extension: String): Boolean = js.native } /** The SVGPatternElement interface corresponds to the <pattern> element. - * - * MDN */ @js.native @JSGlobal @@ -293,52 +243,36 @@ abstract class SVGPatternElement /** Corresponds to attribute patternUnits on the given <pattern> element. Takes one of the constants defined in * SVGUnitTypes. - * - * MDN */ def patternUnits: SVGAnimatedEnumeration = js.native /** Corresponds to attribute y on the given <pattern> element. - * - * MDN */ def y: SVGAnimatedLength = js.native /** Corresponds to attribute width on the given <pattern> element. - * - * MDN */ def width: SVGAnimatedLength = js.native /** Corresponds to attribute x on the given <pattern> element. - * - * MDN */ def x: SVGAnimatedLength = js.native /** Corresponds to attribute patternContentUnits on the given <pattern> element. Takes one of the constants * defined in SVGUnitTypes. - * - * MDN */ def patternContentUnits: SVGAnimatedEnumeration = js.native /** Corresponds to attribute patternTransform on the given <pattern> element. - * - * MDN */ def patternTransform: SVGAnimatedTransformList = js.native /** Corresponds to attribute height on the given <pattern> element. - * - * MDN */ def height: SVGAnimatedLength = js.native } /** The SVGAnimatedAngle interface is used for attributes of basic type <angle> which can be animated. - * - * MDN */ @js.native @JSGlobal @@ -347,21 +281,15 @@ class SVGAnimatedAngle extends js.Object { /** A read only SVGAngle representing the current animated value of the given attribute. If the given attribute is not * currently being animated, then the SVGAngle will have the same contents as baseVal. The object referenced by * animVal will always be distinct from the one referenced by baseVal, even when the attribute is not animated. - * - * MDN */ def animVal: SVGAngle = js.native /** The base value of the given attribute before applying any animations. - * - * MDN */ var baseVal: SVGAngle = js.native } /** The SVGScriptElement interface corresponds to the SVG <script> element. - * - * MDN */ @js.native @JSGlobal @@ -371,8 +299,6 @@ abstract class SVGScriptElement extends SVGElement with SVGExternalResourcesRequ /** The SVGViewElement interface provides access to the properties of <view> elements, as well as methods to * manipulate them. - * - * MDN */ @js.native @JSGlobal @@ -382,8 +308,6 @@ abstract class SVGViewElement /** Corresponds to attribute viewTarget on the given <view> element. A list of DOMString values which contain * the names listed in the viewTarget attribute. Each of the DOMString values can be associated with the * corresponding element using the getElementById() method call. - * - * MDN */ def viewTarget: SVGStringList = js.native } @@ -403,8 +327,6 @@ trait SVGLocatable extends js.Object { } /** The SVGTitleElement interface corresponds to the <title> element. - * - * MDN */ @js.native @JSGlobal @@ -412,8 +334,6 @@ abstract class SVGTitleElement extends SVGElement with SVGStylable with SVGLangS /** The SVGAnimatedTransformList interface is used for attributes which take a list of numbers and which can be * animated. - * - * MDN */ @js.native @JSGlobal @@ -423,14 +343,10 @@ class SVGAnimatedTransformList extends js.Object { * attribute is not currently being animated, then the SVGTransformList will have the same contents as baseVal. The * object referenced by animVal will always be distinct from the one referenced by baseVal, even when the attribute * is not animated. - * - * MDN */ def animVal: SVGTransformList = js.native /** The base value of the given attribute before applying any animations. - * - * MDN */ var baseVal: SVGTransformList = js.native } @@ -462,8 +378,6 @@ class SVGPointList extends js.Object { } /** The SVGAnimatedLengthList interface is used for attributes of type SVGLengthList which can be animated. - * - * MDN */ @js.native @JSGlobal @@ -473,22 +387,16 @@ class SVGAnimatedLengthList extends js.Object { * is not currently being animated, then the SVGLengthList will have the same contents as baseVal. The object * referenced by animVal will always be distinct from the one referenced by baseVal, even when the attribute is not * animated. - * - * MDN */ def animVal: SVGLengthList = js.native /** The base value of the given attribute before applying any animations. - * - * MDN */ var baseVal: SVGLengthList = js.native } /** The SVGAnimatedPreserveAspectRatio interface is used for attributes of type SVGPreserveAspectRatio which can be * animated. - * - * MDN */ @js.native @JSGlobal @@ -498,14 +406,10 @@ class SVGAnimatedPreserveAspectRatio extends js.Object { * attribute is not currently being animated, then the SVGPreserveAspectRatio will have the same contents as baseVal. * The object referenced by animVal is always distinct from the one referenced by baseVal, even when the attribute is * not animated. - * - * MDN */ def animVal: SVGPreserveAspectRatio = js.native /** The base value of the given attribute before applying any animations. - * - * MDN */ var baseVal: SVGPreserveAspectRatio = js.native } @@ -516,8 +420,6 @@ trait SVGExternalResourcesRequired extends js.Object { } /** The SVGAngle interface correspond to the <angle> basic data type. - * - * MDN */ @js.native @JSGlobal @@ -528,8 +430,6 @@ class SVGAngle extends js.Object { * DOMException with code SYNTAX_ERR is raised if the assigned string cannot be parsed as a valid <angle>. a * DOMException with code NO_MODIFICATION_ALLOWED_ERR is raised when the length corresponds to a read only attribute * or when the object itself is read only. - * - * MDN */ var valueAsString: String = js.native @@ -537,8 +437,6 @@ class SVGAngle extends js.Object { * and valueAsString to be updated automatically to reflect this setting. Exceptions on setting: a DOMException with * code NO_MODIFICATION_ALLOWED_ERR is raised when the length corresponds to a read only attribute or when the object * itself is read only. - * - * MDN */ var valueInSpecifiedUnits: Double = js.native @@ -546,14 +444,10 @@ class SVGAngle extends js.Object { * valueAsString to be updated automatically to reflect this setting. Exceptions on setting: a DOMException with code * NO_MODIFICATION_ALLOWED_ERR is raised when the length corresponds to a read only attribute or when the object * itself is read only. - * - * MDN */ var value: Double = js.native /** The type of the value as specified by one of the SVG_ANGLETYPE_* constants defined on this interface. - * - * MDN */ def unitType: Int = js.native @@ -562,22 +456,16 @@ class SVGAngle extends js.Object { * or not a valid unit type constant (one of the other SVG_ANGLETYPE_* constants defined on this interface). a * DOMException with code NO_MODIFICATION_ALLOWED_ERR is raised when the length corresponds to a read only attribute * or when the object itself is read only. - * - * MDN */ def newValueSpecifiedUnits(unitType: Int, valueInSpecifiedUnits: Double): Unit = js.native /** Preserve the same underlying stored value, but reset the stored unit identifier to the given unitType. Object * attributes unitType, valueInSpecifiedUnits and valueAsString might be modified as a result of this method. - * - * MDN */ def convertToSpecifiedUnits(unitType: Int): Unit = js.native } /** The SVGAngle interface correspond to the <angle> basic data type. - * - * MDN */ @js.native @JSGlobal @@ -587,15 +475,11 @@ object SVGAngle extends js.Object { /** The unit type is not one of predefined unit types. It is invalid to attempt to define a new value of this type or * to attempt to switch an existing value to this type. - * - * MDN */ val SVG_ANGLETYPE_UNKNOWN: Int = js.native val SVG_ANGLETYPE_UNSPECIFIED: Int = js.native /** The unit type was explicitly set to degrees. - * - * MDN */ val SVG_ANGLETYPE_DEG: Int = js.native val SVG_ANGLETYPE_GRAD: Int = js.native @@ -603,8 +487,6 @@ object SVGAngle extends js.Object { /** All of the SVG DOM interfaces that correspond directly to elements in the SVG language derive from the SVGElement * interface. - * - * MDN */ @js.native @JSGlobal @@ -613,8 +495,6 @@ abstract class SVGElement extends Element { /** The element which established the current viewport. Often, the nearest ancestor <svg> element. Null if the * given element is the outermost svg element. - * - * MDN */ def viewportElement: SVGElement = js.native @@ -625,8 +505,6 @@ abstract class SVGElement extends Element { var onfocusin: js.Function1[FocusEvent, _] = js.native /** Corresponds to attribute xml:base on the given element. - * - * MDN */ var xmlbase: String = js.native var onmousedown: js.Function1[MouseEvent, _] = js.native @@ -635,8 +513,6 @@ abstract class SVGElement extends Element { var onclick: js.Function1[MouseEvent, _] = js.native /** The nearest ancestor <svg> element. Null if the given element is the outermost svg element. - * - * MDN */ def ownerSVGElement: SVGSVGElement = js.native } @@ -660,8 +536,6 @@ class SVGPathSegArcAbs extends SVGPathSeg { } /** The SVGTransformList defines a list of SVGTransform objects. - * - * MDN */ @js.native @JSGlobal @@ -672,8 +546,6 @@ class SVGTransformList extends js.Object { * the item are immediately reflected in the list. The first item is number 0. Exceptions: a DOMException with code * NO_MODIFICATION_ALLOWED_ERR is raised when the list corresponds to a read only attribute or when the object itself * is read only. - * - * MDN */ def getItem(index: Int): SVGTransform = js.native @@ -682,8 +554,6 @@ class SVGTransformList extends js.Object { /** Clears all existing current items from the list, with the result being an empty list. Exceptions: a DOMException * with code NO_MODIFICATION_ALLOWED_ERR is raised when the list corresponds to a read only attribute or when the * object itself is read only. - * - * MDN */ def clear(): Unit = js.native @@ -691,8 +561,6 @@ class SVGTransformList extends js.Object { * before it is inserted into this list. The inserted item is the item itself and not a copy. Exceptions: a * DOMException with code NO_MODIFICATION_ALLOWED_ERR is raised when the list corresponds to a read only attribute or * when the object itself is read only. - * - * MDN */ def appendItem(newItem: SVGTransform): SVGTransform = js.native @@ -701,16 +569,12 @@ class SVGTransformList extends js.Object { * inserted into this list. The inserted item is the item itself and not a copy. The return value is the item * inserted into the list. Exceptions: a DOMException with code NO_MODIFICATION_ALLOWED_ERR is raised when the list * corresponds to a read only attribute or when the object itself is read only. - * - * MDN */ def initialize(newItem: SVGTransform): SVGTransform = js.native /** Removes an existing item from the list. Exceptions: a DOMException with code NO_MODIFICATION_ALLOWED_ERR is raised * when the list corresponds to a read only attribute or when the object itself is read only. a DOMException with * code INDEX_SIZE_ERR is raised if the index number is greater than or equal to numberOfItems. - * - * MDN */ def removeItem(index: Int): SVGTransform = js.native @@ -721,8 +585,6 @@ class SVGTransformList extends js.Object { * list. If the index is greater than or equal to numberOfItems, then the new item is appended to the end of the * list. Exceptions: a DOMException with code NO_MODIFICATION_ALLOWED_ERR is raised when the list corresponds to a * read only attribute or when the object itself is read only. - * - * MDN */ def insertItemBefore(newItem: SVGTransform, index: Int): SVGTransform = js.native @@ -732,8 +594,6 @@ class SVGTransformList extends js.Object { * Exceptions: a DOMException with code NO_MODIFICATION_ALLOWED_ERR is raised when the list corresponds to a read * only attribute or when the object itself is read only. a DOMException with code INDEX_SIZE_ERR is raised if the * index number is greater than or equal to numberOfItems. - * - * MDN */ def replaceItem(newItem: SVGTransform, index: Int): SVGTransform = js.native @@ -745,8 +605,6 @@ class SVGTransformList extends js.Object { class SVGPathSegClosePath extends SVGPathSeg /** The SVGAnimatedLength interface is used for attributes of basic type <length> which can be animated. - * - * MDN */ @js.native @JSGlobal @@ -754,44 +612,32 @@ class SVGAnimatedLength extends js.Object { /** If the given attribute or property is being animated, contains the current animated value of the attribute or * property. If the given attribute or property is not currently being animated, contains the same value as baseVal. - * - * MDN */ def animVal: SVGLength = js.native /** The base value of the given attribute before applying any animations. - * - * MDN */ var baseVal: SVGLength = js.native } /** The SVGAnimatedPoints interface supports elements which have a points attribute which holds a list of coordinate * values and which support the ability to animate that attribute. - * - * MDN */ @js.native trait SVGAnimatedPoints extends js.Object { /** Provides access to the base (i.e., static) contents of the points attribute. - * - * MDN */ var points: SVGPointList = js.native /** Provides access to the current animated contents of the points attribute. If the given attribute or property is * being animated, contains the current animated value of the attribute or property. If the given attribute or * property is not currently being animated, contains the same value as points. - * - * MDN */ def animatedPoints: SVGPointList = js.native } /** The SVGDefsElement interface corresponds to the <defs> element. - * - * MDN */ @js.native @JSGlobal @@ -807,8 +653,6 @@ class SVGPathSegLinetoHorizontalRel extends SVGPathSeg { /** The SVGEllipseElement interface provides access to the properties of <ellipse> elements, as well as methods to * manipulate them. - * - * MDN */ @js.native @JSGlobal @@ -817,34 +661,24 @@ abstract class SVGEllipseElement with SVGExternalResourcesRequired { /** Corresponds to attribute ry on the given <ellipse> element. - * - * MDN */ def ry: SVGAnimatedLength = js.native /** Corresponds to attribute cx on the given <ellipse> element. - * - * MDN */ def cx: SVGAnimatedLength = js.native /** Corresponds to attribute rx on the given <ellipse> element. - * - * MDN */ def rx: SVGAnimatedLength = js.native /** Corresponds to attribute cy on the given <ellipse> element. - * - * MDN */ def cy: SVGAnimatedLength = js.native } /** The SVGAElement interface provides access to the properties of <a> elements, as well as methods to manipulate * them. - * - * MDN */ @js.native @JSGlobal @@ -853,44 +687,32 @@ abstract class SVGAElement with SVGExternalResourcesRequired with SVGURIReference { /** Corresponds to attribute target on the given <a> element. - * - * MDN */ def target: SVGAnimatedString = js.native } /** The SVGStylable interface is implemented on all objects corresponding to SVG elements that can have style, class and * presentation attributes specified on them. - * - * MDN */ @js.native trait SVGStylable extends js.Object { /** Corresponds to attribute class on the given element. - * - * MDN */ var className: SVGAnimatedString = js.native /** Corresponds to attribute style on the given element. - * - * MDN */ var style: CSSStyleDeclaration = js.native } /** Interface SVGTransformable contains properties and methods that apply to all elements which have attribute * transform. - * - * MDN */ @js.native trait SVGTransformable extends SVGLocatable { /** Corresponds to attribute transform on the given element. - * - * MDN */ var transform: SVGAnimatedTransformList = js.native } @@ -911,8 +733,6 @@ class SVGPoint extends js.Object { } /** The SVGAnimatedNumber interface is used for attributes which take a list of numbers and which can be animated. - * - * MDN */ @js.native @JSGlobal @@ -922,14 +742,10 @@ class SVGAnimatedNumberList extends js.Object { * is not currently being animated, then the SVGNumberList will have the same contents as baseVal. The object * referenced by animVal will always be distinct from the one referenced by baseVal, even when the attribute is not * animated. - * - * MDN */ def animVal: SVGNumberList = js.native /** The base value of the given attribute before applying any animations. - * - * MDN */ def baseVal: SVGNumberList = js.native } @@ -937,8 +753,6 @@ class SVGAnimatedNumberList extends js.Object { /** The SVGSVGElement interface provides access to the properties of <svg> elements, as well as methods to * manipulate them. This interface contains also various miscellaneous commonly-used utility methods, such as matrix * operations and the ability to control the time of redraw on visual rendering devices. - * - * MDN */ @js.native @JSGlobal @@ -947,27 +761,19 @@ abstract class SVGSVGElement with SVGTests with SVGFitToViewBox with SVGExternalResourcesRequired { /** Corresponds to attribute width on the given <svg> element. - * - * MDN */ def width: SVGAnimatedLength = js.native /** Corresponds to attribute x on the given <svg> element. - * - * MDN */ def x: SVGAnimatedLength = js.native /** Corresponds to attribute contentStyleType on the given <svg> element. - * - * MDN */ var contentStyleType: String = js.native var onzoom: js.Function1[js.Any, _] = js.native /** Corresponds to attribute y on the given <svg> element. - * - * MDN */ def y: SVGAnimatedLength = js.native @@ -978,38 +784,28 @@ abstract class SVGSVGElement * is embedded as part of another document (e.g., via the HTML <object> element), then the position and size * are unitless values in the coordinate system of the parent document. (If the parent uses CSS or XSL layout, then * unitless values represent pixel units for the current CSS or XSL viewport.) - * - * MDN */ def viewport: SVGRect = js.native var onerror: js.Function1[Event, _] = js.native /** Corresponding size of a pixel unit along the y-axis of the viewport. - * - * MDN */ def pixelUnitToMillimeterY: Double = js.native var onresize: js.Function1[UIEvent, _] = js.native /** Corresponding size of a screen pixel along the y-axis of the viewport. - * - * MDN */ def screenPixelToMillimeterY: Double = js.native /** Corresponds to attribute height on the given <svg> element. - * - * MDN */ def height: SVGAnimatedLength = js.native var onabort: js.Function1[UIEvent, _] = js.native /** Corresponds to attribute contentScriptType on the given <svg> element. - * - * MDN */ var contentScriptType: String = js.native @@ -1017,15 +813,11 @@ abstract class SVGSVGElement * the range of 70dpi to 120dpi, and, on systems that support this, might actually match the characteristics of the * target medium. On systems where it is impossible to know the size of a pixel, a suitable default pixel size is * provided. - * - * MDN */ def pixelUnitToMillimeterX: Double = js.native /** On an outermost <svg> element, the corresponding translation factor that takes into account user * "magnification". - * - * MDN */ def currentTranslate: SVGPoint = js.native @@ -1037,8 +829,6 @@ abstract class SVGSVGElement * currentTranslate.x currentTranslate.y]. If "magnification" is enabled (i.e., zoomAndPan="magnify"), then the * effect is as if an extra transformation were placed at the outermost level on the SVG document fragment (i.e., * outside the outermost <svg> element). - * - * MDN */ def currentScale: Double = js.native @@ -1047,8 +837,6 @@ abstract class SVGSVGElement /** User interface (UI) events in DOM Level 2 indicate the screen positions at which the given UI event occurred. When * the browser actually knows the physical size of a "screen unit", this attribute will express that information; * otherwise, user agents will provide a suitable default value such as .28mm. - * - * MDN */ def screenPixelToMillimeterX: Double = js.native @@ -1056,60 +844,44 @@ abstract class SVGSVGElement * before the document timeline has begun (for example, by script running in a <script> element before the * document's SVGLoad event is dispatched), then the value of seconds in the last invocation of the method gives the * time that the document will seek to once the document timeline has begun. - * - * MDN */ def setCurrentTime(seconds: Double): Unit = js.native /** Creates an SVGLength object outside of any document trees. The object is initialized to a value of zero user * units. - * - * MDN */ def createSVGLength(): SVGLength = js.native /** Returns the list of graphics elements whose rendered content intersects the supplied rectangle. Each candidate * graphics element is to be considered a match only if the same graphics element can be a target of pointer events * as defined in pointer-events processing. - * - * MDN */ def getIntersectionList(rect: SVGRect, referenceElement: SVGElement): NodeList[Node] = js.native /** Unsuspends (i.e., unpauses) currently running animations that are defined within the SVG document fragment, * causing the animation clock to continue from the time at which it was suspended. - * - * MDN */ def unpauseAnimations(): Unit = js.native /** Creates an SVGRect object outside of any document trees. The object is initialized such that all values are set to * 0 user units. - * - * MDN */ def createSVGRect(): SVGRect = js.native /** Returns true if the rendered content of the given element intersects the supplied rectangle. Each candidate * graphics element is to be considered a match only if the same graphics element can be a target of pointer events * as defined in pointer-events processing. - * - * MDN */ def checkIntersection(element: SVGElement, rect: SVGRect): Boolean = js.native /** Cancels all currently active suspendRedraw() method calls. This method is most useful at the very end of a set of * SVG DOM calls to ensure that all pending suspendRedraw() method calls have been cancelled. - * - * MDN */ def unsuspendRedrawAll(): Unit = js.native /** Suspends (i.e., pauses) all currently running animations that are defined within the SVG document fragment * corresponding to this <svg> element, causing the animation clock corresponding to this document fragment to * stand still until it is unpaused. - * - * MDN */ def pauseAnimations(): Unit = js.native @@ -1121,21 +893,15 @@ abstract class SVGSVGElement * suspendRedraw(maxWaitMilliseconds); and follow the changes with a method call similar to: * unsuspendRedraw(suspendHandleID); Note that multiple suspendRedraw calls can be used at once and that each such * method call is treated independently of the other suspendRedraw method calls. - * - * MDN */ def suspendRedraw(maxWaitMilliseconds: Int): Int = js.native /** Unselects any selected objects, including any selections of text strings and type-in bars. - * - * MDN */ def deselectAll(): Unit = js.native /** Creates an SVGAngle object outside of any document trees. The object is initialized to a value of zero degrees * (unitless). - * - * MDN */ def createSVGAngle(): SVGAngle = js.native @@ -1143,65 +909,47 @@ abstract class SVGSVGElement /** Creates an SVGTransform object outside of any document trees. The object is initialized to an identity matrix * transform (SVG_TRANSFORM_MATRIX). - * - * MDN */ def createSVGTransform(): SVGTransform = js.native /** Cancels a specified suspendRedraw() by providing a unique suspend handle ID that was returned by a previous * suspendRedraw() call. - * - * MDN */ def unsuspendRedraw(suspendHandleID: Int): Unit = js.native /** In rendering environments supporting interactivity, forces the user agent to immediately redraw all regions of the * viewport that require updating. - * - * MDN */ def forceRedraw(): Unit = js.native /** Returns the current time in seconds relative to the start time for the current SVG document fragment. If * getCurrentTime is called before the document timeline has begun (for example, by script running in a * <script> element before the document's SVGLoad event is dispatched), then 0 is returned. - * - * MDN */ def getCurrentTime(): Int = js.native /** Returns true if the rendered content of the given element is entirely contained within the supplied rectangle. * Each candidate graphics element is to be considered a match only if the same graphics element can be a target of * pointer events as defined in pointer-events processing. - * - * MDN */ def checkEnclosure(element: SVGElement, rect: SVGRect): Boolean = js.native /** Creates an SVGMatrix object outside of any document trees. The object is initialized to the identity matrix. - * - * MDN */ def createSVGMatrix(): SVGMatrix = js.native /** Creates an SVGPoint object outside of any document trees. The object is initialized to the point (0,0) in the user * coordinate system. - * - * MDN */ def createSVGPoint(): SVGPoint = js.native /** Creates an SVGNumber object outside of any document trees. The object is initialized to a value of zero. - * - * MDN */ def createSVGNumber(): SVGNumber = js.native /** Creates an SVGTransform object outside of any document trees. The object is initialized to the given matrix * transform (i.e., SVG_TRANSFORM_MATRIX). The values from the parameter matrix are copied, the matrix parameter is * not adopted as SVGTransform::matrix. - * - * MDN */ def createSVGTransformFromMatrix(matrix: SVGMatrix): SVGTransform = js.native @@ -1210,15 +958,11 @@ abstract class SVGSVGElement /** Searches this SVG document fragment (i.e., the search is restricted to a subset of the document tree) for an * Element whose id is given by elementId. If an Element is found, that Element is returned. If no such element * exists, returns null. Behavior is not defined if more than one element has this id. - * - * MDN */ def getElementById(elementId: String): Element = js.native } /** The SVGAnimatedInteger interface is used for attributes of basic type <integer> which can be animated. - * - * MDN */ @js.native @JSGlobal @@ -1226,21 +970,15 @@ class SVGAnimatedInteger extends js.Object { /** If the given attribute or property is being animated, contains the current animated value of the attribute or * property. If the given attribute or property is not currently being animated, contains the same value as baseVal. - * - * MDN */ def animVal: Int = js.native /** The base value of the given attribute before applying any animations. - * - * MDN */ var baseVal: Int = js.native } /** The SVGTextElement interface corresponds to the <text> elements. - * - * MDN */ @js.native @JSGlobal @@ -1248,8 +986,6 @@ abstract class SVGTextElement extends SVGTextPositioningElement with SVGTransfor /** The SVGTSpanElement interface provides access to the properties of <tspan> elements, as well as methods to * manipulate them. - * - * MDN */ @js.native @JSGlobal @@ -1262,8 +998,6 @@ class SVGPathSegLinetoVerticalAbs extends SVGPathSeg { } /** The SVGStyleElement interface corresponds to the SVG <style> element. - * - * MDN */ @js.native @JSGlobal @@ -1271,8 +1005,6 @@ abstract class SVGStyleElement extends SVGElement with SVGLangSpace { /** Corresponds to attribute media on the given element. A DOMException is raised with code * NO_MODIFICATION_ALLOWED_ERR on an attempt to change the value of a read only attribute. - * - * MDN */ var media: String = js.native @@ -1280,54 +1012,38 @@ abstract class SVGStyleElement extends SVGElement with SVGLangSpace { /** Corresponds to attribute title on the given element. A DOMException is raised with code * NO_MODIFICATION_ALLOWED_ERR on an attempt to change the value of a read only attribute. - * - * MDN */ var title: String = js.native } /** The SVGRadialGradientElement interface corresponds to the <radialgradient> element. - * - * MDN */ @js.native @JSGlobal class SVGRadialGradientElement extends SVGGradientElement { /** Corresponds to attribute cx on the given <radialgradient> element. - * - * MDN */ def cx: SVGAnimatedLength = js.native /** Corresponds to attribute r on the given <radialgradient> element. - * - * MDN */ def r: SVGAnimatedLength = js.native /** Corresponds to attribute cy on the given <radialgradient> element. - * - * MDN */ def cy: SVGAnimatedLength = js.native /** Corresponds to attribute fx on the given <radialgradient> element. - * - * MDN */ def fx: SVGAnimatedLength = js.native /** Corresponds to attribute fy on the given <radialgradient> element. - * - * MDN */ def fy: SVGAnimatedLength = js.native } /** The SVGImageElement interface corresponds to the <image> element. - * - * MDN */ @js.native @JSGlobal @@ -1336,39 +1052,27 @@ abstract class SVGImageElement with SVGExternalResourcesRequired with SVGURIReference { /** Corresponds to attribute y on the given <image> element. - * - * MDN */ def y: SVGAnimatedLength = js.native /** Corresponds to attribute width on the given <image> element. - * - * MDN */ def width: SVGAnimatedLength = js.native /** Corresponds to attribute preserveAspectRatio on the given <image> element. - * - * MDN */ def preserveAspectRatio: SVGAnimatedPreserveAspectRatio = js.native /** Corresponds to attribute x on the given <image> element. - * - * MDN */ def x: SVGAnimatedLength = js.native /** Corresponds to attribute height on the given <image> element. - * - * MDN */ def height: SVGAnimatedLength = js.native } /** The SVGAnimatedNumber interface is used for attributes of basic type <Number> which can be animated. - * - * MDN */ @js.native @JSGlobal @@ -1376,14 +1080,10 @@ class SVGAnimatedNumber extends js.Object { /** If the given attribute or property is being animated, contains the current animated value of the attribute or * property. If the given attribute or property is not currently being animated, contains the same value as baseVal. - * - * MDN */ def animVal: Double = js.native /** The base value of the given attribute before applying any animations. - * - * MDN */ var baseVal: Double = js.native } @@ -1412,8 +1112,6 @@ class SVGPathSegMovetoAbs extends SVGPathSeg { } /** The SVGStringList defines a list of DOMString objects. - * - * MDN */ @js.native @JSGlobal @@ -1426,8 +1124,6 @@ class SVGStringList extends js.Object { * Exceptions: a DOMException with code NO_MODIFICATION_ALLOWED_ERR is raised when the list corresponds to a read * only attribute or when the object itself is read only. a DOMException with code INDEX_SIZE_ERR is raised if the * index number is greater than or equal to numberOfItems. - * - * MDN */ def replaceItem(newItem: String, index: Int): String = js.native @@ -1435,16 +1131,12 @@ class SVGStringList extends js.Object { * the item are immediately reflected in the list. The first item is number 0. Exceptions: a DOMException with code * NO_MODIFICATION_ALLOWED_ERR is raised when the list corresponds to a read only attribute or when the object itself * is read only. - * - * MDN */ def getItem(index: Int): String = js.native /** Clears all existing current items from the list, with the result being an empty list. Exceptions: a DOMException * with code NO_MODIFICATION_ALLOWED_ERR is raised when the list corresponds to a read only attribute or when the * object itself is read only. - * - * MDN */ def clear(): Unit = js.native @@ -1452,8 +1144,6 @@ class SVGStringList extends js.Object { * before it is inserted into this list. The inserted item is the item itself and not a copy. Exceptions: a * DOMException with code NO_MODIFICATION_ALLOWED_ERR is raised when the list corresponds to a read only attribute or * when the object itself is read only. - * - * MDN */ def appendItem(newItem: String): String = js.native @@ -1462,16 +1152,12 @@ class SVGStringList extends js.Object { * inserted into this list. The inserted item is the item itself and not a copy. The return value is the item * inserted into the list. Exceptions: a DOMException with code NO_MODIFICATION_ALLOWED_ERR is raised when the list * corresponds to a read only attribute or when the object itself is read only. - * - * MDN */ def initialize(newItem: String): String = js.native /** Removes an existing item from the list. Exceptions: a DOMException with code NO_MODIFICATION_ALLOWED_ERR is raised * when the list corresponds to a read only attribute or when the object itself is read only. a DOMException with * code INDEX_SIZE_ERR is raised if the index number is greater than or equal to numberOfItems. - * - * MDN */ def removeItem(index: Int): String = js.native @@ -1482,15 +1168,11 @@ class SVGStringList extends js.Object { * list. If the index is greater than or equal to numberOfItems, then the new item is appended to the end of the * list. Exceptions: a DOMException with code NO_MODIFICATION_ALLOWED_ERR is raised when the list corresponds to a * read only attribute or when the object itself is read only. - * - * MDN */ def insertItemBefore(newItem: String, index: Int): String = js.native } /** The SVGLength interface correspond to the <length> basic data type. - * - * MDN */ @js.native @JSGlobal @@ -1501,8 +1183,6 @@ class SVGLength extends js.Object { * DOMException with code SYNTAX_ERR is raised if the assigned string cannot be parsed as a valid <length>. a * DOMException with code NO_MODIFICATION_ALLOWED_ERR is raised when the length corresponds to a read only attribute * or when the object itself is read only. - * - * MDN */ var valueAsString: String = js.native @@ -1510,8 +1190,6 @@ class SVGLength extends js.Object { * and valueAsString to be updated automatically to reflect this setting. Exceptions on setting: a DOMException with * code NO_MODIFICATION_ALLOWED_ERR is raised when the length corresponds to a read only attribute or when the object * itself is read only. - * - * MDN */ var valueInSpecifiedUnits: Double = js.native @@ -1519,14 +1197,10 @@ class SVGLength extends js.Object { * valueAsString to be updated automatically to reflect this setting. Exceptions on setting: a DOMException with code * NO_MODIFICATION_ALLOWED_ERR is raised when the length corresponds to a read only attribute or when the object * itself is read only. - * - * MDN */ var value: Double = js.native /** The type of the value as specified by one of the SVG_LENGTHTYPE_* constants defined on this interface. - * - * MDN */ def unitType: Int = js.native @@ -1535,8 +1209,6 @@ class SVGLength extends js.Object { * or not a valid unit type constant (one of the other SVG_LENGTHTYPE_* constants defined on this interface). a * DOMException with code NO_MODIFICATION_ALLOWED_ERR is raised when the length corresponds to a read only attribute * or when the object itself is read only. - * - * MDN */ def newValueSpecifiedUnits(unitType: Int, valueInSpecifiedUnits: Double): Unit = js.native @@ -1545,15 +1217,11 @@ class SVGLength extends js.Object { * example, if the original value were "0.5cm" and the method was invoked to convert to millimeters, then the * unitType would be changed to SVG_LENGTHTYPE_MM, valueInSpecifiedUnits would be changed to the numeric value 5 and * valueAsString would be changed to "5mm". - * - * MDN */ def convertToSpecifiedUnits(unitType: Int): Unit = js.native } /** The SVGLength interface correspond to the <length> basic data type. - * - * MDN */ @js.native @JSGlobal @@ -1571,8 +1239,6 @@ object SVGLength extends js.Object { /** The unit type is not one of predefined unit types. It is invalid to attempt to define a new value of this type or * to attempt to switch an existing value to this type. - * - * MDN */ val SVG_LENGTHTYPE_UNKNOWN: Int = js.native val SVG_LENGTHTYPE_EXS: Int = js.native @@ -1580,8 +1246,6 @@ object SVGLength extends js.Object { /** The SVGPolygonElement interface provides access to the properties of <polygon> elements, as well as methods to * manipulate them. - * - * MDN */ @js.native @JSGlobal @@ -1638,8 +1302,6 @@ object SVGTextContentElement extends js.Object { /** SVGTransform is the interface for one of the component transformations within an SVGTransformList; thus, an * SVGTransform object corresponds to a single component (e.g., scale(…) or matrix(…)) within a transform attribute. - * - * MDN */ @js.native @JSGlobal @@ -1648,8 +1310,6 @@ class SVGTransform extends js.Object { /** A convenience attribute for SVG_TRANSFORM_ROTATE, SVG_TRANSFORM_SKEWX and SVG_TRANSFORM_SKEWY. It holds the angle * that was specified. For SVG_TRANSFORM_MATRIX, SVG_TRANSFORM_TRANSLATE and SVG_TRANSFORM_SCALE, angle will be zero. - * - * MDN */ def angle: Double = js.native @@ -1662,40 +1322,30 @@ class SVGTransform extends js.Object { * SVG_TRANSFORM_SKEWX and SVG_TRANSFORM_SKEWY, a, b, c and d represent the matrix which will result in the given * skew (e=0 and f=0). For SVG_TRANSFORM_ROTATE, a, b, c, d, e and f together represent the matrix which will result * in the given rotation. When the rotation is around the center point (0, 0), e and f will be zero. - * - * MDN */ def matrix: SVGMatrix = js.native /** Sets the transform type to SVG_TRANSFORM_TRANSLATE, with parameters tx and ty defining the translation amounts. * Exceptions: a DOMException with code NO_MODIFICATION_ALLOWED_ERR is raised when attempting to modify a read only * attribute or when the object itself is read only. - * - * MDN */ def setTranslate(tx: Double, ty: Double): Unit = js.native /** Sets the transform type to SVG_TRANSFORM_SCALE, with parameters sx and sy defining the scale amounts. Exceptions: * a DOMException with code NO_MODIFICATION_ALLOWED_ERR is raised when attempting to modify a read only attribute or * when the object itself is read only. - * - * MDN */ def setScale(sx: Double, sy: Double): Unit = js.native /** Sets the transform type to SVG_TRANSFORM_MATRIX, with parameter matrix defining the new transformation. Note that * the values from the parameter matrix are copied. Exceptions: a DOMException with code NO_MODIFICATION_ALLOWED_ERR * is raised when attempting to modify a read only attribute or when the object itself is read only. - * - * MDN */ def setMatrix(matrix: SVGMatrix): Unit = js.native /** Sets the transform type to SVG_TRANSFORM_SKEWY, with parameter angle defining the amount of skew. Exceptions: a * DOMException with code NO_MODIFICATION_ALLOWED_ERR is raised when attempting to modify a read only attribute or * when the object itself is read only. - * - * MDN */ def setSkewY(angle: Double): Unit = js.native @@ -1703,24 +1353,18 @@ class SVGTransform extends js.Object { * cx and cy defining the optional center of rotation. Exceptions: a DOMException with code * NO_MODIFICATION_ALLOWED_ERR is raised when attempting to modify a read only attribute or when the object itself is * read only. - * - * MDN */ def setRotate(angle: Double, cx: Double, cy: Double): Unit = js.native /** Sets the transform type to SVG_TRANSFORM_SKEWX, with parameter angle defining the amount of skew. Exceptions: a * DOMException with code NO_MODIFICATION_ALLOWED_ERR is raised when attempting to modify a read only attribute or * when the object itself is read only. - * - * MDN */ def setSkewX(angle: Double): Unit = js.native } /** SVGTransform is the interface for one of the component transformations within an SVGTransformList; thus, an * SVGTransform object corresponds to a single component (e.g., scale(…) or matrix(…)) within a transform attribute. - * - * MDN */ @js.native @JSGlobal @@ -1730,8 +1374,6 @@ object SVGTransform extends js.Object { /** The unit type is not one of predefined unit types. It is invalid to attempt to define a new value of this type or * to attempt to switch an existing value to this type. - * - * MDN */ val SVG_TRANSFORM_UNKNOWN: Int = js.native val SVG_TRANSFORM_SCALE: Int = js.native @@ -1781,8 +1423,6 @@ object SVGPathSeg extends js.Object { } /** The SVGNumber interface correspond to the <number> basic data type. - * - * MDN */ @js.native @JSGlobal @@ -1790,15 +1430,11 @@ class SVGNumber extends js.Object { /** The value of the given attribute. Exceptions on setting: a DOMException with code NO_MODIFICATION_ALLOWED_ERR is * Raised on an attempt to change the value of a read only attribute. - * - * MDN */ var value: Double = js.native } /** The SVGPathElement interface corresponds to the <path> element. - * - * MDN */ @js.native @JSGlobal @@ -1808,15 +1444,11 @@ abstract class SVGPathElement /** Returns the index into pathSegList which is distance units along the path, utilizing the user agent's * distance-along-a-path algorithm. - * - * MDN */ def getPathSegAtLength(distance: Double): Int = js.native /** Returns the (x,y) coordinate in user space which is distance units along the path, utilizing the browser's * distance-along-a-path algorithm. - * - * MDN */ def getPointAtLength(distance: Double): SVGPoint = js.native @@ -1824,16 +1456,12 @@ abstract class SVGPathElement * coordinate for the end point of this path segment. float y The absolute Y coordinate for the end point of this * path segment. float x1 The absolute X coordinate for the first control point. float y1 The absolute Y coordinate * for the first control point. - * - * MDN */ def createSVGPathSegCurvetoQuadraticAbs(x: Double, y: Double, x1: Double, y1: Double): SVGPathSegCurvetoQuadraticAbs = js.native /** Returns a stand-alone, parentless SVGPathSegLinetoRel object. Parameters: float x The relative X coordinate for * the end point of this path segment. float y The relative Y coordinate for the end point of this path segment. - * - * MDN */ def createSVGPathSegLinetoRel(x: Double, y: Double): SVGPathSegLinetoRel = js.native @@ -1841,8 +1469,6 @@ abstract class SVGPathElement * coordinate for the end point of this path segment. float y The relative Y coordinate for the end point of this * path segment. float x1 The relative X coordinate for the first control point. float y1 The relative Y coordinate * for the first control point. - * - * MDN */ def createSVGPathSegCurvetoQuadraticRel(x: Double, y: Double, x1: Double, y1: Double): SVGPathSegCurvetoQuadraticRel = js.native @@ -1852,22 +1478,16 @@ abstract class SVGPathElement * float x1 The absolute X coordinate for the first control point. float y1 The absolute Y coordinate for the first * control point. float x2 The absolute X coordinate for the second control point. float y2 The absolute Y coordinate * for the second control point. - * - * MDN */ def createSVGPathSegCurvetoCubicAbs(x: Double, y: Double, x1: Double, y1: Double, x2: Double, y2: Double): SVGPathSegCurvetoCubicAbs = js.native /** Returns a stand-alone, parentless SVGPathSegLinetoAbs object. Parameters: float x The absolute X coordinate for * the end point of this path segment. float y The absolute Y coordinate for the end point of this path segment. - * - * MDN */ def createSVGPathSegLinetoAbs(x: Double, y: Double): SVGPathSegLinetoAbs = js.native /** Returns a stand-alone, parentless SVGPathSegClosePath object. - * - * MDN */ def createSVGPathSegClosePath(): SVGPathSegClosePath = js.native @@ -1876,8 +1496,6 @@ abstract class SVGPathElement * float x1 The relative X coordinate for the first control point. float y1 The relative Y coordinate for the first * control point. float x2 The relative X coordinate for the second control point. float y2 The relative Y coordinate * for the second control point. - * - * MDN */ def createSVGPathSegCurvetoCubicRel(x: Double, y: Double, x1: Double, y1: Double, x2: Double, y2: Double): SVGPathSegCurvetoCubicRel = js.native @@ -1885,15 +1503,11 @@ abstract class SVGPathElement /** Returns a stand-alone, parentless SVGPathSegCurvetoQuadraticSmoothRel object. Parameters: float x The absolute X * coordinate for the end point of this path segment. float y The absolute Y coordinate for the end point of this * path segment. - * - * MDN */ def createSVGPathSegCurvetoQuadraticSmoothRel(x: Double, y: Double): SVGPathSegCurvetoQuadraticSmoothRel = js.native /** Returns a stand-alone, parentless SVGPathSegMovetoRel object. Parameters: float x The relative X coordinate for * the end point of this path segment. float y The relative Y coordinate for the end point of this path segment. - * - * MDN */ def createSVGPathSegMovetoRel(x: Double, y: Double): SVGPathSegMovetoRel = js.native @@ -1901,23 +1515,17 @@ abstract class SVGPathElement * coordinate for the end point of this path segment. float y The absolute Y coordinate for the end point of this * path segment. float x2 The absolute X coordinate for the second control point. float y2 The absolute Y coordinate * for the second control point. - * - * MDN */ def createSVGPathSegCurvetoCubicSmoothAbs(x: Double, y: Double, x2: Double, y2: Double): SVGPathSegCurvetoCubicSmoothAbs = js.native /** Returns a stand-alone, parentless SVGPathSegMovetoAbs object. Parameters: float x The absolute X coordinate for * the end point of this path segment. float y The absolute Y coordinate for the end point of this path segment. - * - * MDN */ def createSVGPathSegMovetoAbs(x: Double, y: Double): SVGPathSegMovetoAbs = js.native /** Returns a stand-alone, parentless SVGPathSegLinetoVerticalRel object. Parameters: float y The relative Y * coordinate for the end point of this path segment. - * - * MDN */ def createSVGPathSegLinetoVerticalRel(y: Double): SVGPathSegLinetoVerticalRel = js.native @@ -1926,8 +1534,6 @@ abstract class SVGPathElement * The x-axis radius for the ellipse. float r2 The y-axis radius for the ellipse. float angle The rotation angle in * degrees for the ellipse's x-axis relative to the x-axis of the user coordinate system. boolean largeArcFlag The * value of the large-arc-flag parameter. boolean sweepFlag The value of the large-arc-flag parameter. - * - * MDN */ def createSVGPathSegArcRel(x: Double, y: Double, r1: Double, r2: Double, angle: Double, largeArcFlag: Boolean, sweepFlag: Boolean): SVGPathSegArcRel = js.native @@ -1935,15 +1541,11 @@ abstract class SVGPathElement /** Returns a stand-alone, parentless SVGPathSegCurvetoQuadraticSmoothAbs object. Parameters: float x The absolute X * coordinate for the end point of this path segment. float y The absolute Y coordinate for the end point of this * path segment. - * - * MDN */ def createSVGPathSegCurvetoQuadraticSmoothAbs(x: Double, y: Double): SVGPathSegCurvetoQuadraticSmoothAbs = js.native /** Returns a stand-alone, parentless SVGPathSegLinetoHorizontalRel object. Parameters: float x The relative X * coordinate for the end point of this path segment. - * - * MDN */ def createSVGPathSegLinetoHorizontalRel(x: Double): SVGPathSegLinetoHorizontalRel = js.native @@ -1953,23 +1555,17 @@ abstract class SVGPathElement * coordinate for the end point of this path segment. float y The absolute Y coordinate for the end point of this * path segment. float x2 The absolute X coordinate for the second control point. float y2 The absolute Y coordinate * for the second control point. - * - * MDN */ def createSVGPathSegCurvetoCubicSmoothRel(x: Double, y: Double, x2: Double, y2: Double): SVGPathSegCurvetoCubicSmoothRel = js.native /** Returns a stand-alone, parentless SVGPathSegLinetoHorizontalAbs object. Parameters: float x The absolute X * coordinate for the end point of this path segment. - * - * MDN */ def createSVGPathSegLinetoHorizontalAbs(x: Double): SVGPathSegLinetoHorizontalAbs = js.native /** Returns a stand-alone, parentless SVGPathSegLinetoVerticalAbs object. Parameters: float y The absolute Y * coordinate for the end point of this path segment. - * - * MDN */ def createSVGPathSegLinetoVerticalAbs(y: Double): SVGPathSegLinetoVerticalAbs = js.native @@ -1978,16 +1574,12 @@ abstract class SVGPathElement * The x-axis radius for the ellipse. float r2 The y-axis radius for the ellipse. float angle The rotation angle in * degrees for the ellipse's x-axis relative to the x-axis of the user coordinate system. boolean largeArcFlag The * value of the large-arc-flag parameter. boolean sweepFlag The value of the large-arc-flag parameter. - * - * MDN */ def createSVGPathSegArcAbs(x: Double, y: Double, r1: Double, r2: Double, angle: Double, largeArcFlag: Boolean, sweepFlag: Boolean): SVGPathSegArcAbs = js.native } /** The SVGAnimatedRect interface is used for attributes of basic SVGRect which can be animated. - * - * MDN */ @js.native @JSGlobal @@ -1996,14 +1588,10 @@ class SVGAnimatedRect extends js.Object { /** A read only SVGRect representing the current animated value of the given attribute. If the given attribute is not * currently being animated, then the SVGRect will have the same contents as baseVal. The object referenced by * animVal will always be distinct from the one referenced by baseVal, even when the attribute is not animated. - * - * MDN */ def animVal: SVGRect = js.native /** The base value of the given attribute before applying any animations. - * - * MDN */ def baseVal: SVGRect = js.native } @@ -2050,8 +1638,6 @@ class SVGElementInstance extends EventTarget { /** The SVGCircleElement interface provides access to the properties of <circle> elements, as well as methods to * manipulate them. - * - * MDN */ @js.native @JSGlobal @@ -2060,20 +1646,14 @@ abstract class SVGCircleElement with SVGExternalResourcesRequired { /** Corresponds to attribute cx on the given <circle> element. - * - * MDN */ def cx: SVGAnimatedLength = js.native /** Corresponds to attribute r on the given <circle> element. - * - * MDN */ def r: SVGAnimatedLength = js.native /** Corresponds to attribute cy on the given <circle> element. - * - * MDN */ def cy: SVGAnimatedLength = js.native } @@ -2081,34 +1661,24 @@ abstract class SVGCircleElement /** The SVGRect represents rectangular geometry. Rectangles are defined as consisting of a (x,y) coordinate pair * identifying a minimum X value, a minimum Y value, and a width and height, which are usually constrained to be * non-negative. - * - * MDN */ @js.native @JSGlobal class SVGRect extends js.Object { /** The y coordinate of the rectangle, in user units. - * - * MDN */ var y: Double = js.native /** The width coordinate of the rectangle, in user units. - * - * MDN */ var width: Double = js.native /** The x coordinate of the rectangle, in user units. - * - * MDN */ var x: Double = js.native /** The height coordinate of the rectangle, in user units. - * - * MDN */ var height: Double = js.native } @@ -2141,8 +1711,6 @@ class SVGPathSegLinetoAbs extends SVGPathSeg { } /** Many of SVG's graphics operations utilize 2x3 matrices of the form: - * - * MDN */ @js.native @JSGlobal @@ -2156,57 +1724,39 @@ class SVGMatrix extends js.Object { /** Performs matrix multiplication. This matrix is post-multiplied by another matrix, returning the resulting new * matrix. - * - * MDN */ def multiply(secondMatrix: SVGMatrix): SVGMatrix = js.native /** Post-multiplies the transformation [1 0 0 -1 0 0] and returns the resulting matrix. - * - * MDN */ def flipY(): SVGMatrix = js.native /** Post-multiplies a skewY transformation on the current matrix and returns the resulting matrix. - * - * MDN */ def skewY(angle: Double): SVGMatrix = js.native /** Return the inverse matrix Exceptions: a DOMException with code SVG_MATRIX_NOT_INVERTABLE is raised if the matrix * is not invertable. - * - * MDN */ def inverse(): SVGMatrix = js.native /** Post-multiplies a non-uniform scale transformation on the current matrix and returns the resulting matrix. - * - * MDN */ def scaleNonUniform(scaleFactorX: Double, scaleFactorY: Double): SVGMatrix = js.native /** Post-multiplies a rotation transformation on the current matrix and returns the resulting matrix. - * - * MDN */ def rotate(angle: Double): SVGMatrix = js.native /** Post-multiplies the transformation [-1 0 0 1 0 0] and returns the resulting matrix. - * - * MDN */ def flipX(): SVGMatrix = js.native /** Post-multiplies a translation transformation on the current matrix and returns the resulting matrix. - * - * MDN */ def translate(x: Double, y: Double): SVGMatrix = js.native /** Post-multiplies a uniform scale transformation on the current matrix and returns the resulting matrix. - * - * MDN */ def scale(scaleFactor: Double): SVGMatrix = js.native @@ -2214,22 +1764,16 @@ class SVGMatrix extends js.Object { * angle is determined by taking (+/-) atan(y/x). The direction of the vector (x, y) determines whether the positive * or negative angle value is used. Exceptions: a DOMException with code SVG_INVALID_VALUE_ERR is raised if one of * the parameters has an invalid value. - * - * MDN */ def rotateFromVector(x: Double, y: Double): SVGMatrix = js.native /** Post-multiplies a skewX transformation on the current matrix and returns the resulting matrix. - * - * MDN */ def skewX(angle: Double): SVGMatrix = js.native } /** The SVGUseElement interface provides access to the properties of <use> elements, as well as methods to * manipulate them. - * - * MDN */ @js.native @JSGlobal @@ -2238,40 +1782,28 @@ abstract class SVGUseElement with SVGExternalResourcesRequired with SVGURIReference { /** Corresponds to attribute y on the given <use> element. - * - * MDN */ def y: SVGAnimatedLength = js.native /** Corresponds to attribute width on the given <use> element. - * - * MDN */ def width: SVGAnimatedLength = js.native /** If the xlink:href attribute is being animated, contains the current animated root of the instance tree. If the * xlink:href attribute is not currently being animated, contains the same value as instanceRoot. See description of * SVGElementInstance to learn more about the instance tree. - * - * MDN */ def animatedInstanceRoot: SVGElementInstance = js.native /** The root of the instance tree. See description of SVGElementInstance to learn more about the instance tree. - * - * MDN */ def instanceRoot: SVGElementInstance = js.native /** Corresponds to attribute x on the given <use> element. - * - * MDN */ def x: SVGAnimatedLength = js.native /** Corresponds to attribute height on the given <use> element. - * - * MDN */ def height: SVGAnimatedLength = js.native } @@ -2294,42 +1826,30 @@ object SVGException extends js.Object { } /** The SVGLinearGradientElement interface corresponds to the <lineargradient> element. - * - * MDN */ @js.native @JSGlobal class SVGLinearGradientElement extends SVGGradientElement { /** Corresponds to attribute y1 on the given <lineargradient> element. - * - * MDN */ def y1: SVGAnimatedLength = js.native /** Corresponds to attribute x2 on the given <lineargradient> element. - * - * MDN */ def x2: SVGAnimatedLength = js.native /** Corresponds to attribute x1 on the given <lineargradient> element. - * - * MDN */ def x1: SVGAnimatedLength = js.native /** Corresponds to attribute y2 on the given <lineargradient> element. - * - * MDN */ def y2: SVGAnimatedLength = js.native } /** The SVGAnimatedEnumeration interface is used for attributes whose value must be a constant from a particular * enumeration and which can be animated. - * - * MDN */ @js.native @JSGlobal @@ -2337,22 +1857,16 @@ class SVGAnimatedEnumeration extends js.Object { /** If the given attribute or property is being animated, contains the current animated value of the attribute or * property. If the given attribute or property is not currently being animated, contains the same value as baseVal. - * - * MDN */ def animVal: Int = js.native /** The base value of the given attribute before applying any animations. - * - * MDN */ var baseVal: Int = js.native } /** The SVGRectElement interface provides access to the properties of <rect> elements, as well as methods to * manipulate them. - * - * MDN */ @js.native @JSGlobal @@ -2361,38 +1875,26 @@ abstract class SVGRectElement with SVGExternalResourcesRequired { /** Corresponds to attribute y on the given <rect> element. - * - * MDN */ def y: SVGAnimatedLength = js.native /** Corresponds to attribute width on the given <rect> element. - * - * MDN */ def width: SVGAnimatedLength = js.native /** Corresponds to attribute ry on the given <rect> element. - * - * MDN */ def ry: SVGAnimatedLength = js.native /** Corresponds to attribute rx on the given <rect> element. - * - * MDN */ def rx: SVGAnimatedLength = js.native /** Corresponds to attribute x on the given <rect> element. - * - * MDN */ def x: SVGAnimatedLength = js.native /** Corresponds to attribute height on the given <rect> element. - * - * MDN */ def height: SVGAnimatedLength = js.native } @@ -2414,8 +1916,6 @@ class SVGPathSegCurvetoCubicSmoothRel extends SVGPathSeg { } /** The SVGLengthList defines a list of SVGLength objects. - * - * MDN */ @js.native @JSGlobal @@ -2428,8 +1928,6 @@ class SVGLengthList extends js.Object { * Exceptions: a DOMException with code NO_MODIFICATION_ALLOWED_ERR is raised when the list corresponds to a read * only attribute or when the object itself is read only. a DOMException with code INDEX_SIZE_ERR is raised if the * index number is greater than or equal to numberOfItems. - * - * MDN */ def replaceItem(newItem: SVGLength, index: Int): SVGLength = js.native @@ -2437,16 +1935,12 @@ class SVGLengthList extends js.Object { * the item are immediately reflected in the list. The first item is number 0. Exceptions: a DOMException with code * NO_MODIFICATION_ALLOWED_ERR is raised when the list corresponds to a read only attribute or when the object itself * is read only. - * - * MDN */ def getItem(index: Int): SVGLength = js.native /** Clears all existing current items from the list, with the result being an empty list. Exceptions: a DOMException * with code NO_MODIFICATION_ALLOWED_ERR is raised when the list corresponds to a read only attribute or when the * object itself is read only. - * - * MDN */ def clear(): Unit = js.native @@ -2454,8 +1948,6 @@ class SVGLengthList extends js.Object { * before it is inserted into this list. The inserted item is the item itself and not a copy. Exceptions: a * DOMException with code NO_MODIFICATION_ALLOWED_ERR is raised when the list corresponds to a read only attribute or * when the object itself is read only. - * - * MDN */ def appendItem(newItem: SVGLength): SVGLength = js.native @@ -2464,16 +1956,12 @@ class SVGLengthList extends js.Object { * inserted into this list. The inserted item is the item itself and not a copy. The return value is the item * inserted into the list. Exceptions: a DOMException with code NO_MODIFICATION_ALLOWED_ERR is raised when the list * corresponds to a read only attribute or when the object itself is read only. - * - * MDN */ def initialize(newItem: SVGLength): SVGLength = js.native /** Removes an existing item from the list. Exceptions: a DOMException with code NO_MODIFICATION_ALLOWED_ERR is raised * when the list corresponds to a read only attribute or when the object itself is read only. a DOMException with * code INDEX_SIZE_ERR is raised if the index number is greater than or equal to numberOfItems. - * - * MDN */ def removeItem(index: Int): SVGLength = js.native @@ -2484,16 +1972,12 @@ class SVGLengthList extends js.Object { * list. If the index is greater than or equal to numberOfItems, then the new item is appended to the end of the * list. Exceptions: a DOMException with code NO_MODIFICATION_ALLOWED_ERR is raised when the list corresponds to a * read only attribute or when the object itself is read only. - * - * MDN */ def insertItemBefore(newItem: SVGLength, index: Int): SVGLength = js.native } /** The SVGPolylineElement interface provides access to the properties of <polyline> elements, as well as methods * to manipulate them. - * - * MDN */ @js.native @JSGlobal @@ -2542,8 +2026,6 @@ object SVGTextPathElement extends js.Object { } /** The SVGGradient interface is a base interface used by SVGLinearGradientElement and SVGRadialGradientElement. - * - * MDN */ @js.native @JSGlobal @@ -2552,27 +2034,19 @@ abstract class SVGGradientElement /** Corresponds to attribute spreadMethod on the given element. One of the Spread Method Types defined on this * interface. - * - * MDN */ def spreadMethod: SVGAnimatedEnumeration = js.native /** Corresponds to attribute gradientTransform on the given element. - * - * MDN */ def gradientTransform: SVGAnimatedTransformList = js.native /** Corresponds to attribute gradientUnits on the given element. Takes one of the constants defined in SVGUnitTypes. - * - * MDN */ def gradientUnits: SVGAnimatedEnumeration = js.native } /** The SVGGradient interface is a base interface used by SVGLinearGradientElement and SVGRadialGradientElement. - * - * MDN */ @js.native @JSGlobal @@ -2582,16 +2056,12 @@ object SVGGradientElement extends js.Object { /** The type is not one of predefined types. It is invalid to attempt to define a new value of this type or to attempt * to switch an existing value to this type. - * - * MDN */ val SVG_SPREADMETHOD_UNKNOWN: Int = js.native val SVG_SPREADMETHOD_REPEAT: Int = js.native } /** The SVGNumberList defines a list of SVGNumber objects. - * - * MDN */ @js.native @JSGlobal @@ -2604,8 +2074,6 @@ class SVGNumberList extends js.Object { * Exceptions: a DOMException with code NO_MODIFICATION_ALLOWED_ERR is raised when the list corresponds to a read * only attribute or when the object itself is read only. a DOMException with code INDEX_SIZE_ERR is raised if the * index number is greater than or equal to numberOfItems. - * - * MDN */ def replaceItem(newItem: SVGNumber, index: Int): SVGNumber = js.native @@ -2613,16 +2081,12 @@ class SVGNumberList extends js.Object { * the item are immediately reflected in the list. The first item is number 0. Exceptions: a DOMException with code * NO_MODIFICATION_ALLOWED_ERR is raised when the list corresponds to a read only attribute or when the object itself * is read only. - * - * MDN */ def getItem(index: Int): SVGNumber = js.native /** Clears all existing current items from the list, with the result being an empty list. Exceptions: a DOMException * with code NO_MODIFICATION_ALLOWED_ERR is raised when the list corresponds to a read only attribute or when the * object itself is read only. - * - * MDN */ def clear(): Unit = js.native @@ -2630,8 +2094,6 @@ class SVGNumberList extends js.Object { * before it is inserted into this list. The inserted item is the item itself and not a copy. Exceptions: a * DOMException with code NO_MODIFICATION_ALLOWED_ERR is raised when the list corresponds to a read only attribute or * when the object itself is read only. - * - * MDN */ def appendItem(newItem: SVGNumber): SVGNumber = js.native @@ -2640,16 +2102,12 @@ class SVGNumberList extends js.Object { * inserted into this list. The inserted item is the item itself and not a copy. The return value is the item * inserted into the list. Exceptions: a DOMException with code NO_MODIFICATION_ALLOWED_ERR is raised when the list * corresponds to a read only attribute or when the object itself is read only. - * - * MDN */ def initialize(newItem: SVGNumber): SVGNumber = js.native /** Removes an existing item from the list. Exceptions: a DOMException with code NO_MODIFICATION_ALLOWED_ERR is raised * when the list corresponds to a read only attribute or when the object itself is read only. a DOMException with * code INDEX_SIZE_ERR is raised if the index number is greater than or equal to numberOfItems. - * - * MDN */ def removeItem(index: Int): SVGNumber = js.native @@ -2660,8 +2118,6 @@ class SVGNumberList extends js.Object { * list. If the index is greater than or equal to numberOfItems, then the new item is appended to the end of the * list. Exceptions: a DOMException with code NO_MODIFICATION_ALLOWED_ERR is raised when the list corresponds to a * read only attribute or when the object itself is read only. - * - * MDN */ def insertItemBefore(newItem: SVGNumber, index: Int): SVGNumber = js.native } @@ -2674,8 +2130,6 @@ class SVGPathSegLinetoRel extends SVGPathSeg { } /** The SVGAnimatedBoolean interface is used for attributes of type boolean which can be animated. - * - * MDN */ @js.native @JSGlobal @@ -2683,21 +2137,15 @@ class SVGAnimatedBoolean extends js.Object { /** If the given attribute or property is being animated, contains the current animated value of the attribute or * property. If the given attribute or property is not currently being animated, contains the same value as baseVal. - * - * MDN */ def animVal: Boolean = js.native /** The base value of the given attribute before applying any animations. - * - * MDN */ var baseVal: Boolean = js.native } /** The SVGSwitchElement interface corresponds to the <switch> element. - * - * MDN */ @js.native @JSGlobal @@ -2707,8 +2155,6 @@ abstract class SVGSwitchElement /** The SVGPreserveAspectRatio interface corresponds to the preserveAspectRatio attribute, which is available for some * of SVG's elements. - * - * MDN */ @js.native @JSGlobal @@ -2716,23 +2162,17 @@ class SVGPreserveAspectRatio extends js.Object { /** The type of the alignment value as specified by one of the SVG_PRESERVEASPECTRATIO_* constants defined on this * interface. - * - * MDN */ var align: Int = js.native /** The type of the meet-or-slice value as specified by one of the SVG_MEETORSLICE_* constants defined on this * interface. - * - * MDN */ var meetOrSlice: Int = js.native } /** The SVGPreserveAspectRatio interface corresponds to the preserveAspectRatio attribute, which is available for some * of SVG's elements. - * - * MDN */ @js.native @JSGlobal @@ -2746,48 +2186,36 @@ object SVGPreserveAspectRatio extends js.Object { /** The enumeration was set to a value that is not one of predefined types. It is invalid to attempt to define a new * value of this type or to attempt to switch an existing value to this type. - * - * MDN */ val SVG_MEETORSLICE_UNKNOWN: Int = js.native val SVG_PRESERVEASPECTRATIO_XMAXYMID: Int = js.native val SVG_PRESERVEASPECTRATIO_XMIDYMAX: Int = js.native val SVG_PRESERVEASPECTRATIO_XMINYMIN: Int = js.native - /* - * Corresponds to value meet for attribute preserveAspectRatio. - * - * MDN - */ + + /** Corresponds to value meet for attribute preserveAspectRatio. + */ val SVG_MEETORSLICE_MEET: Int = js.native val SVG_PRESERVEASPECTRATIO_XMIDYMID: Int = js.native val SVG_PRESERVEASPECTRATIO_XMIDYMIN: Int = js.native /** Corresponds to value slice for attribute preserveAspectRatio. - * - * MDN */ val SVG_MEETORSLICE_SLICE: Int = js.native val SVG_PRESERVEASPECTRATIO_UNKNOWN: Int = js.native } /** The SVGStopElement interface corresponds to the <stop> element. - * - * MDN */ @js.native @JSGlobal abstract class SVGStopElement extends SVGElement with SVGStylable { /** Corresponds to attribute offset on the given <stop> element. - * - * MDN */ var offset: SVGAnimatedNumber = js.native } /** The SVGSymbolElement interface corresponds to the <symbol> element. - * - * MDN */ @js.native @JSGlobal @@ -2804,8 +2232,6 @@ class SVGElementInstanceList extends js.Object { /** The SVGMaskElement interface provides access to the properties of <mask> elements, as well as methods to * manipulate them. - * - * MDN */ @js.native @JSGlobal @@ -2814,48 +2240,34 @@ abstract class SVGMaskElement with SVGExternalResourcesRequired { /** Corresponds to attribute y on the given <mask> element. - * - * MDN */ def y: SVGAnimatedLength = js.native /** Corresponds to attribute width on the given <mask> element. - * - * MDN */ def width: SVGAnimatedLength = js.native /** Corresponds to attribute maskUnits on the given <mask> element. Takes one of the constants defined in * SVGUnitTypes - * - * MDN */ def maskUnits: SVGAnimatedEnumeration = js.native /** Corresponds to attribute maskContentUnits on the given <mask> element. Takes one of the constants defined in * SVGUnitTypes - * - * MDN */ def maskContentUnits: SVGAnimatedEnumeration = js.native /** Corresponds to attribute x on the given <mask> element. - * - * MDN */ def x: SVGAnimatedLength = js.native /** Corresponds to attribute height on the given <mask> element. - * - * MDN */ def height: SVGAnimatedLength = js.native } /** The SVGFilterElement interface provides access to the properties of <filter> elements, as well as methods to * manipulate them. - * - * MDN */ @js.native @JSGlobal @@ -2864,58 +2276,40 @@ abstract class SVGFilterElement with SVGExternalResourcesRequired { /** Corresponds to attribute y on the given <filter> element. - * - * MDN */ def y: SVGAnimatedLength = js.native /** Corresponds to attribute width on the given <filter> element. - * - * MDN */ def width: SVGAnimatedLength = js.native /** Contains the X component of attribute filterRes on the given <filter> element. - * - * MDN */ def filterResX: SVGAnimatedInteger = js.native /** Corresponds to attribute filterUnits on the given <filter> element. Takes one of the constants defined in * SVGUnitTypes. - * - * MDN */ def filterUnits: SVGAnimatedEnumeration = js.native /** Corresponds to attribute primitiveUnits on the given <filter> element. Takes one of the constants defined in * SVGUnitTypes. - * - * MDN */ def primitiveUnits: SVGAnimatedEnumeration = js.native /** Corresponds to attribute x on the given <filter> element. - * - * MDN */ def x: SVGAnimatedLength = js.native /** Corresponds to attribute height on the given <filter> element. - * - * MDN */ def height: SVGAnimatedLength = js.native /** Contains the Y component of attribute filterRes on the given <filter> element. - * - * MDN */ def filterResY: SVGAnimatedInteger = js.native /** Sets the values for attribute filterRes. - * - * MDN */ def setFilterRes(filterResX: Double, filterResY: Double): Unit = js.native } diff --git a/src/main/scala/org/scalajs/dom/URL.scala b/src/main/scala/org/scalajs/dom/URL.scala index 889a710c7..3700c9174 100644 --- a/src/main/scala/org/scalajs/dom/URL.scala +++ b/src/main/scala/org/scalajs/dom/URL.scala @@ -4,8 +4,6 @@ import scala.scalajs.js import scala.scalajs.js.annotation._ /** The URL object provides static methods used for creating object URLs. - * - * MDN */ @js.native @JSGlobal @@ -14,91 +12,63 @@ object URL extends js.Object { /** The URL.revokeObjectURL() static method releases an existing object URL which was previously created by calling * window.URL.createObjectURL().  Call this method when you've finished using a object URL, in order to let the * browser know it doesn't need to keep the reference to the file any longer. - * - * MDN */ def revokeObjectURL(url: String): Unit = js.native /** The URL.createObjectURL() static method creates a DOMString containing an URL representing the object given in * parameter. The URL lifetime is tied to the document in the window on which it was created. The new object URL * represents the specified File object or Blob object. - * - * MDN */ def createObjectURL(blob: Blob): String = js.native } /** The URL() constructor returns a newly created URL object representing the URL defined by the parameters. - * - * MDN */ @js.native @JSGlobal class URL(url: String, base: String = js.native) extends js.Object { /** Returns a DOMString containing the origin of the URL, that is its scheme, its domain and its port. - * - * MDN */ def origin: String = js.native /** Is a DOMString containing the whole URL. - * - * MDN */ var href: String = js.native /** Is a DOMString containing the protocol scheme of the URL, including the final ':'. - * - * MDN */ var protocol: String = js.native /** Is a DOMString containing the username specified before the domain name. - * - * MDN */ var username: String = js.native /** Is a DOMString containing the password specified before the domain name. - * - * MDN */ var password: String = js.native /** Is a DOMString containing the host, that is the hostname, a ':', and the port of the URL. - * - * MDN */ var host: String = js.native /** Is a DOMString containing the domain of the URL. - * - * MDN */ var hostname: String = js.native /** Is a DOMString containing the port number of the URL. - * - * MDN */ var port: String = js.native /** Is a DOMString containing an initial '/' followed by the path of the URL. - * - * MDN */ var pathname: String = js.native /** Is a DOMString containing a '?' followed by the parameters of the URL. - * - * MDN */ var search: String = js.native /** Is a DOMString containing a '#' followed by the fragment identifier of the URL. - * - * MDN */ var hash: String = js.native @@ -106,16 +76,12 @@ class URL(url: String, base: String = js.native) extends js.Object { } /** The URLSearchParams defines utility methods to work with the query string of a URL. - * - * MDN */ @js.native @JSGlobal class URLSearchParams extends js.Iterable[js.Tuple2[String, String]] { /** Leading '?' characters are ignored. - * - * MDN */ def this(init: String) = this() def this(init: Sequence[String]) = this() diff --git a/src/main/scala/org/scalajs/dom/WebGLTypes.scala b/src/main/scala/org/scalajs/dom/WebGLTypes.scala index 33bf57ede..f0b8c95e5 100644 --- a/src/main/scala/org/scalajs/dom/WebGLTypes.scala +++ b/src/main/scala/org/scalajs/dom/WebGLTypes.scala @@ -127,8 +127,6 @@ class WebGLShaderPrecisionFormat private[this] () extends js.Object { /** WebGLRenderingContext objects expose the WebGLRenderingContext interface, the principal interface in WebGL which * provides special properties and methods to manipulate the 3D content rendered in an HTML canvas element. - * - * MDN */ object WebGLRenderingContext { /* Note: diff --git a/src/main/scala/org/scalajs/dom/WebWorkerTypes.scala b/src/main/scala/org/scalajs/dom/WebWorkerTypes.scala index 1d10422ad..95e291a6b 100644 --- a/src/main/scala/org/scalajs/dom/WebWorkerTypes.scala +++ b/src/main/scala/org/scalajs/dom/WebWorkerTypes.scala @@ -5,16 +5,12 @@ import scala.scalajs.js.annotation._ /** The AbstractWorker interface abstracts properties and methods common to all kind of workers, being Worker or * SharedWorker. - * - * MDN */ @js.native trait AbstractWorker extends EventTarget { /** The AbstractWorker.onerror property represents an EventHandler, that is a function to be called when the error * event occurs and bubbles through the Worker. - * - * MDN */ var onerror: js.Function1[ErrorEvent, _] = js.native } @@ -26,8 +22,6 @@ trait AbstractWorker extends EventTarget { * Of note is the fact that workers may in turn spawn new workers as long as those workers are hosted within the same * origin as the parent page. In addition, workers may use XMLHttpRequest for network I/O, with the exception that the * responseXML and channel attributes on XMLHttpRequest always return null. - * - * MDN */ @js.native @JSGlobal @@ -36,8 +30,6 @@ class Worker(stringUrl: String) extends AbstractWorker { /** The Worker.onmessage property represents an EventHandler, that is a function to be called when the message event * occurs. These events are of type MessageEvent and will be called when the worker calls its own postMessage() * method: it is the way that a Worker has to give back information to the thread that created it. - * - * MDN */ var onmessage: js.Function1[MessageEvent, _] = js.native @@ -48,8 +40,6 @@ class Worker(stringUrl: String) extends AbstractWorker { * The Worker can send back information to the thread that spawned it using the * DedicatedWorkerGlobalScope.postMessage method. * - * MDN - * * @param aMessage * The object to deliver to the worker; this will be in the data field in the event delivered to the * DedicatedWorkerGlobalScope.onmessage handler. This may be any value or JavaScript object handled by the @@ -66,8 +56,6 @@ class Worker(stringUrl: String) extends AbstractWorker { /** The Worker.terminate() method immediately terminates the Worker. This does not offer the worker an opportunity to * finish its operations; it is simply stopped at once. - * - * MDN */ def terminate(): Unit = js.native } @@ -79,8 +67,6 @@ class Worker(stringUrl: String) extends AbstractWorker { * This interface is usually specialized by each worker type: [[DedicatedWorkerGlobalScope]] for dedicated workers, * SharedWorkerGlobalScope for shared workers, and ServiceWorkerGlobalScope for ServiceWorker. The self property * returns the specialized scope for each context. - * - * MDN */ @js.native trait WorkerGlobalScope extends EventTarget with WindowOrWorkerGlobalScope { @@ -88,65 +74,47 @@ trait WorkerGlobalScope extends EventTarget with WindowOrWorkerGlobalScope { /** The self read-only property of the WorkerGlobalScope interface returns a reference to the WorkerGlobalScope * itself. Most of the time it is a specific scope like DedicatedWorkerGlobalScope, SharedWorkerGlobalScope, or * ServiceWorkerGlobalScope. - * - * MDN */ def self: this.type = js.native /** The location read-only property of the WorkerGlobalScope interface returns the WorkerLocation associated with the * worker. It is a specific location object, mostly a subset of the Location for browsing scopes, but adapted to * workers. - * - * MDN */ def location: WorkerLocation = js.native /** The navigator read-only property of the WorkerGlobalScope interface returns the WorkerNavigator associated with * the worker. It is a specific navigator object, mostly a subset of the Navigator for browsing scopes, but adapted * to workers. - * - * MDN */ def navigator: WorkerNavigator = js.native /** The importScripts() method of the WorkerGlobalScope interface imports one or more scripts into the worker's scope. - * - * MDN */ def importScripts(urls: js.Array[String]): Unit = js.native /** The close() method of the WorkerGlobalScope interface discards any tasks queued in the WorkerGlobalScope's event * loop, effectively closing this particular scope. - * - * MDN */ def close(): Unit = js.native /** The onerror property of the WorkerGlobalScope interface represents an EventHandler to be called when the error * event occurs and bubbles through the Worker. - * - * MDN */ var onError: js.Function1[ErrorEvent, _] = js.native /** The onlanguagechange property of the WorkerGlobalScope interface represents an EventHandler to be called when the * languagechange event occurs and bubbles through the Worker. - * - * MDN */ var onlanguagechange: js.Function1[Event, _] = js.native /** The onoffline property of the WorkerGlobalScope interface represents an EventHandler to be called when the offline * event occurs and bubbles through the Worker. - * - * MDN */ var onoffline: js.Function1[Event, _] = js.native /** The ononline property of the WorkerGlobalScope interface represents an EventHandler to be called when the online * event occurs and bubbles through the Worker. - * - * MDN */ var ononline: js.Function1[Event, _] = js.native } @@ -154,8 +122,6 @@ trait WorkerGlobalScope extends EventTarget with WindowOrWorkerGlobalScope { /** The DedicatedWorkerGlobalScope object (the Worker global scope) is accessible through the self keyword. Some * additional global functions, namespaces objects, and constructors, not typically associated with the worker global * scope, but available on it, are listed in the JavaScript Reference. See also: Functions available to workers. - * - * MDN */ @js.native trait DedicatedWorkerGlobalScope extends WorkerGlobalScope { @@ -163,8 +129,6 @@ trait DedicatedWorkerGlobalScope extends WorkerGlobalScope { /** The onmessage property of the DedicatedWorkerGlobalScope interface represents an EventHandler to be called when * the message event occurs and bubbles through the Worker — i.e. when a message is sent to the worker using the * Worker.postMessage method. - * - * MDN */ var onmessage: js.Function1[MessageEvent, _] = js.native @@ -175,8 +139,6 @@ trait DedicatedWorkerGlobalScope extends WorkerGlobalScope { * The main scope that spawned the worker can send back information to the thread that spawned it using the * Worker.postMessage method. * - * MDN - * * @param aMessage * The object to deliver to the main thread; this will be in the data field in the event delivered to the * Worker.onmessage handler. This may be any value or JavaScript object handled by the structured clone algorithm, @@ -194,8 +156,6 @@ trait DedicatedWorkerGlobalScope extends WorkerGlobalScope { object DedicatedWorkerGlobalScope extends js.Object { /** Returns an object reference to the DedicatedWorkerGlobalScope object itself. - * - * MDN */ def self: DedicatedWorkerGlobalScope = js.native } @@ -203,8 +163,6 @@ object DedicatedWorkerGlobalScope extends js.Object { /** The WorkerNavigator interface represents a subset of the [[Navigator]] interface allowed to be accessed from a * Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.navigator property * obtained by calling window.self.navigator - * - * MDN */ @js.native trait WorkerNavigator extends NavigatorID with NavigatorOnLine with NavigatorLanguage @@ -212,57 +170,39 @@ trait WorkerNavigator extends NavigatorID with NavigatorOnLine with NavigatorLan /** The WorkerLocation interface defines the absolute location of the script executed by the Worker. Such an object is * initialized for each worker and is available via the WorkerGlobalScope.location property obtained by calling * window.self.location. - * - * MDN */ @js.native trait WorkerLocation extends js.Object { /** Is a DOMString containing a '#' followed by the fragment identifier of the URL. - * - * MDN */ def hash: String = js.native /** Is a DOMString containing the protocol scheme of the URL, including the final ':'. - * - * MDN */ def protocol: String = js.native /** Is a DOMString containing a '?' followed by the parameters of the URL. - * - * MDN */ def search: String = js.native /** Is a DOMString containing the whole URL. - * - * MDN */ def href: String = js.native /** Is a DOMString containing the domain of the URL. - * - * MDN */ def hostname: String = js.native /** Is a DOMString containing the port number of the URL. - * - * MDN */ def port: String = js.native /** Is a DOMString containing an initial '/' followed by the path of the URL. - * - * MDN */ def pathname: String = js.native /** Is a DOMString containing the host, that is the hostname, a ':', and the port of the URL. - * - * MDN */ def host: String = js.native @@ -270,8 +210,6 @@ trait WorkerLocation extends js.Object { * URL, that is, for http and https, the scheme followed by '://', followed by the domain, followed by ':', followed * by the port (the default port, 80 and 443 respectively, if explicitly specified). For URL using file: scheme, the * value is browser dependant. - * - * MDN */ def origin: String = js.native } diff --git a/src/main/scala/org/scalajs/dom/WindowOrWorkerGlobalScope.scala b/src/main/scala/org/scalajs/dom/WindowOrWorkerGlobalScope.scala index 83d51ae56..a856aa7a9 100644 --- a/src/main/scala/org/scalajs/dom/WindowOrWorkerGlobalScope.scala +++ b/src/main/scala/org/scalajs/dom/WindowOrWorkerGlobalScope.scala @@ -9,8 +9,6 @@ import scala.scalajs.js.| * * Note: WindowOrWorkerGlobalScope is a mixin and not an interface; you can't actually create an object of type * WindowOrWorkerGlobalScope. - * - * MDN */ @js.native trait WindowOrWorkerGlobalScope extends WindowBase64 with WindowTimers { @@ -18,38 +16,26 @@ trait WindowOrWorkerGlobalScope extends WindowBase64 with WindowTimers { /** Returns the CacheStorage object associated with the current context. This object enables functionality such as * storing assets for offline use, and generating custom responses to requests. - * - * MDN */ def caches: js.UndefOr[CacheStorage] = js.native /** Returns a boolean value that indicates whether a SharedArrayBuffer can be sent via a Window.postMessage() call. - * - * MDN */ def crossOriginIsolated: Boolean = js.native /** Provides a mechanism for applications to asynchronously access capabilities of indexed databases. - * - * MDN */ def indexedDB: js.UndefOr[IDBFactory] = js.native /** Returns a boolean indicating whether the current context is secure or not. - * - * MDN */ def isSecureContext: Boolean = js.native /** Returns the origin of the global scope, serialized as a string. - * - * MDN */ def origin: String = js.native //should be USVString /** Starts the process of fetching a resource from the network. - * - * MDN */ def fetch(info: RequestInfo, init: RequestInit = null): js.Promise[Response] = js.native @@ -58,15 +44,11 @@ trait WindowOrWorkerGlobalScope extends WindowBase64 with WindowTimers { * * This lets your code run without interfering with other, possibly higher priority, code, but before the browser * runtime regains control, potentially depending upon the work you need to complete. - * - * MDN */ def queueMicrotask(function: js.Function0[Any]): Unit = js.native /** Accepts a variety of different image sources, and returns a Promise which resolves to an ImageBitmap. Optionally * the source is cropped to the rectangle of pixels originating at (sx, sy) with width sw, and height sh. - * - * MDN */ def createImageBitmap(image: CreateImageBitmapInput): js.Promise[ImageBitmap] = js.native @@ -83,8 +65,6 @@ trait WindowOrWorkerGlobalScope extends WindowBase64 with WindowTimers { /** The ImageBitmap interface represents a bitmap image which can be drawn to a <canvas> without undue latency. It * can be created from a variety of source objects using the createImageBitmap() factory method. ImageBitmap provides * an asynchronous and resource efficient pathway to prepare textures for rendering in WebGL. - * - * MDN */ @js.native trait ImageBitmap extends js.Object { @@ -98,8 +78,6 @@ trait ImageBitmap extends js.Object { def width: Double = js.native /** Dispose of all graphical resources associated with an ImageBitmap. - * - * MDN */ def close(): Unit = js.native } diff --git a/src/main/scala/org/scalajs/dom/crypto/Crypto.scala b/src/main/scala/org/scalajs/dom/crypto/Crypto.scala index 6cac56cd6..252beb1e1 100644 --- a/src/main/scala/org/scalajs/dom/crypto/Crypto.scala +++ b/src/main/scala/org/scalajs/dom/crypto/Crypto.scala @@ -14,22 +14,16 @@ object GlobalCrypto extends js.Object { /** The Crypto interface represents basic cryptography features available in the current context. It allows access to a * cryptographically strong random number generator and to cryptographic primitives. - * - * MDN */ @js.native trait Crypto extends js.Object { /** Returns a SubtleCrypto object providing access to common cryptographic primitives, like hashing, signing, * encryption or decryption. - * - * MDN */ val subtle: SubtleCrypto = js.native /** Fills the passed TypedArray with cryptographically sound random values. - * - * MDN */ def getRandomValues(array: ArrayBufferView): ArrayBufferView = js.native } @@ -140,41 +134,37 @@ trait JsonWebKey extends js.Object { * * The SubtleCrypto interface represents a set of cryptographic primitives. It is available via the Crypto.subtle * properties available in a window context (via Window.crypto). - * - * MDN */ @js.native trait SubtleCrypto extends js.Object { /** Returns a Promise of the encrypted data corresponding to the clear text, algorithm and key given as parameters. - * MDN * * Defined at [[http://www.w3.org/TR/WebCryptoAPI/#SubtleCrypto-method-encrypt ¶14.3.1 The encrypt method]] */ def encrypt(algorithm: AlgorithmIdentifier, key: CryptoKey, data: BufferSource): js.Promise[js.Any] = js.native /** Returns a Promise of the clear data corresponding to the encrypted text, algorithm and key given as parameters. - * MDN * * Defined at [[http://www.w3.org/TR/WebCryptoAPI/#SubtleCrypto-method-decrypt ¶14.3.2 The decrypt method]] */ def decrypt(algorithm: AlgorithmIdentifier, key: CryptoKey, data: BufferSource): js.Promise[js.Any] = js.native - /** Returns a Promise of the signature corresponding to the text, algorithm and key given as parameters. MDN + /** Returns a Promise of the signature corresponding to the text, algorithm and key given as parameters. * * Defined at [[http://www.w3.org/TR/WebCryptoAPI/#SubtleCrypto-method-sign ¶14.3.3 The sign method]] */ def sign(algorithm: AlgorithmIdentifier, key: CryptoKey, data: BufferSource): js.Promise[js.Any] = js.native /** Returns a Promise of a Boolean value indicating if the signature given as parameter matches the text, algorithm - * and key also given as parameters. MDN + * and key also given as parameters. * * Defined at [[http://www.w3.org/TR/WebCryptoAPI/#SubtleCrypto-method-verify ¶14.3.4 The verify method]] */ def verify(algorithm: AlgorithmIdentifier, key: CryptoKey, signature: BufferSource, data: BufferSource): js.Promise[js.Any] = js.native - /** Returns a Promise of a digest generated from the algorithm and text given as parameters. MDN + /** Returns a Promise of a digest generated from the algorithm and text given as parameters. * * Defined at [[http://www.w3.org/TR/WebCryptoAPI/#SubtleCrypto-method-digest ¶14.3.5 The digest method]] We are a * bit more precise than the official definition by requiring a HashAlgorithmIdentifier rather than an @@ -184,7 +174,7 @@ trait SubtleCrypto extends js.Object { /** Returns a Promise of a newly generated CryptoKey, for symmetrical algorithms, or a CryptoKeyPair, containing two * newly generated keys, for asymmetrical algorithm, that matches the algorithm, the usages and the extractability - * given as parameters. MDN + * given as parameters. * * Defined at [[http://www.w3.org/TR/WebCryptoAPI/#SubtleCrypto-method-generateKey ¶14.3.6 The generateKey method]] * @@ -206,14 +196,14 @@ trait SubtleCrypto extends js.Object { extractable: Boolean, keyUsages: js.Array[KeyUsage]): js.Promise[js.Any] = js.native /** Returns a Promise of a newly generated buffer of pseudo-random bits derivated from a master key and a specific - * algorithm given as parameters. MDN + * algorithm given as parameters. * * Defined at [[http://www.w3.org/TR/WebCryptoAPI/#SubtleCrypto-method-deriveBits ¶14.3.8 The deriveBits method]] */ def deriveBits(algorithm: AlgorithmIdentifier, baseKey: CryptoKey, length: Double): js.Promise[js.Any] = js.native /** Returns a Promise of a CryptoKey corresponding to the format, the algorithm, the raw key data, the usages and the - * extractability given as parameters. MDN + * extractability given as parameters. * * Defined at [[http://www.w3.org/TR/WebCryptoAPI/#SubtleCrypto-method-importKey ¶14.3.9 The importKey method]] * @@ -224,7 +214,7 @@ trait SubtleCrypto extends js.Object { keyUsages: js.Array[KeyUsage]): js.Promise[CryptoKey] = js.native /** Returns a Promise of a CryptoKey corresponding to the format, the algorithm, the raw key data, the usages and the - * extractability given as parameters. MDN + * extractability given as parameters. * * Defined at [[http://www.w3.org/TR/WebCryptoAPI/#SubtleCrypto-method-importKey ¶14.3.9 The importKey method]] * @@ -249,7 +239,7 @@ trait SubtleCrypto extends js.Object { def wrapKey(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AlgorithmIdentifier): js.Promise[js.Any] = js.native - /** Returns a Promise of a CryptoKey corresponding to the wrapped key given in parameter. MDN + /** Returns a Promise of a CryptoKey corresponding to the wrapped key given in parameter. * * Defined at [[http://www.w3.org/TR/WebCryptoAPI/#SubtleCrypto-method-unwrapKey ¶14.3.12 The unwrapKey method]] * diff --git a/src/main/scala/org/scalajs/dom/experimental/FileReaderSync.scala b/src/main/scala/org/scalajs/dom/experimental/FileReaderSync.scala index ce1ef8cd5..c3d1fdd26 100644 --- a/src/main/scala/org/scalajs/dom/experimental/FileReaderSync.scala +++ b/src/main/scala/org/scalajs/dom/experimental/FileReaderSync.scala @@ -9,8 +9,6 @@ import scala.scalajs.js.typedarray.ArrayBuffer /** The FileReaderSync interface allows to read File or Blob objects synchronously. * * This interface is only available in workers as it enables synchronous I/O that could potentially block. - * - * MDN */ @js.native @JSGlobal @@ -19,24 +17,18 @@ class FileReaderSync() extends js.Object { /** The readAsArrayBuffer method is used to starts reading the contents of the specified Blob or File. When the read * operation is finished, the readyState becomes DONE, and the loadend is triggered. At that time, the result * attribute contains an ArrayBuffer representing the file's data. - * - * MDN */ def readAsArrayBuffer(blob: Blob): ArrayBuffer = js.native /** The readAsDataURL method is used to starts reading the contents of the specified Blob or File. When the read * operation is finished, the readyState becomes DONE, and the loadend is triggered. At that time, the result * attribute contains a data: URL representing the file's data as base64 encoded string. - * - * MDN */ def readAsDataURL(blob: Blob): dom.URL = js.native /** The readAsText method is used to read the contents of the specified Blob or File. When the read operation is * complete, the readyState is changed to DONE, the loadend is triggered, and the result attribute contains the * contents of the file as a text string. - * - * MDN */ def readAsText(blob: Blob, encoding: String = js.native): String = js.native } diff --git a/src/main/scala/org/scalajs/dom/experimental/PointerLock.scala b/src/main/scala/org/scalajs/dom/experimental/PointerLock.scala index 34af990e1..65c5bfe94 100644 --- a/src/main/scala/org/scalajs/dom/experimental/PointerLock.scala +++ b/src/main/scala/org/scalajs/dom/experimental/PointerLock.scala @@ -26,22 +26,16 @@ object PointerLock { /** When the Pointer lock state changes—for example, when calling requestPointerLock, exitPointerLock, the user * pressing the ESC key, etc.—the pointerlockchange event is dispatched to the document. This is a simple event and * contains no extra data. - * - * MDN */ var onpointerlockchange: js.Function1[Event, _] = js.native /** When there is an error caused by calling requestPointerLock or exitPointerLock, the pointerlockerror event is * dispatched to the document. This is a simple event and contains no extra data. - * - * MDN */ var onpointerlockerror: js.Function1[Event, _] = js.native /** The pointerLockElement property provides the element set as the target for mouse events while the pointer is * locked. It is `null` if lock is pending, pointer is unlocked, or the target is in another document. - * - * MDN */ def pointerLockElement: Element = js.native @@ -50,8 +44,6 @@ object PointerLock { * * To track the success or failure of the request, it is necessary to listen for the pointerlockchange and * pointerlockerror events. - * - * MDN */ def exitPointerLock(): Unit = js.native } @@ -64,8 +56,6 @@ object PointerLock { * * To track the success or failure of the request, it is necessary to listen for the pointerlockchange and * pointerlockerror events at the Document level. - * - * MDN */ def requestPointerLock(): Unit = js.native } @@ -83,8 +73,6 @@ object PointerLock { * * The parameters movementX and movementY are valid regardless of the mouse lock state, and are available even when * unlocked for convenience. - * - * MDN */ @js.native trait PointerLockMouseEvent extends js.Object { diff --git a/src/main/scala/org/scalajs/dom/experimental/beacon/package.scala b/src/main/scala/org/scalajs/dom/experimental/beacon/package.scala index 8bf55db4b..330098f7a 100644 --- a/src/main/scala/org/scalajs/dom/experimental/beacon/package.scala +++ b/src/main/scala/org/scalajs/dom/experimental/beacon/package.scala @@ -10,8 +10,6 @@ import scala.scalajs.js * before a page is unloaded and they are run to completion without requiring a blocking request (for example * XMLHttpRequest). * - * MDN - * * @see * [[https://www.w3.org/TR/2016/WD-beacon-20160204/ Beacon W3C Working Draft]] * @see @@ -32,8 +30,6 @@ package object beacon { /** The navigator.sendBeacon() method can be used to asynchronously transfer small HTTP data from the User Agent to * a web server. * - * MDN - * * @param url * The url parameter indicates the resolved URL where the data is to be transmitted. * @param data @@ -48,8 +44,6 @@ package object beacon { /** The navigator.sendBeacon() method can be used to asynchronously transfer small HTTP data from the User Agent to * a web server. * - * MDN - * * @param url * The url parameter indicates the resolved URL where the data is to be transmitted. * @param data diff --git a/src/main/scala/org/scalajs/dom/experimental/domparser/DOMParser.scala b/src/main/scala/org/scalajs/dom/experimental/domparser/DOMParser.scala index e39b16c0e..fcfea8873 100644 --- a/src/main/scala/org/scalajs/dom/experimental/domparser/DOMParser.scala +++ b/src/main/scala/org/scalajs/dom/experimental/domparser/DOMParser.scala @@ -5,8 +5,6 @@ import scala.scalajs.js import scala.scalajs.js.annotation._ /** DOMParser can parse XML or HTML source stored in a string into a DOM Document. - * - * MDN */ @js.native @JSGlobal @@ -16,8 +14,6 @@ class DOMParser extends js.Object { * possible, selected by the MIME type given. If the MIME type is text/xml, the resulting object will be an * XMLDocument, if the MIME type is image/svg+xml, it will be an SVGDocument and if the MIME type is text/html, it * will be an HTMLDocument. - * - * MDN */ def parseFromString(string: String, supportedType: SupportedType): Document = js.native } diff --git a/src/main/scala/org/scalajs/dom/experimental/intl/Intl.scala b/src/main/scala/org/scalajs/dom/experimental/intl/Intl.scala index 9574d7c3c..097d2fcd5 100644 --- a/src/main/scala/org/scalajs/dom/experimental/intl/Intl.scala +++ b/src/main/scala/org/scalajs/dom/experimental/intl/Intl.scala @@ -11,8 +11,6 @@ import scala.scalajs.js.annotation._ import scala.scalajs.js.| /** The Intl.Collator object is a constructor for collators, objects that enable language sensitive string comparison. - * - * MDN */ @js.native @JSGlobal("Intl.Collator") @@ -25,8 +23,6 @@ class Collator(locales: js.UndefOr[String | js.Array[String]] = js.undefined, } /** The Intl.DateTimeFormat object is a constructor for objects that enable language sensitive date and time formatting. - * - * MDN */ @js.native @JSGlobal("Intl.DateTimeFormat") @@ -39,8 +35,6 @@ class DateTimeFormat(locales: js.UndefOr[String | js.Array[String]] = js.undefin } /** The Intl.NumberFormat object is a constructor for objects that enable language sensitive number formatting. - * - * MDN */ @js.native @JSGlobal("Intl.NumberFormat") @@ -90,8 +84,6 @@ object CollatorOptions { * locale's default); the default is "false". This option can be set through an options property or through a * Unicode extension key; if both are provided, the options property takes precedence. Implementations are not * required to support this property. - * - * MDN */ def apply( localeMatcher: js.UndefOr[String] = js.undefined, usage: js.UndefOr[String] = js.undefined, @@ -162,8 +154,6 @@ object DateTimeFormatOptions { * The representation of the second. Possible values are "numeric", "2-digit". * @param timeZoneName * The representation of the time zone name. Possible values are "short", "long". - * - * MDN */ def apply( localeMatcher: js.UndefOr[String] = js.undefined, timeZone: js.UndefOr[String] = js.undefined, @@ -253,8 +243,6 @@ object NumberFormatOptions { * @param maximumSignificantDigits * The maximum number of significant digits to use. Possible values are from 1 to 21; the default is * minimumSignificantDigits. - * - * MDN */ def apply( localeMatcher: js.UndefOr[String] = js.undefined, style: js.UndefOr[String] = js.undefined, diff --git a/src/main/scala/org/scalajs/dom/experimental/intl/package.scala b/src/main/scala/org/scalajs/dom/experimental/intl/package.scala index 55822fdc6..eb578475f 100644 --- a/src/main/scala/org/scalajs/dom/experimental/intl/package.scala +++ b/src/main/scala/org/scalajs/dom/experimental/intl/package.scala @@ -6,7 +6,5 @@ package org.scalajs.dom.experimental * The constructors for Collator, NumberFormat, and DateTimeFormat objects are properties of the Intl object. This page * documents these properties as well as functionality common to the internationalization constructors and other * language sensitive functions. - * - * MDN */ package object intl diff --git a/src/main/scala/org/scalajs/dom/experimental/mediastream/MediaStream.scala b/src/main/scala/org/scalajs/dom/experimental/mediastream/MediaStream.scala index 1a6561243..41ae28039 100644 --- a/src/main/scala/org/scalajs/dom/experimental/mediastream/MediaStream.scala +++ b/src/main/scala/org/scalajs/dom/experimental/mediastream/MediaStream.scala @@ -10,83 +10,61 @@ import scala.scalajs.js.| /** The MediaStream * * https://www.w3.org/TR/2016/CR-mediacapture-streams-20160519/ - * - * MDN */ @js.native @JSGlobal class MediaStream() extends EventTarget { /** A Boolean value that returns true if the MediaStream is active, or false otherwise. - * - * MDN */ val active: Boolean = js.native /** Is a DOMString containing 36 characters denoting a universally unique identifier (UUID) for the object. - * - * MDN */ val id: String = js.native /** Is an EventHandler containing the action to perform when an addtrack event is fired when a new MediaStreamTrack * object is added. - * - * MDN */ var onaddtrack: js.Function1[Event, Any] = js.native /** Is an EventHandler containing the action to perform when an removetrack event is fired when a MediaStreamTrack * object is removed from it. - * - * MDN */ var onremovetrack: js.Function1[Event, Any] = js.native /** Stores a copy of the MediaStreamTrack given as argument. If the track has already been added to the MediaStream * object, nothing happens; if the track is in the finished state - that is, has already reached its end - the * exception INVALID_STATE_RAISE is raised. - * - * MDN */ def addTrack(track: MediaStreamTrack): Unit = js.native /** Returns a list of the MediaStreamTrack objects stored in the MediaStream object that have their kind attribute set * to "audio". The order is not defined, and may not only vary from one browser to another, but also from one call to * another.. - * - * MDN */ def getAudioTracks(): js.Array[MediaStreamTrack] = js.native /** Returns the track whose ID corresponds to the one given in parameters, trackid. If no parameter is given, or if no * track with that ID does exist, it returns null. If several tracks have the same ID, it returns the first one. - * - * MDN */ def getTrackById(trackId: String): MediaStreamTrack = js.native /** Returns a list of all MediaStreamTrack objects stored in the MediaStream object, regardless of the value of the * kind attribute. The order is not defined, and may not only vary from one browser to another, but also from one * call to another. - * - * MDN */ def getTracks(): js.Array[MediaStreamTrack] = js.native /** Returns a list of the MediaStreamTrack objects stored in the MediaStream object that have their kind attribute set * to "video". The order is not defined, and may not only vary from one browser to another, but also from one call to * another. - * - * MDN */ def getVideoTracks(): js.Array[MediaStreamTrack] = js.native /** Removes the MediaStreamTrack given as argument. If the track is not part of the MediaStream object, nothing * happens; if the track is in the finished state - that is, it has already reached its end - the exception * INVALID_STATE_RAISE is raised. - * - * MDN */ def removeTrack(track: MediaStreamTrack): Unit = js.native @@ -96,8 +74,6 @@ class MediaStream() extends EventTarget { * MediaStreamTrack.clone() on all the tracks in this stream. * * Let trackSetClone be streamClone's track set. - * - * MDN */ override def clone(): MediaStream = js.native } @@ -129,42 +105,30 @@ trait MediaStreamTrack extends EventTarget { /** Is a Boolean value with a value of true if the track is enabled, that is allowed to render the media source * stream; or false if it is disabled, that is not rendering the media source stream but silence and blackness. If * the track has been disconnected, this value can be changed but has no more effect. - * - * MDN */ var enabled: Boolean = js.native /** Returns a DOMString containing a unique identifier (GUID) for the track; it is generated by the browser. - * - * MDN */ val id: String = js.native /** Returns a DOMString set to "audio" if the track is an audio track and to "video", if it is a video track. It * doesn't change if the track is deassociated from its source. - * - * MDN */ val kind: String = js.native /** Returns a DOMString containing a user agent-assigned label that identifies the track source, as in "internal * microphone". The string may be left empty and is empty as long as no source has been connected. When the track is * deassociated from its source, the label is not changed. - * - * MDN */ val label: String = js.native /** Returns a Boolean value with a value of true if the track is muted, false otherwise. - * - * MDN */ val muted: Boolean = js.native /** Returns a Boolean value with a value of true if the track is (such a video file source or a camera that settings * can't be modified),false otherwise. - * - * MDN */ val readonly: Boolean = js.native @@ -174,68 +138,48 @@ trait MediaStreamTrack extends EventTarget { * case, the output of data can be switched on or off using the MediaStreamTrack.enabled attribute. * * "ended" which indicates that the input is not giving any more data and will never provide new data. - * - * MDN */ val readyState: MediaStreamTrackState = js.native /** Returns a boolean value with a value of true if the track is sourced by a RTCPeerConnection, false otherwise. - * - * MDN */ val remote: Boolean = js.native /** Is a EventHandler containing the action to perform when an started event is fired on the object, that is when a * new MediaStreamTrack object is added. - * - * MDN */ var onstarted: js.Function1[Event, Any] = js.native /** Is a EventHandler containing the action to perform when an mute event is fired on the object, that is when the * streaming is terminating. - * - * MDN */ var onmute: js.Function1[Event, Any] = js.native /** Is a EventHandler containing the action to perform when an unmute event is fired on the object, that is when a * MediaStreamTrack object is removed from it. - * - * MDN */ var onunmute: js.Function1[Event, Any] = js.native /** Is a EventHandler containing the action to perform when an overconstrained event is fired on the object, that is * when a MediaStreamTrack object is removed from it. - * - * MDN */ var onoverconstrained: js.Function1[Event, Any] = js.native /** Is a EventHandler containing the action to perform when an ended event is fired on the object, that is when a * MediaStreamTrack object is removed from it. - * - * MDN */ var onended: js.Function1[Event, Any] = js.native /** Returns a MediaTrackConstraints object containing the currently set constraints for the track; the returned value * matches the constraints last set using applyConstraints(). - * - * MDN */ def getConstraints(): MediaTrackConstraints = js.native /** Returns the a list of constrainable properties available for the MediaStreamTrack. - * - * MDN */ def getCapabilities(): js.Any = js.native /** Returns a duplicate of the MediaStreamTrack. - * - * MDN */ override def clone(): MediaStreamTrack = js.native @@ -246,15 +190,11 @@ trait MediaStreamTrack extends EventTarget { /** Returns a MediaTrackSettings object containing the current values of each of the MediaStreamTrack's constrainable * properties. - * - * MDN */ def getSettings(): js.Any = js.native /** Stops playing the source associated to the track, both the source and the track are deassociated. The track state * is set to ended. - * - * MDN */ def stop(): Unit = js.native } @@ -423,28 +363,20 @@ trait MediaDeviceInfo extends js.Object { /** Returns a DOMString that is an identifier for the represented device that is persisted across sessions. It is * un-guessable by other applications and unique to the origin of the calling application. It is reset when the user * clears cookies (for Private Browsing, a different identifier is used that is not persisted across sessions). - * - * MDN */ val deviceId: String = js.native /** Returns a DOMString that is a group identifier. Two devices have the same group identifier if they belong to the * same physical device; for example a monitor with both a built-in camera and microphone. - * - * MDN */ val groupId: String = js.native /** enum MediaDevicesInfoKind Returns an enumerated value that is either "videoinput", "audioinput" or "audiooutput". - * - * MDN */ val kind: MediaDeviceKind = js.native /** Returns a DOMString that is a label describing this device (for example "External USB Webcam"). Only available * during active MediaStream use or when persistent permissions have been granted. - * - * MDN */ val label: String = js.native } @@ -467,37 +399,27 @@ object MediaDeviceInfo { /** The MediaDevices interface provides access to connected media input devices like cameras and microphones, as well as * screen sharing. In essence, it lets you obtain access to any hardware source of media data. - * - * MDN */ @js.native trait MediaDevices extends EventTarget { /** The event handler for the devicechange event. This event is delivered to the MediaDevices object when a media * input or output device is attached to or removed from the user's computer. - * - * MDN */ var ondevicechange: js.Function1[Event, Any] = js.native /** Obtains an array of information about the media input and output devices available on the system. - * - * MDN */ def enumerateDevices(): js.Promise[js.Array[MediaDeviceInfo]] = js.native /** Returns an object conforming to MediaTrackSupportedConstraints indicating which constrainable properties are * supported on the MediaStreamTrack interface. See "Capabilities and constraints" in Media Capture and Streams API * (Media Streams) to learn more about constraints and how to use them. - * - * MDN */ def getSupportedConstraints(): MediaTrackSupportedConstraints = js.native /** With the user's permission through a prompt, turns on a camera or screensharing and/or a microphone on the system * and provides a MediaStream containing a video track and/or an audio track with the input. - * - * MDN */ def getUserMedia(constraints: MediaStreamConstraints): js.Promise[MediaStream] = js.native @@ -506,8 +428,6 @@ trait MediaDevices extends EventTarget { /** The MediaTrackSupportedConstraints dictionary establishes the list of constrainable properties recognized by the * user agent or browser in its implementation of the MediaStreamTrack object. An object conforming to * MediaTrackSupportedConstraints is returned by MediaDevices.getSupportedConstraints(). - * - * MDN */ trait MediaTrackSupportedConstraints extends js.Object { var width: js.UndefOr[Boolean] = js.undefined @@ -527,8 +447,6 @@ trait MediaTrackSupportedConstraints extends js.Object { /** The ImageCapture interface of the MediaStream Image Capture API provides methods to enable the capture of images or * photos from a camera or other photographic device referenced through a valid MediaStreamTrack. - * - * MDN */ @js.native @JSGlobal @@ -537,21 +455,15 @@ class ImageCapture( ) extends js.Object { /** Returns a reference to the MediaStreamTrack passed to the constructor. - * - * MDN */ val track: MediaStreamTrack = js.native /** Takes a single exposure using the video capture device sourcing a MediaStreamTrack and returns a Promise that * resolves with a Blob containing the data. - * - * MDN */ def takePhoto(): js.Promise[Blob] = js.native /** Takes a snapshot of the live video in a MediaStreamTrack, returning an ImageBitmap, if successful. - * - * MDN */ def grabFrame(): js.Promise[ImageBitmap] = js.native } diff --git a/src/main/scala/org/scalajs/dom/experimental/push/PushManager.scala b/src/main/scala/org/scalajs/dom/experimental/push/PushManager.scala index b63203a5c..7e5b4b84d 100644 --- a/src/main/scala/org/scalajs/dom/experimental/push/PushManager.scala +++ b/src/main/scala/org/scalajs/dom/experimental/push/PushManager.scala @@ -10,8 +10,6 @@ import scala.scalajs.js.typedarray.{ArrayBuffer, Uint8Array} * * This interface is accessed via the ServiceWorkerRegistration.pushManager property. * - * MDN - * * The Push API is currently specified here: [[https://www.w3.org/TR/2018/WD-push-api-20181026/]] */ @js.native @@ -19,8 +17,6 @@ trait PushManager extends js.Object { /** Retrieves an existing push subscription. It returns a Promise that resolves to a PushSubscription object * containing details of an existing subscription. If no existing subscription exists, this resolves to a null value. - * - * MDN */ def getSubscription(): js.Promise[PushSubscription] = js.native @@ -31,8 +27,6 @@ trait PushManager extends js.Object { * An object containing optional configuration parameters. It can have the following properties: * - userVisibleOnly: A boolean indicating that the returned push subscription will only be used for messages whose * effect is made visible to the user. - * - * MDN */ def permissionState(options: PushSubscriptionOptions = js.native): js.Promise[PushPermissionState] = js.native @@ -40,8 +34,6 @@ trait PushManager extends js.Object { * * It returns a Promise that resolves to a PushSubscription object containing details of a push subscription. A new * push subscription is created if the current service worker does not have an existing subscription. - * - * MDN */ def subscribe(options: PushSubscriptionOptions = js.native): js.Promise[PushSubscription] = js.native } @@ -50,8 +42,6 @@ trait PushManager extends js.Object { * a push service. * * An instance of this interface can be serialized. - * - * MDN */ @js.native trait PushSubscription extends js.Object { @@ -61,22 +51,16 @@ trait PushSubscription extends js.Object { * which can be used to send a push message to the particular service worker instance that subscribed to the push * service. For this reason, it is a good idea to keep your endPoint a secret, so others do not hijack it and abuse * the push functionality. - * - * MDN */ val endpoint: String = js.native /** The expirationTime read-only property of the PushSubscription interface returns a DOMHighResTimeStamp of the * subscription expiration time associated with the push subscription, if there is one, or null otherwise. - * - * MDN */ val expirationTime: java.lang.Double = js.native /** The options read-only property of the PushSubscription interface is an object containing containing the options * used to create the subscription. - * - * MDN */ val options: PushSubscriptionOptions = js.native @@ -86,58 +70,42 @@ trait PushSubscription extends js.Object { /** The unsubscribe() method of the PushSubscription interface returns a Promise that resolves to a Boolean when the * current subscription is successfully unsubscribed. - * - * MDN */ def unsubscribe(): js.Promise[Boolean] = js.native /** The toJSON() method of the PushSubscription interface is a standard serializer: it returns a JSON representation * of the subscription properties, providing a useful shortcut. - * - * MDN */ def toJSON(): PushSubscriptionJSON = js.native } /** A PushSubscriptionJSON dictionary represents the JSON type of a PushSubscription. In ECMAScript this can be * converted into a JSON string through the JSON.stringify function. - * - * MDN */ @js.native trait PushSubscriptionJSON extends js.Object { /** The endpoint contains the underlying value of the endpoint attribute. - * - * MDN */ val endpoint: String = js.native /** The endpoint contains the underlying value of the endpoint attribute. - * - * MDN */ val expirationTime: java.lang.Double = js.native /** The keys record contains an entry for each of the supported PushEncryptionKeyName entries to the URL-safe base64 * encoded representation [RFC4648] of its value. - * - * MDN */ val keys: js.Dictionary[String] = js.native } /** The PushEvent interface of the Push API represents a push message that has been received. This event is sent to the * global scope of a ServiceWorker. It contains the information sent from an application server to a PushSubscription. - * - * MDN */ @js.native trait PushEvent extends ExtendableEvent { /** Returns a reference to a PushMessageData object containing data sent to the PushSubscription. Read-only. - * - * MDN */ val data: PushMessageData = js.native } @@ -147,33 +115,23 @@ trait PushEvent extends ExtendableEvent { * * Unlike the similar methods in the Fetch API, which only allow the method to be invoked once, these methods can be * called multiple times. - * - * MDN */ @js.native trait PushMessageData extends js.Object { /** Extracts the data as an ArrayBuffer object. - * - * MDN */ def arrayBuffer(): ArrayBuffer = js.native /** Extracts the data as a Blob object. - * - * MDN */ def blob(): Blob = js.native /** Extracts the data as a JSON object. - * - * MDN */ def json(): js.Any = js.native /** Extracts the data as a plain text string. - * - * MDN */ def text(): String = js.native } diff --git a/src/main/scala/org/scalajs/dom/experimental/push/package.scala b/src/main/scala/org/scalajs/dom/experimental/push/package.scala index 48716b3aa..2bb3e714f 100644 --- a/src/main/scala/org/scalajs/dom/experimental/push/package.scala +++ b/src/main/scala/org/scalajs/dom/experimental/push/package.scala @@ -28,8 +28,6 @@ package object push { /** The pushManager property of the ServiceWorkerRegistration interface returns a reference to the PushManager * interface for managing push subscriptions; this includes support for subscribing, getting an active * subscription, and accessing push permission status. - * - * MDN */ val pushManager: PushManager = js.native } @@ -41,8 +39,6 @@ package object push { /** The ServiceWorkerGlobalScope.onpush event of the ServiceWorkerGlobalScope interface is fired whenever a push * message is received by a service worker via a push server. - * - * MDN */ var onpush: js.Function1[PushEvent, _] = js.native @@ -50,8 +46,6 @@ package object push { * whenever a push subscription has been invalidated (or is about to become so). This offers an opportunity to * resubscribe in order to continue receiving push messages, if desired. This might happen if, for example, the * push service sets an expiration time a subscription. - * - * MDN */ var onpushsubscriptionchange: js.Function1[PushEvent, _] = js.native } diff --git a/src/main/scala/org/scalajs/dom/experimental/serviceworkers/ServiceWorkers.scala b/src/main/scala/org/scalajs/dom/experimental/serviceworkers/ServiceWorkers.scala index 4a061f48f..3d3dc05f9 100644 --- a/src/main/scala/org/scalajs/dom/experimental/serviceworkers/ServiceWorkers.scala +++ b/src/main/scala/org/scalajs/dom/experimental/serviceworkers/ServiceWorkers.scala @@ -111,30 +111,22 @@ class FetchEvent(typeArg: String, init: js.UndefOr[FetchEventInit]) extends Exte /** The ServiceWorker interface of the ServiceWorker API provides a reference to a service worker. Multiple browsing * contexts (e.g. pages, workers, etc.) can be associated with the same service worker, each through a unique * ServiceWorker object. - * - * MDN */ @js.native trait ServiceWorker extends EventTarget { /** Returns the ServiceWorker serialized script URL defined as part of ServiceWorkerRegistration. Must be on the same * origin as the document that registers the ServiceWorker. - * - * MDN */ def scriptURL: String = js.native /** The state read-only property of the ServiceWorker interface returns a string representing the current state of the * service worker. It can be one of the following values: installing, installed, activating, activated, or redundant. - * - * MDN */ def state: String = js.native /** An EventListener property called whenever an event of type statechange is fired; it is basically fired anytime the * ServiceWorker.state changes. - * - * MDN */ var onstatechange: js.Function1[Event, _] = js.native @@ -146,45 +138,33 @@ trait ServiceWorker extends EventTarget { /** The ServiceWorkerRegistion interface of the ServiceWorker API represents the service worker registration. You * register a service worker to control one or more pages that share the same origin. - * - * MDN */ @js.native trait ServiceWorkerRegistration extends EventTarget { /** The installing property of the ServiceWorkerRegistration interface returns a service worker whose * ServiceWorker.state is installing. This property is initially set to null. - * - * MDN */ var installing: ServiceWorker = js.native /** The waiting property of the ServiceWorkerRegistration interface returns a service worker whose ServiceWorker.state * is installed. This property is initially set to null. - * - * MDN */ var waiting: ServiceWorker = js.native /** The active property of the ServiceWorkerRegistration interface returns a service worker whose ServiceWorker.state * is activating or activated. This property is initially set to null. - * - * MDN */ var active: ServiceWorker = js.native /** The scope read-only property of the ServiceWorkerRegistration interface returns a unique identifier for a service * worker registration. The service worker must be on the same origin as the document that registers the * ServiceWorker. - * - * MDN */ var scope: String = js.native /** The update method of the ServiceWorkerRegistration interface allows you to ping the server for an updated service * worker script. If you don't explicitly call this, the UA will do this automatically once every 24 hours. - * - * MDN */ def update(): js.Promise[Unit] = js.native @@ -193,16 +173,12 @@ trait ServiceWorkerRegistration extends EventTarget { * irrespective of whether unregistration happened or not (it may not unregister if someone else just called * ServiceWorkerContainer.register with the same scope.) The service worker will finish any ongoing operations before * it is unregistered. - * - * MDN */ def unregister(): js.Promise[Boolean] = js.native /** The onupdatefound property of the ServiceWorkerRegistration interface is an EventListener property called whenever * an event of type statechange is fired; it is fired any time the ServiceWorkerRegistration. installing property * acquires a new service worker. - * - * MDN */ var onupdatefound: js.Function1[Event, _] = js.native @@ -210,28 +186,20 @@ trait ServiceWorkerRegistration extends EventTarget { * the order that they were created from the current origin via the current service worker registration. Origins can * have many active but differently-scoped service worker registrations. Notifications created by one service worker * on the same origin will not be available to other active services workers on that same origin. - * - * MDN */ def getNotifications(options: GetNotificationOptions = ???): js.Promise[Sequence[Notification]] = js.native /** The showNotification() method of the ServiceWorkerRegistration interface creates a notification on an active * service worker. - * - * MDN */ def showNotification(title: String, options: NotificationOptions = ???): js.Promise[Unit] = js.native } /** An object containing options to filter the notifications returned. - * - * MDN */ trait GetNotificationOptions extends js.Object { /** A DOMString representing a notification tag. If specified, only notifications that have this tag will be returned. - * - * MDN */ var tag: js.UndefOr[String] = js.undefined } @@ -239,8 +207,6 @@ trait GetNotificationOptions extends js.Object { /** The ServiceWorkerContainer interface of the ServiceWorker API exposes the ServiceWorkerContainer. * register(scriptURL, scope[, base]) method used to register service workers, and the ServiceWorkerContainer. * controller property used to determine whether or not the current page is actively controlled. - * - * MDN */ @js.native trait ServiceWorkerContainer extends EventTarget { @@ -249,8 +215,6 @@ trait ServiceWorkerContainer extends EventTarget { * registration ties the provided script URL to a scope, which is subsequently used for navigation matching. If the * 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. - * - * MDN */ def register(scriptURL: String, options: js.Object = new js.Object()): js.Promise[ServiceWorkerRegistration] = js.native @@ -258,47 +222,35 @@ trait ServiceWorkerContainer extends EventTarget { /** 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 * property returns null if the request is a force refresh (Shift + refresh) or if there is no active worker. - * - * MDN */ def controller: ServiceWorker = js.native /** Gets a ServiceWorkerRegistration object whose scope URL matches the document URL. If the method can't return a * ServiceWorkerRegistration, it returns a Promise. - * - * MDN */ def getRegistration(scope: String = ""): js.Promise[js.UndefOr[ServiceWorkerRegistration]] = js.native /** The getRegistrations() method of the ServiceWorkerContainer interface returns all ServiceWorkerRegistrations * associated with a ServiceWorkerContainer in an array. If the method can't return ServiceWorkerRegistrations, it * returns a Promise. - * - * MDN */ def getRegistrations(): js.Promise[js.Array[ServiceWorkerRegistration]] = js.native /** The ready read-only property of the ServiceWorkerContainer interface defines whether a service worker is ready to * control a page or not. It returns a Promise that will never reject, which resolves to a ServiceWorkerRegistration * with an ServiceWorkerRegistration.active worker. - * - * MDN */ def ready: js.Promise[ServiceWorkerRegistration] = js.native /** The oncontrollerchange property of the ServiceWorkerContainer interface is an event handler fired whenever a * controllerchange event occurs — when the document's associated ServiceWorkerRegistratin acquires a new * ServiceWorkerRegistration.active worker. - * - * MDN */ var oncontrollerchange: js.Function1[Event, _] = js.native /** The onmessage property of the ServiceWorkerContainer interface is an event handler fired whenever a message event * occurs — when incoming messages are received to the ServiceWorkerContainer object (e.g., via a * MessagePort.postMessage() call). - * - * MDN */ var onmessage: js.Function1[MessageEvent, _] = js.native } @@ -332,8 +284,6 @@ trait ExtendableMessageEventInit extends ExtendableEventInit { /** Service workers define the extendable message event that extends the message event defined in HTML to allow * extending the lifetime of the event. - * - * MDN */ @js.native @JSGlobal @@ -430,30 +380,22 @@ trait ClientQueryOptions extends js.Object { /** The WindowClient interface of the ServiceWorker API represents the scope of a service worker client that is a * document in a browser context, controlled by an active worker. The service worker client independently selects and * uses a service worker for its own loading and sub-resources. - * - * MDN */ @js.native trait WindowClient extends Client { /** The visibilityState read-only property of the WindowClient interface indicates the visibility of the current * client. This value can be one of hidden, visible, prerender, or unloaded. - * - * MDN */ //todo: stubs for https://www.w3.org/TR/page-visibility/#dom-document-visibilitystate def visibilityState: String = js.native /** The focused read-only property of the WindowClient interface is a Boolean that indicates whether the current * client has focus. - * - * MDN */ def focused: Boolean = js.native /** Gives user input focus to the current client and returns a Promise that resolves to the existing WindowClient. - * - * MDN */ def focus(): js.Promise[WindowClient] @@ -493,15 +435,11 @@ trait Clients extends js.Object { * * Additionally, synchronous requests are not allowed from within a service worker — only asynchronous requests, like * those initiated via the fetch() method, can be used. - * - * MDN */ @js.native trait ServiceWorkerGlobalScope extends WorkerGlobalScope { /** Returns the Clients object associated with the service worker. - * - * MDN */ def clients: Clients = js.native @@ -512,37 +450,27 @@ trait ServiceWorkerGlobalScope extends WorkerGlobalScope { /** An event handler fired whenever an activate event occurs (when the service worker activates). This happens after * installation, when the page to be controlled by the service worker refreshes. - * - * MDN */ var onactivate: js.Function1[ExtendableEvent, _] = js.native /** An event handler fired whenever a fetch event occurs — when a fetch() is called. - * - * MDN */ var onfetch: js.Function1[FetchEvent, _] = js.native /** An event handler fired whenever an install event occurs — when a ServiceWorkerRegistration acquires a new * ServiceWorkerRegistration.installing worker. - * - * MDN */ var oninstall: js.Function1[ExtendableEvent, _] = js.native /** An event handler fired whenever a message event occurs — when incoming messages are received. Controlled pages can * use the MessagePort.postMessage method to send messages to service workers. The service worker can optionally send * a response back via the MessagePort exposed in event.data.port, corresponding to the controlled page. - * - * MDN */ var onmessage: js.Function1[MessageEvent, _] = js.native /** Forces the waiting service worker to become the active service worker. This method can be used with * [[Clients.claim]] to ensure that updates to the underlying service worker take effect immediately for both the * current client and all other active clients. - * - * MDN */ def skipWaiting(): js.Promise[Unit] = js.native } diff --git a/src/main/scala/org/scalajs/dom/experimental/serviceworkers/package.scala b/src/main/scala/org/scalajs/dom/experimental/serviceworkers/package.scala index cb699e260..f40779393 100644 --- a/src/main/scala/org/scalajs/dom/experimental/serviceworkers/package.scala +++ b/src/main/scala/org/scalajs/dom/experimental/serviceworkers/package.scala @@ -25,8 +25,6 @@ package object serviceworkers { /** The Navigator.serviceWorker read-only property returns a ServiceWorkerContainer object, which provides access to * registration, removal, upgrade, and communication with the ServiceWorker objects for the associated document. - * - * MDN */ val serviceWorker: ServiceWorkerContainer = js.native } diff --git a/src/main/scala/org/scalajs/dom/experimental/sharedworkers/SharedWorker.scala b/src/main/scala/org/scalajs/dom/experimental/sharedworkers/SharedWorker.scala index b1a254e59..e8b59372f 100644 --- a/src/main/scala/org/scalajs/dom/experimental/sharedworkers/SharedWorker.scala +++ b/src/main/scala/org/scalajs/dom/experimental/sharedworkers/SharedWorker.scala @@ -8,7 +8,6 @@ import scala.scalajs.js.annotation._ * such as several windows, iframes or even workers. They implement an interface different than dedicated workers and * have a different global scope, SharedWorkerGlobalScope. * - * MDN * @constructor * The SharedWorker constructor creates a SharedWorker object that executes the script at the specified URL.This * script must obey the same-origin policy. @@ -29,8 +28,6 @@ class SharedWorker(stringUrl: String, name: js.UndefOr[String] = js.native) exte /** The port property of the SharedWorker interface returns a [[MessagePort]] object used to communicate and control * the shared worker. - * - * MDN */ def port: MessagePort = js.native } diff --git a/src/main/scala/org/scalajs/dom/experimental/sharedworkers/SharedWorkerGlobalScope.scala b/src/main/scala/org/scalajs/dom/experimental/sharedworkers/SharedWorkerGlobalScope.scala index 747b3cd58..ab9456987 100644 --- a/src/main/scala/org/scalajs/dom/experimental/sharedworkers/SharedWorkerGlobalScope.scala +++ b/src/main/scala/org/scalajs/dom/experimental/sharedworkers/SharedWorkerGlobalScope.scala @@ -9,29 +9,21 @@ import scala.scalajs.js.annotation._ * additional global functions, namespaces objects, and constructors, not typically associated with the worker global * scope, but available on it, are listed in the JavaScript Reference. See the complete list of functions available to * workers. - * - * MDN */ @js.native trait SharedWorkerGlobalScope extends WorkerGlobalScope { /** Returns the name that the SharedWorker was (optionally) given when it was created. This is the name that the * [[SharedWorker]] constructor can pass to get a reference to the SharedWorkerGlobalScope. - * - * MDN */ def name: String = js.native /** Returns the ApplicationCache object for the worker (see Using the application cache). - * - * MDN */ def applicationCache: ApplicationCache = js.native /** An EventHandler representing the code to be called when the connect event is raised — that is, when a MessagePort * connection is opened between the associated SharedWorker and the main thread. - * - * MDN */ var onconnect: js.Function1[ExtendableMessageEvent, _] = js.native } diff --git a/src/main/scala/org/scalajs/dom/experimental/webrtc/WebRTC.scala b/src/main/scala/org/scalajs/dom/experimental/webrtc/WebRTC.scala index b8eae545b..46a0dbdcf 100644 --- a/src/main/scala/org/scalajs/dom/experimental/webrtc/WebRTC.scala +++ b/src/main/scala/org/scalajs/dom/experimental/webrtc/WebRTC.scala @@ -226,14 +226,10 @@ class RTCSessionDescription(descriptionInitDict: js.UndefOr[RTCSessionDescriptio extends js.Object { /** An enum of type RTCSdpType describing the session description's type. - * - * MDN */ var `type`: RTCSdpType = js.native /** A DOMString containing the SDP format describing the session. - * - * MDN */ var sdp: String = js.native } @@ -262,8 +258,6 @@ object RTCIceCandidateInit { /** The RTCIceCandidate interface of the the WebRTC API represents a candidate internet connectivity establishment (ICE) * server for establishing an RTCPeerConnection. - * - * MDN */ @js.native @JSGlobal @@ -271,22 +265,16 @@ class RTCIceCandidate(candidateInitDict: RTCIceCandidateInit) extends js.Object /** Returns a transport address for the candidate that can be used for connectivity checks. The format of this address * is a candidate-attribute as defined in RFC 5245. - * - * MDN */ var candidate: String = js.native /** If not null, this contains the identifier of the "media stream identification" (as defined in RFC 5888) for the * media component this candidate is associated with. - * - * MDN */ var sdpMid: String = js.native /** If not null, this indicates the index (starting at zero) of the media description (as defined in RFC 4566) in the * SDP this candidate is associated with. - * - * MDN */ var sdpMLineIndex: Double = js.native } @@ -318,52 +306,38 @@ object RTCDataChannelState { } /** The RTCDataChannel interface represents a bi-directional data channel between two peers of a connection. - * - * MDN */ @js.native trait RTCDataChannel extends EventTarget { /** Returns a DOMString containing a name describing the data channel. There is no constraint of uniqueness about it. - * - * MDN */ val label: String = js.native /** The read-only property RTCDataChannel.ordered returns a Boolean indicating if the order of delivery of the * messages is guaranteed or not. - * - * MDN */ val ordered: Boolean = js.native val maxPacketLifeTime: Double = js.native val maxRetransmits: Double = js.native /** Returns a DOMString containing the name of the subprotocol in use. If none, it returns "". - * - * MDN */ val protocol: String = js.native val negotiated: Boolean = js.native /** Returns an unsigned short being a unique id for the channel. It is set at the creation of the RTCDataChannel * object. - * - * MDN */ val id: Double = js.native /** Returns an enum of the type RTCDataChannelState representing the state of the underlying data connection. - * - * MDN */ def readyState: RTCDataChannelState = js.native /** Returns an unsigned long containing the amount of bytes that have been queued for sending: that is the amount of * data requested to be transmitted via RTCDataChannel.send() that has not been sent yet. Note that if the channel * state, as given by RTCDataChannel.readyState is "closed", the buffering continues. - * - * MDN */ def bufferedAmount: Double = js.native var onopen: js.Function1[Event, Any] = js.native @@ -371,16 +345,12 @@ trait RTCDataChannel extends EventTarget { /** Is the event handler called when the close event is received. Such an event is sent when the underlying data * transport has been closed. - * - * MDN */ var onclose: js.Function1[Event, Any] = js.native def close(): Unit = js.native /** Is the event handler called when the message event is received. Such an event is sent when a message is available * on the data connection. - * - * MDN */ var onmessage: js.Function1[MessageEvent, Any] = js.native @@ -390,15 +360,11 @@ trait RTCDataChannel extends EventTarget { * * It controls the type of the MessageEvent.data property passed in the parameter of message targetting this * RTCDataChannel. - * - * MDN */ var binaryType: String = js.native /** Sends the data in parameter over the channel. The data can be a DOMString, a Blob, an ArrayBuffer or an * ArrayBufferView. - * - * MDN */ def send(data: String | Blob | ArrayBuffer | ArrayBufferView): Unit = js.native } @@ -416,8 +382,6 @@ trait RTCDataChannelInit extends js.Object { /** The RTCDataChannelEvent interface represents events that occur while attaching a RTCDataChannel to a * RTCPeerConnection. The only event sent with this interface is datachannel. - * - * MDN */ @js.native @JSGlobal @@ -425,8 +389,6 @@ class RTCDataChannelEvent(typeArg: String, init: js.UndefOr[RTCDataChannelEventI def this(init: RTCDataChannelEventInit) = this("datachannel", init) /** Contains the RTCDataChannel containing the data channel associated with the event. - * - * MDN */ val channel: RTCDataChannel = js.native } @@ -538,8 +500,6 @@ trait RTCPeerConnectionIceEventInit extends EventInit { /** The RTCPeerConnectionIceEvent interface represents events that occurs in relation to ICE candidates with the target, * usually an RTCPeerConnection. Only one event is of this type: icecandidate. - * - * MDN */ @js.native @JSGlobal @@ -547,8 +507,6 @@ class RTCPeerConnectionIceEvent(typeArg: String, init: js.UndefOr[RTCPeerConnect extends Event(typeArg, init) { /** Contains the RTCIceCandidate containing the candidate associated with the event. - * - * MDN */ var candidate: RTCIceCandidate = js.native } @@ -654,8 +612,6 @@ trait MediaStreamEventInit extends EventInit { /** The RTCPeerConnection interface represents a WebRTC connection between the local computer and a remote peer. It is * used to handle efficient streaming of data between the two peers. - * - * MDN */ @js.native @JSGlobal @@ -681,8 +637,6 @@ class RTCPeerConnection(configuration: js.UndefOr[RTCConfiguration] = js.undefin * a flaky network, that can recover by itself. * * - "closed": the ICE agent has shutdown and is not answering to requests. - * - * MDN */ def iceConnectionState: RTCIceConnectionState = js.native @@ -694,8 +648,6 @@ class RTCPeerConnection(configuration: js.UndefOr[RTCConfiguration] = js.undefin * * - "complete": the ICE engine has completed gathering. Events such as adding a new interface or a new TURN server * will cause the state to go back to gathering. - * - * MDN */ def iceGatheringState: RTCIceGatheringState = js.native @@ -707,23 +659,17 @@ class RTCPeerConnection(configuration: js.UndefOr[RTCConfiguration] = js.undefin /** Returns a RTCSessionDescription describing the session for the local end of the connection. If it has not yet been * set, it can be null. - * - * MDN */ def localDescription: RTCSessionDescription = js.native /** Returns a RTCIdentityAssertion, that is a couple of a domain name (idp) and a name (name) representing the * identity of the remote peer of this connection, once set and verified. If no peer has yet been set and verified, * this property will return null. Once set, via the appropriate method, it can't be changed. - * - * MDN */ val peerIdentity: RTCIdentityAssertion = js.native /** Returns a RTCSessionDescription describing the session for the remote end of the connection. If it has not yet * been set, it can be null. - * - * MDN */ def remoteDescription: RTCSessionDescription = js.native @@ -743,8 +689,6 @@ class RTCPeerConnection(configuration: js.UndefOr[RTCConfiguration] = js.undefin * - "have-remote-pranswer": a local SDP offer has been applied, and a SDP pranswer applied remotely. * * - "closed": the connection is closed. - * - * MDN */ def signalingState: RTCSignalingState = js.native @@ -752,57 +696,41 @@ class RTCPeerConnection(configuration: js.UndefOr[RTCConfiguration] = js.undefin /** Is the event handler called when the datachannel event is received. Such an event is sent when a RTCDataChannel is * added to this connection. - * - * MDN */ var ondatachannel: js.Function1[RTCDataChannelEvent, Any] = js.native /** Is the event handler called when the icecandidate event is received. Such an event is sent when a RTCICECandidate * object is added to the script. - * - * MDN */ var onicecandidate: js.Function1[RTCPeerConnectionIceEvent, Any] = js.native /** Is the event handler called when the iceconnectionstatechange event is received. Such an event is sent when the * value of iceConnectionState changes. - * - * MDN */ var oniceconnectionstatechange: js.Function1[Event, Any] = js.native /** Is the event handler called when the identityresult event is received. Such an event is sent when an identity * assertion is generated, via getIdentityAssertion(), or during the creation of an offer or an answer. - * - * MDN */ var onidentityresult: js.Function1[Event, Any] = js.native /** Is the event handler called when the idpassertionerror event is received. Such an event is sent when the * associated identity provider (IdP) encounters an error while generating an identity assertion. - * - * MDN */ var onidpassertionerror: js.Function1[Event, Any] = js.native /** Is the event handler alled when the idpvalidationerror event is received. Such an event is sent when the * associated identity provider (IdP) encounters an error while validating an identity assertion. - * - * MDN */ var onidpvalidationerror: js.Function1[Event, Any] = js.native /** Is the event handler called when the negotiationneeded event, sent by the browser to inform that negotiation will * be required at some point in the future, is received. - * - * MDN */ var onnegotiationneeded: js.Function1[Event, Any] = js.native /** Is the event handler called when the peeridentity event, sent when a peer identity has been set and verified on * this connection, is received. - * - * MDN */ var onpeeridentity: js.Function1[Event, Any] = js.native @@ -810,8 +738,6 @@ class RTCPeerConnection(configuration: js.UndefOr[RTCConfiguration] = js.undefin /** Is the event handler called when the signalingstatechange event, sent when the value of signalingState changes, is * received. - * - * MDN */ var onsignalingstatechange: js.Function1[Event, Any] = js.native @@ -823,8 +749,6 @@ class RTCPeerConnection(configuration: js.UndefOr[RTCConfiguration] = js.undefin * * The return value is a Promise which, when the offer has been created, is resolved with a RTCSessionDescription * object containing the newly-created offer. - * - * MDN */ def createOffer(options: RTCOfferOptions = js.native): js.Promise[RTCSessionDescription] = js.native @@ -833,24 +757,18 @@ class RTCPeerConnection(configuration: js.UndefOr[RTCConfiguration] = js.undefin * media already attached to the session, codecs and options supported by the browser, and any ICE candidates already * gathered. The answer is delivered to the returned Promise, and should then be sent to the source of the offer to * continue the negotiation process. - * - * MDN */ def createAnswer(): js.Promise[RTCSessionDescription] = js.native /** Changes the local description associated with the connection. The description defines the properties of the * connection like its codec. The connection is affected by this change and must be able to support both old and new * descriptions. The method takes one parameters, a RTCSessionDescription object to set, and returns a Promise. - * - * MDN */ def setLocalDescription(description: RTCSessionDescription): js.Promise[Unit] = js.native /** Changes the remote description associated with the connection. The description defines the properties of the * connection like its codec. The connection is affected by this change and must be able to support both old and new * descriptions. The method takes one parameters, a RTCSessionDescription object to set, and returns a Promise. - * - * MDN */ def setRemoteDescription(description: RTCSessionDescription): js.Promise[Unit] = js.native @@ -859,8 +777,6 @@ class RTCPeerConnection(configuration: js.UndefOr[RTCConfiguration] = js.undefin * used to limit the use to TURN candidates by a callee to avoid leaking location information prior to the call being * accepted. This call may result in a change to the state of the ICE Agent, and may result in a change to media * state if it results in connectivity being established - * - * MDN */ def updateIce(configuration: RTCConfiguration): Unit = js.native @@ -868,69 +784,49 @@ class RTCPeerConnection(configuration: js.UndefOr[RTCConfiguration] = js.undefin * remote description, connectivity checks will be sent to the new candidates as long as the "IceTransports" * constraint is not set to "none". This call will result in a change to the connection state of the ICE Agent, and * may result in a change to media state if it results in different connectivity being established. - * - * MDN */ def addIceCandidate(candidate: RTCIceCandidate): js.Promise[Unit] = js.native def getConfiguration(): RTCConfiguration = js.native /** Returns an array of MediaStream associated with the local end of the connection. The array may be empty. - * - * MDN */ def getLocalStreams(): js.Array[MediaStream] = js.native /** Returns an array of MediaStream associated with the remote end of the connection. The array may be empty. - * - * MDN */ def getRemoteStreams(): js.Array[MediaStream] = js.native /** Returns the MediaStream with the given id that is associated with local or remote end of the connection. If no * stream matches, it returns null. - * - * MDN */ def getStreamById(id: String): MediaStream = js.native /** Adds a MediaStream as a local source of audio or video. If the negotiation already happened, a new one will be * needed for the remote peer to be able to use it. - * - * MDN */ def addStream(stream: MediaStream): Unit = js.native /** Removes a MediaStream as a local source of audio or video. If the negotiation already happened, a new one will be * needed for the remote peer to stop using it. - * - * MDN */ def removeStream(stream: MediaStream): Unit = js.native /** Abruptly closes a connection. - * - * MDN */ def close(): Unit = js.native /** Creates a new RTCDataChannel associated with this connection. The method takes a dictionary as parameter, with the * configuration required for the underlying data channel, like its reliability. - * - * MDN */ def createDataChannel(label: String, dataChannelDict: RTCDataChannelInit): RTCDataChannel = js.native /** Creates a new RTCDTMFSender, associated to a specific MediaStreamTrack, that will be able to send DTMF phone * signaling over the connection. - * - * MDN */ def createDTMFSender(track: MediaStreamTrack): RTCDTMFSender = js.native /** Creates a new RTCStatsReport that contains and allows access to statistics regarding the connection. - * - * MDN */ def getStats(selector: MediaStreamTrack, callback: js.Function1[RTCStatsReport, Any], error: js.Function1[DOMException, Any]): RTCStatsReport = js.native diff --git a/src/main/scala/org/scalajs/dom/experimental/webrtc/package.scala b/src/main/scala/org/scalajs/dom/experimental/webrtc/package.scala index 721d583b4..5e7e63a94 100644 --- a/src/main/scala/org/scalajs/dom/experimental/webrtc/package.scala +++ b/src/main/scala/org/scalajs/dom/experimental/webrtc/package.scala @@ -15,8 +15,6 @@ package object webrtc { /** The Navigator.mediaDevices read-only property returns a MediaDevices object, which provides access to connected * media input devices like cameras and microphones, as well as screen sharing. * - * MDN - * * @see * [[https://developer.mozilla.org/en-US/docs/Web/API/Navigator/mediaDevices]] */ diff --git a/src/main/scala/org/scalajs/dom/lib.scala b/src/main/scala/org/scalajs/dom/lib.scala index 8ce74bdcb..eb534604e 100644 --- a/src/main/scala/org/scalajs/dom/lib.scala +++ b/src/main/scala/org/scalajs/dom/lib.scala @@ -1,5 +1,5 @@ -/** Documentation marked "MDN" 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. +/** 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 @@ -19,69 +19,49 @@ object XPathResult extends js.Object { /** A result set containing whatever type naturally results from evaluation of the expression. Note that if the result * is a node-set then UNORDERED_NODE_ITERATOR_TYPE is always the resulting type. - * - * MDN */ val ANY_TYPE: Int = js.native /** A result containing a single number. This is useful for example, in an XPath expression using the count() * function. - * - * MDN */ val NUMBER_TYPE: Int = js.native /** A result containing a single string. - * - * MDN */ val STRING_TYPE: Int = js.native /** A result containing a single boolean value. This is useful for example, in an XPath expression using the not() * function. - * - * MDN */ val BOOLEAN_TYPE: Int = js.native /** A result node-set containing all the nodes matching the expression. The nodes may not necessarily be in the same * order that they appear in the document. - * - * MDN */ val UNORDERED_NODE_ITERATOR_TYPE: Int = js.native /** A result node-set containing all the nodes matching the expression. The nodes in the result set are in the same * order that they appear in the document. - * - * MDN */ val ORDERED_NODE_ITERATOR_TYPE: Int = js.native /** A result node-set containing snapshots of all the nodes matching the expression. The nodes may not necessarily be * in the same order that they appear in the document. - * - * MDN */ val UNORDERED_NODE_SNAPSHOT_TYPE: Int = js.native /** A result node-set containing snapshots of all the nodes matching the expression. The nodes in the result set are * in the same order that they appear in the document. - * - * MDN */ val ORDERED_NODE_SNAPSHOT_TYPE: Int = js.native /** A result node-set containing any single node that matches the expression. The node is not necessarily the first * node in the document that matches the expression. - * - * MDN */ val ANY_UNORDERED_NODE_TYPE: Int = js.native /** A result node-set containing the first node in the document that matches the expression. - * - * MDN */ val FIRST_ORDERED_NODE_TYPE: Int = js.native } @@ -109,8 +89,6 @@ class XPathNSResolver extends js.Object { /** The PositionOptions interface describes the options to use when calling the geolocation backend. The user agent * itself doesn't create such an object itself: it is the calling script that create it and use it as a parameter of * Geolocation.getCurrentPosition() and Geolocation.watchPosition(). - * - * MDN */ @js.native @JSGlobal @@ -121,16 +99,12 @@ class PositionOptions extends js.Object { * Note that this can result in slower response times or increased power consumption (with a GPS chip on a mobile * device for example). On the other hand, if false (the default value), the device can take the liberty to save * resources by responding more quickly and/or using less power. - * - * MDN */ var enableHighAccuracy: Boolean = js.native /** The PositionOptions.timeout property is a positive long value representing the maximum length of time (in * milliseconds) the device is allowed to take in order to return a position. The default value is Infinity, meaning * that getCurrentPosition() won't return until the position is available. - * - * MDN */ var timeout: Int = js.native @@ -138,8 +112,6 @@ class PositionOptions extends js.Object { * possible cached position that is acceptable to return. If set to 0, it means that the device cannot use a cached * position and must attempt to retrieve the real current position. If set to Infinity the device must return a * cached position regardless of its age. - * - * MDN */ var maximumAge: Int = js.native } @@ -147,8 +119,6 @@ class PositionOptions extends js.Object { /** The NavigatorID interface contains methods and properties related to the identity of the browser. * * There is no object of type NavigatorID, but other interfaces, like Navigator or WorkerNavigator, implement it. - * - * MDN */ @js.native trait NavigatorID extends js.Object { @@ -156,27 +126,19 @@ trait NavigatorID extends js.Object { /** Returns the version of the browser as a string. It may be either a plain version number, like "5.0", or a version * number followed by more detailed information. The HTML5 specification also allows any browser to return "4.0" * here, for compatibility reasons. - * - * MDN */ def appVersion: String = js.native /** Returns the name of the browser. The HTML5 specification also allows any browser to return "Netscape" here, for * compatibility reasons. - * - * MDN */ def appName: String = js.native /** Returns the user agent string for the current browser. - * - * MDN */ def userAgent: String = js.native /** Returns a string representing the platform of the browser. - * - * MDN */ def platform: String = js.native } @@ -184,8 +146,6 @@ trait NavigatorID extends js.Object { /** The TreeWalker object represents the nodes of a document subtree and a position within them. * * A TreeWalker can be created using the Document.createTreeWalker() method. - * - * MDN */ @js.native @JSGlobal @@ -193,81 +153,59 @@ class TreeWalker extends js.Object { /** Returns an unsigned long being a bitmask made of constants describing the types of Node that must to be presented. * Non-matching nodes are skipped, but their children may be included, if relevant. - * - * MDN */ def whatToShow: Int = js.native /** The TreeWalker.filter read-only property returns a NodeFilter that is the filtering object associated with the * TreeWalker. - * - * MDN */ def filter: NodeFilter = js.native /** The TreeWalker.root read-only property returns the node that is the root of what the TreeWalker traverses. - * - * MDN */ def root: Node = js.native /** The TreeWalker.currentNode property represents the Node on which the TreeWalker is currently pointing at. - * - * MDN */ var currentNode: Node = js.native /** The TreeWalker.previousSibling() method moves the current Node to its previous sibling, if any, and returns the * found sibling. I there is no such node, return null and the current node is not changed. - * - * MDN */ def previousSibling(): Node = js.native /** The TreeWalker.lastChild() method moves the current Node to the last visible child of the current node, and * returns the found child. It also moves the current node to this child. If no such child exists, returns null and * the current node is not changed. - * - * MDN */ def lastChild(): Node = js.native /** The TreeWalker.nextSibling() method moves the current Node to its next sibling, if any, and returns the found * sibling. I there is no such node, return null and the current node is not changed. - * - * MDN */ def nextSibling(): Node = js.native /** The TreeWalker.nextNode() method moves the current Node to the next visible node in the document order, and * returns the found node. It also moves the current node to this one. If no such node exists, returns null and the * current node is not changed. - * - * MDN */ def nextNode(): Node = js.native /** The TreeWalker.parentNode() method moves the current Node to the first visible ancestor node in the document * order, and returns the found node. It also moves the current node to this one. If no such node exists, or if it is * before that the root node defined at the object construction, returns null and the current node is not changed. - * - * MDN */ def parentNode(): Node = js.native /** The TreeWalker.firstChild() method moves the current Node to the first visible child of the current node, and * returns the found child. It also moves the current node to this child. If no such child exists, returns null and * the current node is not changed. - * - * MDN */ def firstChild(): Node = js.native /** The TreeWalker.previousNode() method moves the current Node to the previous visible node in the document order, * and returns the found node. It also moves the current node to this one. If no such node exists,or if it is before * that the root node defined at the object construction, returns null and the current node is not changed. - * - * MDN */ def previousNode(): Node = js.native } @@ -275,8 +213,6 @@ class TreeWalker extends js.Object { /** An object of this type can be obtained by calling the Window.performance read-only attribute. * * An object of this type can be obtained by calling the Window.performance read-only attribute. - * - * MDN */ @js.native @JSGlobal @@ -285,23 +221,17 @@ class Performance extends js.Object { /** The Performance.navigation read-only property returns a PerformanceNavigation object representing the type of * navigation that occurs in the given browsing context, like the amount of redirections needed to fetch the * resource. - * - * MDN */ def navigation: PerformanceNavigation = js.native /** The Performance.timing read-only property returns a PerformanceTiming object containing latency-related * performance information. - * - * MDN */ def timing: PerformanceTiming = js.native def getEntriesByType(entryType: String): js.Dynamic = js.native /** Is a jsonizer returning a json object representing the Performance object. - * - * MDN */ def toJSON(): js.Dynamic = js.native @@ -327,8 +257,6 @@ class Performance extends js.Object { /** Returns a DOMHighResTimeStamp representing the amount of milliseconds elapsed since the start of the navigation, * as give by PerformanceTiming.navigationStart to the call of the method. - * - * MDN */ def now(): Double = js.native } @@ -339,8 +267,6 @@ trait CompositionEventInit extends UIEventInit { } /** The DOM CompositionEvent represents events that occur due to the user indirectly entering text. - * - * MDN */ @js.native @JSGlobal @@ -350,15 +276,11 @@ class CompositionEvent(typeArg: String, init: js.UndefOr[CompositionEventInit]) * composed. This value doesn't change even if content changes the selection range; rather, it indicates the string * that was selected when composition started. For compositionupdate, this is the string as it stands currently as * editing is ongoing. For compositionend events, this is the string as committed to the editor. Read only. - * - * MDN */ def data: String = js.native /** The locale of current input method (for example, the keyboard layout locale if the composition is associated with * IME). Read only. - * - * MDN */ def locale: String = js.native } @@ -367,27 +289,19 @@ class CompositionEvent(typeArg: String, init: js.UndefOr[CompositionEventInit]) trait WindowTimers extends js.Object { /** Clears the delay set by window.setTimeout(). - * - * MDN */ def clearTimeout(handle: Int): Unit = js.native /** Calls a function or executes a code snippet after a specified delay. - * - * MDN */ def setTimeout(handler: js.Function0[Any], timeout: Double): Int = js.native /** Cancels repeated action which was set up using setInterval. - * - * MDN */ def clearInterval(handle: Int): Unit = js.native /** Calls a function or executes a code snippet repeatedly, with a fixed time delay between each call to that * function. - * - * MDN */ def setInterval(handler: js.Function0[Any], timeout: Double): Int = js.native } @@ -396,8 +310,6 @@ trait WindowTimers extends js.Object { * to register themselves to carry on some activities. * * A Navigator object can be retrieved using the read-only Window.navigator property. - * - * MDN */ @js.native @JSGlobal @@ -421,15 +333,11 @@ trait NodeSelector extends js.Object { /** Returns a list of the elements within the document (using depth-first pre-order traversal of the document's nodes) * that match the specified group of selectors. - * - * MDN */ def querySelectorAll(selectors: String): NodeList[Node] = js.native /** Returns the first element within the document (using depth-first pre-order traversal of the document's nodes) that * matches the specified group of selectors. - * - * MDN */ def querySelector(selectors: String): Element = js.native } @@ -447,22 +355,16 @@ class DOMRect extends js.Object { /** The DOMImplementation interface represent an object providing methods which are not dependent on any particular * document. Such an object is returned by the Document.implementation property. - * - * MDN */ @js.native @JSGlobal class DOMImplementation extends js.Object { /** « DOM Reference « DOMImplementation - * - * MDN */ def createDocumentType(qualifiedName: String, publicId: String, systemId: String): DocumentType = js.native /** « DOM Reference « DOMImplementation - * - * MDN */ def createDocument(namespaceURI: String, qualifiedName: String, doctype: DocumentType): Document = js.native @@ -471,14 +373,10 @@ class DOMImplementation extends js.Object { /** Returns a Boolean indicating if a given feature is supported or not. This function is unreliable and kept for * compatibility purpose alone: except for SVG-related queries, it always returns true. Old browsers are very * inconsistent in their behavior. - * - * MDN */ def hasFeature(feature: String): Boolean = js.native /** Creates and returns an HTML Document. - * - * MDN */ def createHTMLDocument(title: String): Document = js.native } @@ -487,39 +385,27 @@ class DOMImplementation extends js.Object { * * ParentNode is a raw interface and no object of this type can be created; it is implemented by Element, Document, and * DocumentFragment objects. - * - * MDN */ @js.native trait ParentNode extends js.Object { /** Returns a live HTMLCollection containing all objects of type Element that are children of the object. - * - * MDN */ def children: HTMLCollection = js.native /** Returns the Element that is the first child of the object, or null if there is none. - * - * MDN */ def firstElementChild: Element = js.native /** Returns the Element that is the last child of the object, or null if there is none. - * - * MDN */ def lastElementChild: Element = js.native /** Returns an unsigned long giving the amount of children that the object has. - * - * MDN */ def childElementCount: Int = js.native /** Replaces the existing children of a Node with a specified new set of children. - * - * MDN */ def replaceChildren(nodes: (Node | String)*): Unit = js.native } @@ -537,15 +423,11 @@ trait NonDocumentTypeChildNode extends js.Object { /** The previousElementSibling read-only property returns the Element immediately prior to the specified one in its * parent's children list, or null if the specified element is the first one in the list. - * - * MDN */ def previousElementSibling: Element = js.native /** The nextElementSibling read-only property returns the element immediately following the specified one in its * parent's children list, or null if the specified element is the last one in the list. - * - * MDN */ def nextElementSibling: Element = js.native } @@ -561,51 +443,37 @@ trait NonDocumentTypeChildNode extends js.Object { abstract class Element extends Node with NodeSelector with ParentNode with NonDocumentTypeChildNode { /** A DOMString representing the namespace prefix of the element, or null if no prefix is specified. - * - * MDN */ def prefix: String = js.native /** scrollTop gets or sets the number of pixels that the content of an element is scrolled upward. - * - * MDN */ var scrollTop: Double = js.native /** The width of the left border of an element in pixels. It includes the width of the vertical scrollbar if the text * direction of the element is right–to–left and if there is an overflow causing a left vertical scrollbar to be * rendered. clientLeft does not include the left margin or the left padding. clientLeft is read-only. - * - * MDN */ def clientLeft: Int = js.native /** scrollLeft gets or sets the number of pixels that an element's content is scrolled to the left. - * - * MDN */ var scrollLeft: Double = js.native /** In XML (and XML-based languages such as XHTML), tagName preserves case. On HTML elements in DOM trees flagged as * HTML documents, tagName returns the element name in the uppercase form. The value of tagName is the same as that * of nodeName. - * - * MDN */ def tagName: String = js.native /** clientWidth is the inner width of an element in pixels. It includes padding but not the vertical scrollbar (if * present, if rendered), border or margin. - * - * MDN */ def clientWidth: Int = js.native /** scrollWidth is a read–only property that returns either the width in pixels of the content of an element or the * width of the element itself, whichever is greater. If the element is wider than its content area (for example, if * there are scroll bars for scrolling through the content), the scrollWidth is larger than the clientWidth. - * - * MDN */ def scrollWidth: Int = js.native @@ -613,21 +481,15 @@ abstract class Element extends Node with NodeSelector with ParentNode with NonDo * border, or margin. * * clientHeight can be calculated as CSS height + CSS padding - height of horizontal scrollbar (if present). - * - * MDN */ def clientHeight: Int = js.native /** The width of the top border of an element in pixels. It does not include the top margin or padding. clientTop is * read-only. - * - * MDN */ def clientTop: Int = js.native /** Height of the scroll view of an element; it includes the element padding but not its margin. - * - * MDN */ def scrollHeight: Int = js.native @@ -651,20 +513,14 @@ abstract class Element extends Node with NodeSelector with ParentNode with NonDo /** The copy event is fired when the user initiates a copy action through the browser UI (for example, using the * CTRL/Cmd+C keyboard shortcut or selecting the "Copy" from the menu) and in response to an allowed * `document.execCommand("copy")` call. - * - * MDN */ var oncopy: js.Function1[ClipboardEvent, _] = js.native /** The cut event is fired when a selection has been removed from the document and added to the clipboard. - * - * MDN */ var oncut: js.Function1[ClipboardEvent, _] = js.native /** The paste event is fired when a selection has been pasted from the clipboard to the document. - * - * MDN */ var onpaste: js.Function1[ClipboardEvent, _] = js.native @@ -683,8 +539,6 @@ abstract class Element extends Node with NodeSelector with ParentNode with NonDo /** The insertAdjacentElement() method of the Element interface inserts a given element node at a given position * relative to the element it is invoked upon. * - * MDN - * * @param position * A DOMString representing the position relative to the targetElement; must match (case-insensitively) one of the * following strings: @@ -700,15 +554,11 @@ abstract class Element extends Node with NodeSelector with ParentNode with NonDo /** The `matches()` method of the `Element` interface returns `true` if the element would be selected by the specified * selector string; otherwise, it returns `false`. - * - * MDN */ def matches(selector: String): Boolean = js.native /** getAttribute() returns the value of the named attribute on the specified element. If the named attribute does not * exist, the value returned will either be null or "" (the empty string); see Notes for details. - * - * MDN */ def getAttribute(name: String): String = js.native @@ -716,14 +566,10 @@ abstract class Element extends Node with NodeSelector with ParentNode with NonDo * excluding the element itself. The returned list is live, meaning that it updates itself with the DOM tree * automatically. Consequently, there is no need to call several times element.getElementsByTagName with the same * element and arguments. - * - * MDN */ def getElementsByTagName(name: String): HTMLCollection = js.native /** Returns a list of elements with the given tag name belonging to the given namespace. - * - * MDN */ def getElementsByTagNameNS(namespaceURI: String, localName: String): HTMLCollection = js.native @@ -731,81 +577,55 @@ abstract class Element extends Node with NodeSelector with ParentNode with NonDo * document object, the complete document is searched, including the root node. You may also call * getElementsByClassName() on any element; it will return only elements which are descendants of the specified root * element with the given class names. - * - * MDN */ def getElementsByClassName(classNames: String): HTMLCollection = js.native /** hasAttributeNS returns a boolean value indicating whether the current element has the specified attribute. - * - * MDN */ def hasAttributeNS(namespaceURI: String, localName: String): Boolean = js.native /** Returns a text rectangle object that encloses a group of text rectangles. - * - * MDN */ def getBoundingClientRect(): DOMRect = js.native /** getAttributeNS returns the string value of the attribute with the specified namespace and name. If the named * attribute does not exist, the value returned will either be null or "" (the empty string); see Notes for details. - * - * MDN */ def getAttributeNS(namespaceURI: String, localName: String): String = js.native /** Returns the Attr node for the attribute with the given namespace and name. - * - * MDN */ def getAttributeNodeNS(namespaceURI: String, localName: String): Attr = js.native /** setAttributeNodeNS adds a new namespaced attribute node to an element. - * - * MDN */ def setAttributeNodeNS(newAttr: Attr): Attr = js.native /** hasAttribute returns a boolean value indicating whether the specified element has the specified attribute or not. - * - * MDN */ def hasAttribute(name: String): Boolean = js.native /** removeAttribute removes an attribute from the specified element. - * - * MDN */ def removeAttribute(name: String): Unit = js.native /** setAttributeNS adds a new attribute or changes the value of an attribute with the given namespace and name. - * - * MDN */ def setAttributeNS(namespaceURI: String, qualifiedName: String, value: String): Unit = js.native /** Returns the specified attribute of the specified element, as an Attr node. - * - * MDN */ def getAttributeNode(name: String): Attr = js.native /** Returns a collection of rectangles that indicate the bounding rectangles for each box in a client. - * - * MDN */ def getClientRects(): DOMRectList = js.native /** setAttributeNode() adds a new Attr node to the specified element. - * - * MDN */ def setAttributeNode(newAttr: Attr): Attr = js.native /** removeAttributeNode removes the specified attribute from the current element. - * - * MDN */ def removeAttributeNode(oldAttr: Attr): Attr = js.native @@ -816,8 +636,6 @@ abstract class Element extends Node with NodeSelector with ParentNode with NonDo def setAttribute(name: String, value: String): Unit = js.native /** removeAttributeNS removes the specified attribute from an element. - * - * MDN */ def removeAttributeNS(namespaceURI: String, localName: String): Unit = js.native @@ -833,22 +651,16 @@ abstract class Element extends Node with NodeSelector with ParentNode with NonDo * Earlier implementations of the Fullscreen API would always send these events to the document rather than the * element, and you may need to be able to handle that situation. Check Browser compatibility in fullscreen for * specifics on when each browser made this change. - * - * MDN */ def requestFullscreen(options: FullscreenOptions = js.native): js.Promise[Unit] = js.native /** The Element interface's onfullscreenchange property is an event handler for the fullscreenchange event that is * fired when the element has transitioned into or out of full-screen mode. - * - * MDN */ var onfullscreenchange: js.Function1[Event, _] = js.native /** The Element interface's onfullscreenerror property is an event handler for the fullscreenerror event which is sent * to the element when an error occurs while attempting to transition into or out of full-screen mode. - * - * MDN */ var onfullscreenerror: js.Function1[Event, _] = js.native } @@ -866,23 +678,17 @@ trait FullscreenOptions extends js.Object { * * These interfaces may return null in particular cases where the methods and properties are not relevant. They may * throw an exception - for example when adding children to a node type for which no children can exist. - * - * MDN */ @js.native @JSGlobal abstract class Node extends EventTarget { /** The read-only Node.nodeType property returns an unsigned short integer representing the type of the node. - * - * MDN */ def nodeType: Int = js.native /** Returns the node immediately preceding the specified one in its parent's childNodes list, null if the specified * node is the first in that list. - * - * MDN */ def previousSibling: Node = js.native @@ -890,8 +696,6 @@ abstract class Node extends EventTarget { * the property upper-cases the local name for HTML elements (but not XHTML elements). In later versions, this does * not happen, so the property is in lower case for both HTML and XHTML. Though the specification requires localName * to be defined on the Node interface, Gecko-based browsers implement it on the Element interface. - * - * MDN */ def localName: String = js.native @@ -899,28 +703,20 @@ abstract class Node extends EventTarget { * namespace. In later versions, HTML elements are in the http://www.w3.org/1999/xhtml namespace in both HTML and * XML trees. Though the specification requires namespaceURI to be defined on the Node interface, Gecko-based * browsers implement it on the Element interface. - * - * MDN */ def namespaceURI: String = js.native /** Is a DOMString representing the textual content of an element and all its descendants. - * - * MDN */ var textContent: String = js.native /** Returns a Node that is the parent of this node. If there is no such node, like if this node is the top of the tree * or if doesn't participate in a tree, this property returns null. - * - * MDN */ def parentNode: Node = js.native /** Returns the node immediately following the specified one in its parent's childNodes list, or null if the specified * node is the last node in that list. - * - * MDN */ def nextSibling: Node = js.native @@ -928,35 +724,25 @@ abstract class Node extends EventTarget { * ignored. For nodes of type TEXT_NODE (Text objects), COMMENT_NODE (Comment objects), and * PROCESSING_INSTRUCTION_NODE (ProcessingInstruction objects), the value corresponds to the text data contained in * the object. - * - * MDN */ var nodeValue: String = js.native /** Returns a Node representing the last direct child node of the node, or null if the node has no child. - * - * MDN */ def lastChild: Node = js.native /** Returns a live NodeList containing all the children of this node. NodeList being live means that if the children * of the Node change, the NodeList object is automatically updated. - * - * MDN */ def childNodes: NodeList[Node] = js.native /** Returns a DOMString containing the name of the Node. The structure of the name will differ with the name type. * E.g. An HTMLElement will contain the name of the corresponding tag, like 'audio' for an HTMLAudioElement, a Text * node will have the '#text' string, or a Document node will have the '#document' string. - * - * MDN */ def nodeName: String = js.native /** Returns the Document that this node belongs to. If no document is associated with it, returns null. - * - * MDN */ def ownerDocument: Document = js.native @@ -966,126 +752,88 @@ abstract class Node extends EventTarget { * Object. Attribute can hold additional data/information that is required while processing custom JavaScript. There * are many predefined attributes for different nodes used for binding events, validations, and specifying layout * informations that are handled by browser (may vary from browser to browser). - * - * MDN */ def attributes: NamedNodeMap = js.native /** Returns the node's first child in the tree, or null if the node is childless. If the node is a Document, it * returns the first node in the list of its direct children. - * - * MDN */ def firstChild: Node = js.native /** Removes a child node from the current element, which must be a child of the current node. - * - * MDN */ def removeChild(oldChild: Node): Node = js.native /** Adds a node to the end of the list of children of a specified parent node. If the node already exists it is * removed from current parent node, then added to new parent node. - * - * MDN */ def appendChild(newChild: Node): Node = js.native /** The Node.isSupported()returns a Boolean flag containing the result of a test whether the DOM implementation * implements a specific feature and this feature is supported by the specific node. - * - * MDN */ def isSupported(feature: String, version: String): Boolean = js.native /** If #targetElm is first div element in document, "true" will be displayed. - * - * MDN */ def isEqualNode(arg: Node): Boolean = js.native /** Returns the prefix for a given namespaceURI if present, and null if not. When multiple prefixes are possible, the * result is implementation-dependent. - * - * MDN */ def lookupPrefix(namespaceURI: String): String = js.native /** isDefaultNamespace accepts a namespace URI as an argument and returns true if the namespace is the default * namespace on the given node or false if not. - * - * MDN */ def isDefaultNamespace(namespaceURI: String): Boolean = js.native /** Compares the position of the current node against another node in any other document. - * - * MDN */ def compareDocumentPosition(other: Node): Int = js.native /** Puts the specified node and all of its subtree into a "normalized" form. In a normalized subtree, no text nodes in * the subtree are empty and there are no adjacent text nodes. - * - * MDN */ def normalize(): Unit = js.native /** Tests whether two nodes are the same, that is they reference the same object. - * - * MDN */ def isSameNode(other: Node): Boolean = js.native /** Returns a Boolean value indicating whether a node is a descendant of a given node, i.e. the node itself, one of * its direct children (childNodes), one of the children's direct children, and so on. - * - * MDN */ def contains(otherNode: Node): Boolean = js.native /** hasAttributes returns a boolean value of true or false, indicating if the current element has any attributes or * not. - * - * MDN */ def hasAttributes(): Boolean = js.native /** Takes a prefix and returns the namespaceURI associated with it on the given node if found (and null if not). * Supplying null for the prefix will return the default namespace. - * - * MDN */ def lookupNamespaceURI(prefix: String): String = js.native /** Clone a Node, and optionally, all of its contents. By default, it clones the content of the node. - * - * MDN */ def cloneNode(deep: Boolean = js.native): Node = js.native /** hasChildNodes returns a Boolean value indicating whether the current Node has child nodes or not. - * - * MDN */ def hasChildNodes(): Boolean = js.native /** Replaces one child Node of the current one with the second one given in parameter. - * - * MDN */ def replaceChild(newChild: Node, oldChild: Node): Node = js.native /** Inserts the first Node given in a parameter immediately before the second, child of this element, Node. - * - * MDN */ def insertBefore(newChild: Node, refChild: Node): Node = js.native /** Represents the "rendered" text content of a node and its descendants. As a getter, it approximates the text the * user would get if they highlighted the contents of the element with the cursor and then copied to the clipboard. - * - * MDN */ var innerText: String = js.native } @@ -1141,47 +889,33 @@ trait ModifierKeyEventInit extends js.Object { trait ModifierKeyEvent extends js.Object { /** The metaKey property indicates if the meta key was pressed (true) or not (false) when the event occurred. - * - * MDN */ def metaKey: Boolean = js.native /** The altKey property indicates if the alt key was pressed (true) or not (false) when the event occurred. - * - * MDN */ def altKey: Boolean = js.native /** A Boolean value indicating whether or not the control key was down when the touch event was fired. Read only. - * - * MDN */ def ctrlKey: Boolean = js.native /** A Boolean value indicating whether or not the shift key was down when the touch event was fired. Read only. - * - * MDN */ def shiftKey: Boolean = js.native } /** The hashchange event is fired when the fragment identifier of the URL has changed (the part of the URL that follows * the # symbol, including the # symbol). - * - * MDN */ @js.native trait HashChangeEvent extends Event { /** The new URL to which the window is navigating. - * - * MDN */ def newURL: String = js.native /** The previous URL from which the window was navigated. - * - * MDN */ def oldURL: String = js.native } @@ -1205,8 +939,6 @@ trait MouseEventInit extends UIEventInit with ModifierKeyEventInit { * interface is provided in the Events reference. * * MouseEvent derives from UIEvent, which in turn derives from Event. - * - * MDN */ @js.native @JSGlobal @@ -1214,65 +946,45 @@ class MouseEvent(typeArg: String, init: js.UndefOr[MouseEventInit]) extends UIEvent(typeArg, init) with ModifierKeyEvent { /** The screenX property provides the X coordinate of the mouse pointer in global (screen) coordinates. - * - * MDN */ def screenX: Double = js.native /** The pageX property is an integer value in pixels for the X coordinate of the mouse pointer, relative to the whole * document, when the mouse event fired. This property takes into account any horizontal scrolling of the page. - * - * MDN */ def pageX: Double = js.native /** The pageY property is an integer value in pixels for the Y coordinate of the mouse pointer, relative to the whole * document, when the mouse event fired. This property takes into account any vertical scrolling of the page. - * - * MDN */ def pageY: Double = js.native /** The clientY property provides the Y coordinate of the mouse pointer in local (DOM content) coordinates. - * - * MDN */ def clientY: Double = js.native /** The screenY property provides the Y coordinate of the mouse pointer in global (screen) coordinates. - * - * MDN */ def screenY: Double = js.native /** The relatedTarget property is the secondary target for the event, if there is one. - * - * MDN */ def relatedTarget: EventTarget = js.native /** The button property indicates which button was pressed on the mouse to trigger the event. - * - * MDN */ def button: Int = js.native /** The buttons property indicates which buttons were pressed on the mouse to trigger the event. - * - * MDN */ def buttons: Int = js.native /** The clientX property provides the X coordinate of the mouse pointer in local (DOM content) coordinates. - * - * MDN */ def clientX: Double = js.native /** Returns the current state of the specified modifier key. See the KeyboardEvent.getModifierState() documentation * for details. - * - * MDN */ def getModifierState(keyArg: String): Boolean = js.native } @@ -1294,8 +1006,6 @@ class MouseEvent(typeArg: String, init: js.UndefOr[MouseEventInit]) * element, button states, etc.) in addition to new properties for other forms of input: pressure, contact geometry, * tilt, etc. In fact, the PointerEvent interface inherits all of the MouseEvent's properties thus facilitating * migrating content from mouse events to pointer events. - * - * MDN */ @js.native @JSGlobal @@ -1307,24 +1017,18 @@ class PointerEvent(typeArg: String, pointerEventInit: js.UndefOr[PointerEventIni /** An identifier assigned to a pointer event that is unique from the identifiers of all active pointer events at the * time. Authors cannot assume values convey any particular meaning other than an identifier for the pointer that is * unique from all other active pointers. - * - * MDN */ def pointerId: Double = js.native /** The width read-only property of the PointerEvent interface represents the width of the pointer's contact geometry * along the x-axis, measured in CSS pixels. Depending on the source of the pointer device (such as a finger), for a * given pointer, each event may produce a different value. - * - * MDN */ def width: Double = js.native /** The height read-only property of the PointerEvent interface represents the height of the pointer's contact * geometry, along the Y axis (in CSS pixels). Depending on the source of the pointer device (for example a finger), * for a given pointer, each event may produce a different value. - * - * MDN */ def height: Double = js.native @@ -1333,8 +1037,6 @@ class PointerEvent(typeArg: String, pointerEventInit: js.UndefOr[PointerEventIni * * For hardware that does not support pressure, including but not limited to mouse, the value MUST be 0.5 when the * pointer is active and 0 otherwise. - * - * MDN */ def pressure: Double = js.native @@ -1344,24 +1046,18 @@ class PointerEvent(typeArg: String, pointerEventInit: js.UndefOr[PointerEventIni * * Note that some hardware may only support positive values in the range 0 to 1. For hardware that does not support * tangential pressure, the value will be 0. - * - * MDN */ def tangentialPressure: Double = js.native /** This property is the angle (in degrees) between the Y-Z plane of the pointer and the screen. This property is * typically only useful for a pen/stylus pointer type. The range of values is -90 to 90 degrees and a positive value * means a tilt to the right. For devices that do not support this property, the value is 0. - * - * MDN */ def tiltX: Double = js.native /** This property is the angle (in degrees) between the X-Z plane of the pointer and the screen. This property is * typically only useful for a pen/stylus pointer type. The range of values is -90 to 90 degrees and a positive value * is a tilt toward the user. For devices that do not support this property, the value is 0. - * - * MDN */ def tiltY: Double = js.native @@ -1369,8 +1065,6 @@ class PointerEvent(typeArg: String, pointerEventInit: js.UndefOr[PointerEventIni * (e.g. pen stylus) around its major axis in degrees, with a value in the range 0 to 359. * * For devices that do not report twist, the value MUST be 0. - * - * MDN */ def twist: Double = js.native @@ -1384,8 +1078,6 @@ class PointerEvent(typeArg: String, pointerEventInit: js.UndefOr[PointerEventIni * touch The event was generated by a touch such as a finger. If the device type cannot be detected by the browser, * the value can be an empty string (""). If the browser supports pointer device types other than those listed above, * the value should be vendor prefixed to avoid conflicting names for different types of devices. - * - * MDN */ def pointerType: String = js.native @@ -1401,8 +1093,6 @@ class PointerEvent(typeArg: String, pointerEventInit: js.UndefOr[PointerEventIni * considered primary if the user touched the screen when there were no other active touches. For pen and stylus * input, a pointer is considered primary if the user's pen initially contacted the screenwhen there were no other * active pens contacting the screen. - * - * MDN */ def isPrimary: Boolean = js.native } @@ -1452,8 +1142,6 @@ trait PointerEventInit extends MouseEventInit { /** The TextMetrics interface represents the dimension of a text in the canvas, as created by the * CanvasRenderingContext2D.measureText() method. - * - * MDN */ @js.native @JSGlobal @@ -1461,8 +1149,6 @@ class TextMetrics extends js.Object { /** Is a double giving the calculated width of a segment of inline text in CSS pixels. It takes into account the * current font of the context. - * - * MDN */ var width: Double = js.native } @@ -1477,8 +1163,6 @@ trait DocumentEvent extends js.Object { * * As a CDATASection has no properties or methods unique to itself and only directly implements the Text interface, one * can refer to Text to find its properties and methods. - * - * MDN */ @js.native @JSGlobal @@ -1495,121 +1179,85 @@ trait StyleMedia extends js.Object { * selection in the greater page, possibly spanning multiple elements, when the user drags over static text and other * parts of the page. For information about text selection in an individual text editing element, see Input, TextArea * and document.activeElement which typically return the parent object returned from window.getSelection(). - * - * MDN */ @js.native @JSGlobal class Selection extends js.Object { /** Returns a boolean indicating whether the selection's start and end points are at the same position. - * - * MDN */ def isCollapsed: Boolean = js.native /** Returns the node in which the selection begins. - * - * MDN */ def anchorNode: Node = js.native /** Returns the node in which the selection ends. - * - * MDN */ def focusNode: Node = js.native /** Returns a number representing the offset of the selection's anchor within the anchorNode. If anchorNode is a text * node, this is the number of characters within anchorNode preceding the anchor. If anchorNode is an element, this * is the number of child nodes of the anchorNode preceding the anchor. - * - * MDN */ def anchorOffset: Int = js.native /** Returns a number representing the offset of the selection's anchor within the focusNode. If focusNode is a text * node, this is the number of characters within focusNode preceding the focus. If focusNode is an element, this is * the number of child nodes of the focusNode preceding the focus. - * - * MDN */ def focusOffset: Int = js.native /** Returns the number of ranges in the selection. - * - * MDN */ def rangeCount: Int = js.native /** A range object that will be added to the selection. - * - * MDN */ def addRange(range: Range): Unit = js.native /** Collapses the selection to the end of the last range in the selection.  If the content the selection is in is * focused and editable, the caret will blink there. - * - * MDN */ def collapseToEnd(): Unit = js.native /** Adds all the children of the specified node to the selection. Previous selection is lost. - * - * MDN */ def selectAllChildren(parentNode: Node): Unit = js.native /** Returns a range object representing one of the ranges currently selected. - * - * MDN */ def getRangeAt(index: Int): Range = js.native /** Collapses the current selection to a single point. The document is not modified. If the content is focused and * editable, the caret will blink there. - * - * MDN */ def collapse(parentNode: Node, offset: Int): Unit = js.native /** Removes all ranges from the selection, leaving the anchorNode and focusNode properties equal to null and leaving * nothing selected. - * - * MDN */ def removeAllRanges(): Unit = js.native /** Collapses the selection to the start of the first range in the selection.  If the content of the selection is * focused and editable, the caret will blink there. - * - * MDN */ def collapseToStart(): Unit = js.native /** Deletes the actual text being represented by a selection object from the document's DOM. - * - * MDN */ def deleteFromDocument(): Unit = js.native /** Removes a range from the selection. - * - * MDN */ def removeRange(range: Range): Unit = js.native /** Indicates if the node is part of the selection - * - * MDN */ def containsNode(node: Node, partialContainment: Boolean = false): Boolean = js.native /** Moves the focus of the selection to a specified point. The anchor of the selection does not move. The selection * will be from the anchor to the new focus regardless of direction. - * - * MDN */ def extend(node: Node, offset: Int = 0): Unit = js.native } @@ -1618,8 +1266,6 @@ class Selection extends js.Object { * The nodes will be returned in document order. * * A NodeIterator can be created using the Document.createNodeIterator() method. - * - * MDN */ @js.native @JSGlobal @@ -1643,42 +1289,30 @@ class NodeIterator extends js.Object { * are not part of the document tree, they do not appear when traversing over the document tree. * NodeFilter.SHOW_PROCESSING_INSTRUCTION 64 Shows ProcessingInstruction nodes. NodeFilter.SHOW_TEXT 4 Shows * Text nodes. - * - * MDN */ var whatToShow: Int = js.native /** The NodeIterator.filter read-only method returns a NodeFilter object, that is an object implement an * acceptNode(node) method, used to screen nodes. - * - * MDN */ def filter: NodeFilter = js.native /** The NodeIterator.root read-only property represents the Node that is the root of what the NodeIterator traverses. - * - * MDN */ def root: Node = js.native /** The NodeIterator.nextNode() method returns the next node in the set represented by the NodeIterator and advances * the position of the iterator within the set.  The first call to nextNode() returns the first node in the set. - * - * MDN */ def nextNode(): Node = js.native /** This operation is a no-op. It doesn't do anything. Previously it was telling the engine that the NodeIterator was * no more used, but this is now useless. - * - * MDN */ def detach(): Unit = js.native /** The NodeIterator.previousNode() method returns the previous node in the set represented by the NodeIterator and * moves the position of the iterator backwards within the set. - * - * MDN */ def previousNode(): Node = js.native } @@ -1689,8 +1323,6 @@ trait WindowSessionStorage extends js.Object { /** This is a global object (sessionStorage) that maintains a storage area that's available for the duration of the * page session. A page session lasts for as long as the browser is open and survives over page reloads and restores. * Opening a page in a new tab or window will cause a new session to be initiated. - * - * MDN */ def sessionStorage: Storage = js.native } @@ -1703,8 +1335,6 @@ trait WindowSessionStorage extends js.Object { * That is, the window object is not shared between tabs in the same window. Some methods, namely window.resizeTo and * window.resizeBy apply to the whole window and not to the specific tab the window object belongs to. Generally, * anything that can't reasonably pertain to a tab pertains to the window instead. - * - * MDN */ @js.native @JSGlobal @@ -1714,113 +1344,79 @@ class Window var ondragend: js.Function1[DragEvent, _] = js.native /** An event handler property for keydown events on the window. - * - * MDN */ var onkeydown: js.Function1[KeyboardEvent, _] = js.native var ondragover: js.Function1[DragEvent, _] = js.native /** An event handler property for keyup events on the window. - * - * MDN */ var onkeyup: js.Function1[KeyboardEvent, _] = js.native /** An event handler property for reset events on the window. - * - * MDN */ var onreset: js.Function1[Event, _] = js.native /** An event handler property for mouseup events on the window. - * - * MDN */ var onmouseup: js.Function1[MouseEvent, _] = js.native var ondragstart: js.Function1[DragEvent, _] = js.native var ondrag: js.Function1[DragEvent, _] = js.native /** Returns the horizontal distance of the left border of the user's browser from the left side of the screen. - * - * MDN */ var screenX: Int = js.native /** An event handler property for mouseover events on the window. - * - * MDN */ var onmouseover: js.Function1[MouseEvent, _] = js.native var ondragleave: js.Function1[DragEvent, _] = js.native /** The Window.history read-only property returns a reference to the History object, which provides an interface for * manipulating the browser session history (pages visited in the tab or frame that the current page is loaded in). - * - * MDN */ def history: History = js.native /** Returns the number of pixels that the document has already been scrolled horizontally. - * - * MDN */ def pageXOffset: Double = js.native /** The name of the window is used primarily for setting targets for hyperlinks and forms. Windows do not need to have * names. - * - * MDN */ var name: String = js.native /** The onafterprint property sets and returns the onafterprint event handler code for the current window. - * - * MDN */ var onafterprint: js.Function1[Event, _] = js.native var onpause: js.Function1[Event, _] = js.native /** The onbeforeprint property sets and returns the onbeforeprint event handler code for the current window. - * - * MDN */ var onbeforeprint: js.Function1[Event, _] = js.native /** Returns a reference to the topmost window in the window hierarchy. This property is read only. - * - * MDN */ def top: Window = js.native /** An event handler property for mousedown events on the window. - * - * MDN */ var onmousedown: js.Function1[MouseEvent, _] = js.native var onseeked: js.Function1[Event, _] = js.native /** Returns a reference to the window that opened this current window. - * - * MDN */ var opener: Window = js.native /** Called when the user clicks the mouse button while the cursor is in the window. This event is fired for any mouse * button pressed; you can look at the event properties to find out which button was pressed and where. - * - * MDN */ var onclick: js.Function1[MouseEvent, _] = js.native /** Gets the width of the content area of the browser window including, if rendered, the vertical scrollbar. - * - * MDN */ def innerWidth: Double = js.native /** Gets the height of the content area of the browser window including, if rendered, the horizontal scrollbar. - * - * MDN */ def innerHeight: Double = js.native @@ -1829,15 +1425,11 @@ class Window var ondurationchange: js.Function1[Event, _] = js.native /** Returns the window itself, which is an array-like object, listing the direct sub-frames of the current window. - * - * MDN */ def frames: Window = js.native /** The onblur property can be used to set the blur handler on the window, which is triggered when the window loses * focus. - * - * MDN */ var onblur: js.Function1[FocusEvent, _] = js.native var onemptied: js.Function1[Event, _] = js.native @@ -1846,38 +1438,28 @@ class Window /** window.outerWidth gets the width of the outside of the browser window. It represents the width of the whole * browser window including sidebar (if expanded), window chrome and window resizing borders/handles. - * - * MDN */ def outerWidth: Int = js.native var onstalled: js.Function1[Event, _] = js.native /** An event handler property for mousemove events on the window. - * - * MDN */ var onmousemove: js.Function1[MouseEvent, _] = js.native var onoffline: js.Function1[Event, _] = js.native /** Returns the number of frames (either frame or iframe elements) in the window. - * - * MDN */ def length: Int = js.native /** Specifies the height of the screen, in pixels, minus permanent or semipermanent user interface features displayed * by the operating system, such as the Taskbar on Windows. - * - * MDN */ def screen: Screen = js.native /** An event that fires when a window is about to unload its resources. The document is still visible and the event is * still cancelable. - * - * MDN */ var onbeforeunload: js.Function1[BeforeUnloadEvent, _] = js.native var onratechange: js.Function1[Event, _] = js.native @@ -1887,26 +1469,18 @@ class Window /** Called for an element when the mouse pointer first moves over the element while something is being dragged. This * might be used to change the appearance of the element to indicate to the user that the object can be dropped on * it. - * - * MDN */ var ondragenter: js.Function1[DragEvent, _] = js.native /** An event handler property for submits on window forms. - * - * MDN */ var onsubmit: js.Function1[Event, _] = js.native /** Returns an object reference to the window object itself. - * - * MDN */ def self: Window = js.native /** Returns a reference to the document that the window contains. - * - * MDN */ def document: HTMLDocument = js.native @@ -1914,70 +1488,50 @@ class Window var ondblclick: js.Function1[MouseEvent, _] = js.native /** Returns the number of pixels that the document has already been scrolled vertically. - * - * MDN */ def pageYOffset: Double = js.native /** An event handler property for right-click events on the window. - * - * MDN */ var oncontextmenu: js.Function1[MouseEvent, _] = js.native /** An event handler property for change events on the window. - * - * MDN */ var onchange: js.Function1[Event, _] = js.native var onloadedmetadata: js.Function1[Event, _] = js.native var onplay: js.Function1[Event, _] = js.native /** An event handler property for errors raised on the window. - * - * MDN */ var onerror: js.Function5[Event, String, Int, Int, Any, _] = js.native var onplaying: js.Function1[Event, _] = js.native /** Returns a reference to the parent of the current window or subframe. - * - * MDN */ def parent: Window = js.native /** The Window.location property returns a Location object with information about the current location of the * document. - * - * MDN */ var location: Location = js.native var oncanplaythrough: js.Function1[Event, _] = js.native /** An event handler property for abort events on the window. - * - * MDN */ var onabort: js.Function1[UIEvent, _] = js.native var onreadystatechange: js.Function1[Event, _] = js.native /** window.outerHeight gets the height in pixels of the whole browser window. It represents the height of the whole * browser window including sidebar (if expanded), window chrome and window resizing borders/handles. - * - * MDN */ def outerHeight: Int = js.native /** An event handler property for keypress events on the window. - * - * MDN */ var onkeypress: js.Function1[KeyboardEvent, _] = js.native /** Returns the element (such as <iframe> or <object>) in which the window is embedded, or null if the * window is top-level. - * - * MDN */ def frameElement: Element = js.native @@ -1985,35 +1539,25 @@ class Window var onsuspend: js.Function1[Event, _] = js.native /** The window property of a window object points to the window object itself. - * - * MDN */ def window: Window = js.native /** An event handler property for focus events on the window. - * - * MDN */ var onfocus: js.Function1[FocusEvent, _] = js.native var onmessage: js.Function1[MessageEvent, _] = js.native var ontimeupdate: js.Function1[Event, _] = js.native /** An event handler for the resize event on the window. - * - * MDN */ var onresize: js.Function1[UIEvent, _] = js.native /** An event handler property for window selection. - * - * MDN */ var onselect: js.Function1[UIEvent, _] = js.native /** The Window.navigator read-only property returns a reference to the Navigator object, which can be queried for * information about the application running the script. - * - * MDN */ def navigator: Navigator = js.native @@ -2022,35 +1566,25 @@ class Window var ondrop: js.Function1[DragEvent, _] = js.native /** An event handler property for mouseout events on the window. - * - * MDN */ var onmouseout: js.Function1[MouseEvent, _] = js.native var onended: js.Function1[Event, _] = js.native /** An event handler property for hash change events on the window; called when the part of the URL after the hash * mark ("#") changes. - * - * MDN */ var onhashchange: js.Function1[HashChangeEvent, _] = js.native /** The unload event is raised when the window is unloading its content and resources. The resources removal is * processed  after the unload event occurs. - * - * MDN */ var onunload: js.Function1[Event, _] = js.native /** Specifies the function to be called when the window is scrolled. - * - * MDN */ var onscroll: js.Function1[UIEvent, _] = js.native /** Returns the vertical distance of the top border of the user's browser from the top edge of the screen. - * - * MDN */ def screenY: Int = js.native @@ -2059,8 +1593,6 @@ class Window var onwheel: js.Function1[WheelEvent, _] = js.native /** An event handler property for window loading. - * - * MDN */ var onload: js.Function1[Event, _] = js.native var onvolumechange: js.Function1[Event, _] = js.native @@ -2068,74 +1600,52 @@ class Window /** The Web Performance API allows web pages access to certain functions for measuring the performance of web pages * and web applications, including the Navigation Timing API and high-resolution time data. - * - * MDN */ def performance: Performance = js.native def alert(message: String): Unit = js.native /** The Window.alert() method displays an alert dialog with the optional specified content and an OK button. - * - * MDN */ def alert(): Unit = js.native /** Scrolls the window to a particular place in the document. - * - * MDN */ def scroll(x: Int, y: Int): Unit = js.native /** Makes a request to bring the window to the front. It may fail due to user settings and the window isn't guaranteed * to be frontmost before this method returns. - * - * MDN */ def focus(): Unit = js.native /** Scrolls to a particular set of coordinates in the document. - * - * MDN */ def scrollTo(x: Int, y: Int): Unit = js.native /** Opens the Print Dialog to print the current document. - * - * MDN */ def print(): Unit = js.native def prompt(message: String, default: String = js.native): String = js.native /** The Window.prompt() displays a dialog with an optional message prompting the user to input some text. - * - * MDN */ def prompt(): String = js.native /** Loads a resource in a new browsing context or an existing one. - * - * MDN */ def open(url: String = js.native, target: String = js.native, features: String = js.native, replace: Boolean = js.native): Window = js.native /** Scrolls the document in the window by the given amount. - * - * MDN */ def scrollBy(x: Int, y: Int): Unit = js.native /** The Window.confirm() method displays a modal dialog with an optional message and two buttons, OK and Cancel. - * - * MDN */ def confirm(message: String = js.native): Boolean = js.native /** Closes the current window, or a referenced window. - * - * MDN */ def close(): Unit = js.native @@ -2146,8 +1656,6 @@ class Window * (usually both http), port number (80 being the default for http), and host (modulo document.domain being set by * both pages to the same value). window.postMessage provides a controlled mechanism to circumvent this restriction * in a way which is secure when properly used. - * - * MDN */ def postMessage(message: js.Any, targetOrigin: String, transfer: js.Any = js.native): Unit = js.native @@ -2165,29 +1673,21 @@ class Window options: js.Any = js.native): js.Dynamic = js.native /** The window.blur() method is the programmatic equivalent of the user shifting focus away from the current window. - * - * MDN */ def blur(): Unit = js.native /** Returns a selection object representing the range of text selected by the user. - * - * MDN */ def getSelection(): Selection = js.native def getComputedStyle(elt: Element, pseudoElt: String = js.native): CSSStyleDeclaration = js.native /** An OfflineResourceList object providing access to the offline resources for the window. - * - * MDN */ def applicationCache: ApplicationCache = js.native /** An event handler property for popstate events, which are fired when navigating to a session history entry * representing a state object. - * - * MDN */ var onpopstate: js.Function1[PopStateEvent, _] = js.native @@ -2196,8 +1696,6 @@ class Window * * For example, when the user clicks the browser's Back button, the current page receives a pagehide event before the * previous page is shown. - * - * MDN */ var onpagehide: js.Function1[PageTransitionEvent, _] = js.native @@ -2207,132 +1705,92 @@ class Window * buttons. * * When this event is sent during the page load process, it's sent after the load event. - * - * MDN */ var onpageshow: js.Function1[PageTransitionEvent, _] = js.native /** Returns a new MediaQueryList object representing the parsed results of the specified media query string. - * - * MDN */ def matchMedia(mediaQuery: String): MediaQueryList = js.native /** Cancels an animation frame request previously scheduled through a call to window.requestAnimationFrame(). - * - * MDN */ def cancelAnimationFrame(handle: Int): Unit = js.native /** The window.requestAnimationFrame() method tells the browser that you wish to perform an animation and requests * that the browser call a specified function to update an animation before the next repaint. The method takes as an * argument a callback to be invoked before the repaint. - * - * MDN */ def requestAnimationFrame(callback: js.Function1[Double, _]): Int = js.native /** The Window.devicePixelRatio read-only property returns the ratio of the (vertical) size of one physical pixel on * the current display device to the size of one device independent pixel (dips). - * - * MDN */ def devicePixelRatio: Double = js.native /** fired when a pointing device is moved into an element's hit test boundaries. - * - * MDN */ var onpointerover: js.Function1[PointerEvent, _] = js.native /** fired when a pointing device is moved into the hit test boundaries of an element or one of its descendants, * including as a result of a pointerdown event from a device that does not support hover (see pointerdown). - * - * MDN */ var onpointerenter: js.Function1[PointerEvent, _] = js.native /** fired when a pointer becomes active. - * - * MDN */ var onpointerdown: js.Function1[PointerEvent, _] = js.native /** fired when a pointer changes coordinates. - * - * MDN */ var onpointermove: js.Function1[PointerEvent, _] = js.native /** fired when a pointer is no longer active. - * - * MDN */ var onpointerup: js.Function1[PointerEvent, _] = js.native /** a browser fires this event if it concludes the pointer will no longer be able to generate events (for example the * related device is deactived). - * - * MDN */ var onpointercancel: js.Function1[PointerEvent, _] = js.native /** fired for several reasons including: pointing device is moved out of the hit test boundaries of an element; firing * the pointerup event for a device that does not support hover (see pointerup); after firing the pointercancel event * (see pointercancel); when a pen stylus leaves the hover range detectable by the digitizer. - * - * MDN */ var onpointerout: js.Function1[PointerEvent, _] = js.native /** fired when a pointing device is moved out of the hit test boundaries of an element. For pen devices, this event is * fired when the stylus leaves the hover range detectable by the digitizer. - * - * MDN */ var onpointerleave: js.Function1[PointerEvent, _] = js.native /** fired when an element receives pointer capture. - * - * MDN */ var gotpointercapture: js.Function1[PointerEvent, _] = js.native /** Fired after pointer capture is released for a pointer. - * - * MDN */ var lostpointercapture: js.Function1[PointerEvent, _] = js.native /** Moves the window to the specified coordinates. - * - * MDN */ def moveTo(x: Int, y: Int): Unit = js.native /** Moves the current window by a specified amount. - * - * MDN */ def moveBy(deltaX: Int, deltaY: Int): Unit = js.native /** Dynamically resizes window. - * - * MDN */ def resizeTo(width: Int, height: Int): Unit = js.native /** Resizes the current window by a certain amount. - * - * MDN */ def resizeBy(deltaX: Int, deltaY: Int): Unit = js.native /** The read-only scrollX property of the Window interface returns the number of pixels that the document is currently * scrolled horizontally. This value is subpixel precise in modern browsers, meaning that it isn't necessarily a * whole number. You can get the number of pixels the document is scrolled vertically from the scrollY property. - * - * MDN */ def scrollX: Double = js.native @@ -2344,15 +1802,11 @@ class Window } /** An options object that specifies characteristics about the event listener. - * - * MDN */ trait EventListenerOptions extends js.Object { /** A Boolean indicating that events of this type will be dispatched to the registered listener before being * dispatched to any EventTarget beneath it in the DOM tree. - * - * MDN */ var capture: js.UndefOr[Boolean] = js.undefined @@ -2364,8 +1818,6 @@ trait EventListenerOptions extends js.Object { /** A Boolean which, if true, indicates that the function specified by listener will never call preventDefault(). If a * passive listener does call preventDefault(), the user agent will do nothing other than generate a console warning. * See Improving scrolling performance with passive listeners to learn more. - * - * MDN */ var passive: js.UndefOr[Boolean] = js.undefined } @@ -2377,16 +1829,12 @@ trait EventListenerOptions extends js.Object { * * Many event targets (including elements, documents, and windows) also support setting event handlers via on... * properties and attributes. - * - * MDN */ @js.native @JSGlobal class EventTarget extends js.Object { /** Removes the event listener previously registered with EventTarget.addEventListener. - * - * MDN */ def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean = js.native): Unit = js.native @@ -2394,8 +1842,6 @@ class EventTarget extends js.Object { /** The EventTarget.addEventListener() method registers the specified listener on the EventTarget it's called on. The * event target may be an Element in a document, the Document itself, a Window, or any other object that supports * events (such as XMLHttpRequest). - * - * MDN */ def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean = js.native): Unit = js.native @@ -2403,8 +1849,6 @@ class EventTarget extends js.Object { /** Removes the event listener previously registered with EventTarget.addEventListener. * * This implementation accepts a settings object of type EventListenerOptions. - * - * MDN */ def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit = js.native @@ -2414,8 +1858,6 @@ class EventTarget extends js.Object { * events (such as XMLHttpRequest). * * This implementation accepts a settings object of type EventListenerOptions. - * - * MDN */ def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit = js.native @@ -2423,16 +1865,12 @@ class EventTarget extends js.Object { /** Dispatches an Event at the specified EventTarget, invoking the affected EventListeners in the appropriate order. * The normal event processing rules (including the capturing and optional bubbling phase) apply to events dispatched * manually with dispatchEvent(). - * - * MDN */ def dispatchEvent(evt: Event): Boolean = js.native } /** The CanvasGradient interface represents an opaque object describing a gradient and returned by * CanvasRenderingContext2D.createLinearGradient or CanvasRenderingContext2D.createRadialGradient methods. - * - * MDN */ @js.native @JSGlobal @@ -2440,8 +1878,6 @@ class CanvasGradient extends js.Object { /** Add a new stop, defined by an offset and a color, to the gradient. If the offset is not between 0 and 1 an * INDEX_SIZE_ERR is raised, if the color can't be parsed as a CSS <color>, a SYNTAX_ERR is raised. - * - * MDN */ def addColorStop(offset: Double, color: String): Unit = js.native } @@ -2458,8 +1894,6 @@ trait TouchEventInit extends UIEventInit with ModifierKeyEventInit { * * Touches are represented by the Touch object; each touch is described by a position, size and shape, amount of * pressure, and target element. Lists of touches are represented by TouchList objects. - * - * MDN */ @js.native @JSGlobal @@ -2468,30 +1902,22 @@ class TouchEvent(typeArg: String, init: js.UndefOr[TouchEventInit]) /** A TouchList of all the Touch objects representing individual points of contact whose states changed between the * previous touch event and this one. Read only. - * - * MDN */ def changedTouches: TouchList = js.native /** A TouchList listing all the Touch objects for touch points that are still in contact with the touch surface and * whose touchstart event occurred inside the same target element as the current target element. - * - * MDN */ def targetTouches: TouchList = js.native /** A TouchList listing all the Touch objects for touch points that are still in contact with the touch surface, * regardless of whether or not they've changed or what their target was at touchstart time. - * - * MDN */ def touches: TouchList = js.native /** The target of the touches associated with this event. This target corresponds to the target of all the touches in * the targetTouches attribute, but note that other touches in this event may have a different target. To be careful, * you should use the target associated with individual touches. - * - * MDN */ override def target: EventTarget = js.native } @@ -2499,8 +1925,6 @@ class TouchEvent(typeArg: String, init: js.UndefOr[TouchEventInit]) /** A TouchList represents a list of all of the points of contact with a touch surface; for example, if the user has * three fingers on the screen (or trackpad), the corresponding TouchList would have one Touch object for each finger, * for a total of three entries. - * - * MDN */ @js.native trait TouchList extends DOMList[Touch] { @@ -2513,8 +1937,6 @@ trait TouchList extends DOMList[Touch] { * Note: Many of these values are hardware-dependent; for example, if the device doesn't have a way to detect the * amount of pressure placed on the surface, the force value will always be 1.0. This may also be the case for radiusX * and radiusY; if the hardware reports only a single point, these values will be 1. - * - * MDN */ @js.native @JSGlobal @@ -2523,76 +1945,56 @@ class Touch extends js.Object { /** A unique identifier for this Touch object. A given touch (say, by a finger) will have the same identifier for the * duration of its movement around the surface. This lets you ensure that you're tracking the same touch all the * time. Read only. - * - * MDN */ def identifier: Double = js.native /** The X coordinate of the touch point relative to the left edge of the screen. Read only. - * - * MDN */ def screenX: Double = js.native /** The Y coordinate of the touch point relative to the top edge of the screen. Read only. - * - * MDN */ def screenY: Double = js.native /** The X coordinate of the touch point relative to the left edge of the browser viewport, not including any scroll * offset. Read only. - * - * MDN */ def clientX: Double = js.native /** The Y coordinate of the touch point relative to the top edge of the browser viewport, not including any scroll * offset. Read only. - * - * MDN */ def clientY: Double = js.native /** The X coordinate of the touch point relative to the left edge of the document. Unlike clientX, this value includes * the horizontal scroll offset, if any. * - * MDN Read only. + * Read only. */ def pageX: Double = js.native /** The Y coordinate of the touch point relative to the top of the document. Unlike clientY, this value includes the * vertical scroll offset, if any. Read only. - * - * MDN */ def pageY: Double = js.native /** The X radius of the ellipse that most closely circumscribes the area of contact with the screen. The value is in * pixels of the same scale as screenX. Read only. - * - * MDN */ def radiusX: Double = js.native /** The Y radius of the ellipse that most closely circumscribes the area of contact with the screen. The value is in * pixels of the same scale as screenY. Read only. - * - * MDN */ def radiusY: Double = js.native /** The angle (in degrees) that the ellipse described by radiusX and radiusY must be rotated, clockwise, to most * accurately cover the area of contact between the user and the surface. Read only. - * - * MDN */ def rotationAngle: Double = js.native /** The amount of pressure being applied to the surface by the user, as a float between 0.0 (no pressure) and 1.0 * (maximum pressure). Read only. - * - * MDN */ def force: Double = js.native @@ -2601,8 +2003,6 @@ class Touch extends js.Object { * target is removed from the document, events will still be targeted at it, and hence won't necessarily bubble up to * the window or document anymore. If there's any risk of an element being removed while it is being touched, best * practice is to attach the touch listeners directly to the target. Read only. - * - * MDN */ def target: EventTarget = js.native } @@ -2614,8 +2014,6 @@ class Touch extends js.Object { * input event instead. For example, if user inputs text from hand-writing system like tablet PC, key events may not be * fired. * - * MDN - * * Warning: keypress event is to be deprecated in favor of beforeinput event eventually * * W3C @@ -2640,22 +2038,16 @@ class KeyboardEvent(typeArg: String, init: js.UndefOr[KeyboardEventInit]) def keyCode: Int = js.native /** The location of the key on the keyboard or other input device. See the constants in the [[KeyboardEvent]] object. - * - * MDN */ def location: Int = js.native /** The key value of the key represented by the event. If the value has a printed representation, this attribute's * value is the same as the char attribute. Otherwise, it's one of the key value strings specified in Key values. If * the key can't be identified, this is the string "Unidentified". See key names for the detail. - * - * MDN */ def key: String = js.native /** true if the key is being held down such that it is automatically repeating - * - * MDN */ def repeat: Boolean = js.native @@ -2697,22 +2089,16 @@ object KeyboardEvent extends js.Object { /** The key has only one version, or can't be distinguished between the left and right versions of the key, and was * not pressed on the numeric keypad or a key that is considered to be part of the keypad. - * - * MDN */ def DOM_KEY_LOCATION_STANDARD: Int = js.native /** The key was the left-hand version of the key; for example, the left-hand Control key was pressed on a standard 101 * key US keyboard. This value is only used for keys that have more that one possible location on the keyboard. - * - * MDN */ def DOM_KEY_LOCATION_LEFT: Int = js.native /** The key was the right-hand version of the key; for example, the right-hand Control key is pressed on a standard * 101 key US keyboard. This value is only used for keys that have more that one possible location on the keyboard. - * - * MDN */ def DOM_KEY_LOCATION_RIGHT: Int = js.native @@ -2726,8 +2112,6 @@ object KeyboardEvent extends js.Object { * attribute value depends on the key. That is, it must not be [[DOM_KEY_LOCATION_NUMPAD]]. * @note * NumLock key's key events indicate [[DOM_KEY_LOCATION_STANDARD]] both on Gecko and Internet Explorer. - * - * MDN */ def DOM_KEY_LOCATION_NUMPAD: Int = js.native } @@ -2735,106 +2119,76 @@ object KeyboardEvent extends js.Object { /** Each web page loaded in the browser has its own document object. The Document interface serves as an entry point to * the web page's content (the DOM tree, including elements such as <body> and <table>) and provides * functionality global to the document (such as obtaining the page's URL and creating new elements in the document). - * - * MDN */ @js.native @JSGlobal abstract class Document extends Node with NodeSelector with DocumentEvent with ParentNode with PageVisibility { /** Returns a DOMImplementation object associated with the current document. - * - * MDN */ def implementation: DOMImplementation = js.native /** Returns the character encoding of the current document. - * - * MDN */ def characterSet: String = js.native /** Returns the Document Type Declaration (DTD) associated with current document. The returned object implements the * DocumentType interface. Use DOMImplementation.createDocumentType() to create a DocumentType. - * - * MDN */ def doctype: DocumentType = js.native /** Returns the Element that is the root element of the document (for example, the <html> element for HTML * documents). - * - * MDN */ def documentElement: Element = js.native def documentURI: String = js.native /** Returns a list of StyleSheet objects for stylesheets explicitly linked into or embedded in a document. - * - * MDN */ def styleSheets: StyleSheetList = js.native /** Returns a string containing the date and time on which the current document was last modified. - * - * MDN */ def lastModified: String = js.native /** Returns an object reference to the identified element. - * - * MDN */ def getElementById(elementId: String): Element = js.native /** Returns a list of elements with a given name in the (X)HTML document. - * - * MDN */ def getElementsByName(elementName: String): NodeList[Node] = js.native /** Returns a HTMLCollection of elements with the given tag name. The complete document is searched, including the * root node. The returned HTMLCollection is live, meaning that it updates itself automatically to stay in sync with * the DOM tree without having to call document.getElementsByTagName again. - * - * MDN */ def getElementsByTagName(name: String): HTMLCollection = js.native /** Returns a list of elements with the given tag name belonging to the given namespace. The complete document is * searched, including the root node. - * - * MDN */ def getElementsByTagNameNS(namespaceURI: String, localName: String): HTMLCollection = js.native /** Returns a set of elements which have all the given class names. When called on the document object, the complete * document is searched, including the root node. You may also call getElementsByClassName on any element; it will * return only elements which are descendants of the specified root element with the given class names. - * - * MDN */ def getElementsByClassName(classNames: String): HTMLCollection = js.native /** Returns the element from the document whose elementFromPoint method is being called which is the topmost element * which lies under the given point.  To get an element, specify the point via coordinates, in CSS pixels, relative * to the upper-left-most point in the window or frame containing the document. - * - * MDN */ def elementFromPoint(x: Double, y: Double): Element = js.native /** Adopts a node from an external document. The node and its subtree is removed from the document it's in (if any), * and its ownerDocument is changed to the current document. The node can then be inserted into the current document. - * - * MDN */ def adoptNode(source: Node): Node = js.native /** Returns an XPathResult based on an XPath expression and other given parameters. - * - * MDN * * @param xpathExpression * is a string representing the XPath to be evaluated. @@ -2853,8 +2207,6 @@ abstract class Document extends Node with NodeSelector with DocumentEvent with P result: XPathResult): XPathResult = js.native /** Returns an XPathResult based on an XPath expression and other given parameters. - * - * MDN * * @param xpathExpression * is a string representing the XPath to be evaluated. @@ -2876,69 +2228,47 @@ abstract class Document extends Node with NodeSelector with DocumentEvent with P /** Creates an XPathNSResolver which resolves namespaces with respect to the definitions in scope for a specified * node. - * - * MDN. */ def createNSResolver(node: Node): XPathNSResolver = js.native /** Creates a copy of a node from an external document that can be inserted into the current document. - * - * MDN */ def importNode(importedNode: Node, deep: Boolean): Node = js.native /** In an HTML document creates the specified HTML element or HTMLUnknownElement if the element is not known. In a XUL * document creates the specified XUL element. In other documents creates an element with a null namespaceURI. - * - * MDN */ def createElement(tagName: String): Element = js.native /** Creates an element with the specified namespace URI and qualified name. - * - * MDN */ def createElementNS(namespaceURI: String, qualifiedName: String): Element = js.native /** createAttribute creates a new attribute node, and returns it. - * - * MDN */ def createAttribute(name: String): Attr = js.native /** Creates a new attribute node in a given namespace and returns it. - * - * MDN */ def createAttributeNS(namespaceURI: String, qualifiedName: String): Attr = js.native /** createProcessingInstruction() creates a new processing instruction node, and returns it. - * - * MDN */ def createProcessingInstruction(target: String, data: String): ProcessingInstruction = js.native /** createCDATASection() creates a new CDATA section node, and returns it. - * - * MDN */ def createCDATASection(data: String): CDATASection = js.native /** Once a Range is created, you need to set its boundary points before you can make use of most of its methods. - * - * MDN */ def createRange(): Range = js.native /** createComment() creates a new comment node, and returns it. - * - * MDN */ def createComment(data: String): Comment = js.native /** Creates a new empty DocumentFragment. - * - * MDN */ def createDocumentFragment(): DocumentFragment = js.native @@ -2947,15 +2277,11 @@ abstract class Document extends Node with NodeSelector with DocumentEvent with P def createTextNode(data: String): Text = js.native /** Supported in FF 3.5+, Chrome 1+, Opera 9+, Safari 3+, IE9+ - * - * MDN */ def createNodeIterator(root: Node, whatToShow: Int, filter: NodeFilter, entityReferenceExpansion: Boolean): NodeIterator = js.native /** The Document.createTreeWalker() creator method returns a newly created TreeWalker object. - * - * MDN */ def createTreeWalker(root: Node, whatToShow: Int, filter: NodeFilter, entityReferenceExpansion: Boolean): TreeWalker = js.native @@ -2967,8 +2293,6 @@ abstract class Document extends Node with NodeSelector with DocumentEvent with P * The exception is if another element was already in full-screen mode when the current element was placed into * full-screen mode using requestFullscreen(). In that case, the previous full-screen element is restored to * full-screen status instead. In essence, a stack of full-screen elements is maintained. - * - * MDN */ def exitFullscreen(): js.Promise[Unit] = js.native @@ -2977,30 +2301,22 @@ abstract class Document extends Node with NodeSelector with DocumentEvent with P * * Although this property is read-only, it will not throw if it is modified (even in strict mode); the setter is a * no-operation and it will be ignored. - * - * MDN */ def fullscreenElement: Element = js.native /** The read-only fullscreenEnabled property on the Document interface indicates whether or not full-screen mode is * available. Full-screen mode is available only for a page that has no windowed plug-ins in any of its documents, * and if all