Skip to content

Commit 210f412

Browse files
committed
add global attributes
1 parent 256f5d1 commit 210f412

File tree

3 files changed

+46
-0
lines changed

3 files changed

+46
-0
lines changed

api-reports/2_12.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16501,13 +16501,16 @@ MathMLElement[JC] def addEventListener[T <: Event](`type`: String, listener: js.
1650116501
MathMLElement[JC] def after(nodes: Node | String*): Unit
1650216502
MathMLElement[JC] def append(nodes: Node | String*): Unit
1650316503
MathMLElement[JC] def appendChild(newChild: Node): Node
16504+
MathMLElement[JC] var arg: String
1650416505
MathMLElement[JC] def attachShadow(init: ShadowRootInit): ShadowRoot
1650516506
MathMLElement[JC] def attributes: NamedNodeMap
16507+
MathMLElement[JC] var autofocus: Boolean
1650616508
MathMLElement[JC] def baseURI: String
1650716509
MathMLElement[JC] def before(nodes: Node | String*): Unit
1650816510
MathMLElement[JC] def childElementCount: Int
1650916511
MathMLElement[JC] def childNodes: NodeList[Node]
1651016512
MathMLElement[JC] def children: HTMLCollection[Element]
16513+
MathMLElement[JC] var `class`: String
1651116514
MathMLElement[JC] var classList: DOMTokenList
1651216515
MathMLElement[JC] def clientHeight: Int
1651316516
MathMLElement[JC] def clientLeft: Int
@@ -16517,7 +16520,9 @@ MathMLElement[JC] def cloneNode(deep: Boolean?): Node
1651716520
MathMLElement[JC] def closest(selector: String): Element
1651816521
MathMLElement[JC] def compareDocumentPosition(other: Node): Int
1651916522
MathMLElement[JC] def contains(otherNode: Node): Boolean
16523+
MathMLElement[JC] var dir: String
1652016524
MathMLElement[JC] def dispatchEvent(evt: Event): Boolean
16525+
MathMLElement[JC] var displaystyle: Boolean
1652116526
MathMLElement[JC] def firstChild: Node
1652216527
MathMLElement[JC] def firstElementChild: Element
1652316528
MathMLElement[JC] def getAttribute(name: String): String
@@ -16540,6 +16545,7 @@ MathMLElement[JC] var innerText: String
1654016545
MathMLElement[JC] def insertAdjacentElement(position: String, element: Element): Element
1654116546
MathMLElement[JC] def insertAdjacentHTML(where: String, html: String): Unit
1654216547
MathMLElement[JC] def insertBefore(newChild: Node, refChild: Node): Node
16548+
MathMLElement[JC] var intent: String
1654316549
MathMLElement[JC] def isConnected: Boolean
1654416550
MathMLElement[JC] def isDefaultNamespace(namespaceURI: String): Boolean
1654516551
MathMLElement[JC] def isEqualNode(arg: Node): Boolean
@@ -16551,12 +16557,16 @@ MathMLElement[JC] def localName: String
1655116557
MathMLElement[JC] def lookupNamespaceURI(prefix: String): String
1655216558
MathMLElement[JC] def lookupPrefix(namespaceURI: String): String
1655316559
MathMLElement[JC] def matches(selector: String): Boolean
16560+
MathMLElement[JC] var mathbackground: String
16561+
MathMLElement[JC] var mathcolor: String
16562+
MathMLElement[JC] var mathsize: String
1655416563
MathMLElement[JC] def namespaceURI: String
1655516564
MathMLElement[JC] def nextElementSibling: Element
1655616565
MathMLElement[JC] def nextSibling: Node
1655716566
MathMLElement[JC] def nodeName: String
1655816567
MathMLElement[JC] def nodeType: Int
1655916568
MathMLElement[JC] var nodeValue: String
16569+
MathMLElement[JC] var nonce: String
1656016570
MathMLElement[JC] def normalize(): Unit
1656116571
MathMLElement[JC] var onclick: js.Function1[MouseEvent, _]
1656216572
MathMLElement[JC] var oncompositionend: js.Function1[CompositionEvent, _]
@@ -16597,6 +16607,7 @@ MathMLElement[JC] def replaceChildren(nodes: Node | String*): Unit
1659716607
MathMLElement[JC] def replaceWith(nodes: Node | String*): Unit
1659816608
MathMLElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit]
1659916609
MathMLElement[JC] def requestPointerLock(): Unit
16610+
MathMLElement[JC] var scriptlevel: Int
1660016611
MathMLElement[JC] def scrollHeight: Int
1660116612
MathMLElement[JC] def scrollIntoView(top: Boolean?): Unit
1660216613
MathMLElement[JC] var scrollLeft: Double
@@ -16608,6 +16619,8 @@ MathMLElement[JC] def setAttributeNode(newAttr: Attr): Attr
1660816619
MathMLElement[JC] def setAttributeNodeNS(newAttr: Attr): Attr
1660916620
MathMLElement[JC] def setPointerCapture(pointerId: Double): Unit
1661016621
MathMLElement[JC] def shadowRoot: ShadowRoot
16622+
MathMLElement[JC] var style: String
16623+
MathMLElement[JC] var tabindex: Int
1661116624
MathMLElement[JC] def tagName: String
1661216625
MathMLElement[JC] var textContent: String
1661316626
MathMLElement[JC] var xmlbase: String

api-reports/2_13.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16501,13 +16501,16 @@ MathMLElement[JC] def addEventListener[T <: Event](`type`: String, listener: js.
1650116501
MathMLElement[JC] def after(nodes: Node | String*): Unit
1650216502
MathMLElement[JC] def append(nodes: Node | String*): Unit
1650316503
MathMLElement[JC] def appendChild(newChild: Node): Node
16504+
MathMLElement[JC] var arg: String
1650416505
MathMLElement[JC] def attachShadow(init: ShadowRootInit): ShadowRoot
1650516506
MathMLElement[JC] def attributes: NamedNodeMap
16507+
MathMLElement[JC] var autofocus: Boolean
1650616508
MathMLElement[JC] def baseURI: String
1650716509
MathMLElement[JC] def before(nodes: Node | String*): Unit
1650816510
MathMLElement[JC] def childElementCount: Int
1650916511
MathMLElement[JC] def childNodes: NodeList[Node]
1651016512
MathMLElement[JC] def children: HTMLCollection[Element]
16513+
MathMLElement[JC] var `class`: String
1651116514
MathMLElement[JC] var classList: DOMTokenList
1651216515
MathMLElement[JC] def clientHeight: Int
1651316516
MathMLElement[JC] def clientLeft: Int
@@ -16517,7 +16520,9 @@ MathMLElement[JC] def cloneNode(deep: Boolean?): Node
1651716520
MathMLElement[JC] def closest(selector: String): Element
1651816521
MathMLElement[JC] def compareDocumentPosition(other: Node): Int
1651916522
MathMLElement[JC] def contains(otherNode: Node): Boolean
16523+
MathMLElement[JC] var dir: String
1652016524
MathMLElement[JC] def dispatchEvent(evt: Event): Boolean
16525+
MathMLElement[JC] var displaystyle: Boolean
1652116526
MathMLElement[JC] def firstChild: Node
1652216527
MathMLElement[JC] def firstElementChild: Element
1652316528
MathMLElement[JC] def getAttribute(name: String): String
@@ -16540,6 +16545,7 @@ MathMLElement[JC] var innerText: String
1654016545
MathMLElement[JC] def insertAdjacentElement(position: String, element: Element): Element
1654116546
MathMLElement[JC] def insertAdjacentHTML(where: String, html: String): Unit
1654216547
MathMLElement[JC] def insertBefore(newChild: Node, refChild: Node): Node
16548+
MathMLElement[JC] var intent: String
1654316549
MathMLElement[JC] def isConnected: Boolean
1654416550
MathMLElement[JC] def isDefaultNamespace(namespaceURI: String): Boolean
1654516551
MathMLElement[JC] def isEqualNode(arg: Node): Boolean
@@ -16551,12 +16557,16 @@ MathMLElement[JC] def localName: String
1655116557
MathMLElement[JC] def lookupNamespaceURI(prefix: String): String
1655216558
MathMLElement[JC] def lookupPrefix(namespaceURI: String): String
1655316559
MathMLElement[JC] def matches(selector: String): Boolean
16560+
MathMLElement[JC] var mathbackground: String
16561+
MathMLElement[JC] var mathcolor: String
16562+
MathMLElement[JC] var mathsize: String
1655416563
MathMLElement[JC] def namespaceURI: String
1655516564
MathMLElement[JC] def nextElementSibling: Element
1655616565
MathMLElement[JC] def nextSibling: Node
1655716566
MathMLElement[JC] def nodeName: String
1655816567
MathMLElement[JC] def nodeType: Int
1655916568
MathMLElement[JC] var nodeValue: String
16569+
MathMLElement[JC] var nonce: String
1656016570
MathMLElement[JC] def normalize(): Unit
1656116571
MathMLElement[JC] var onclick: js.Function1[MouseEvent, _]
1656216572
MathMLElement[JC] var oncompositionend: js.Function1[CompositionEvent, _]
@@ -16597,6 +16607,7 @@ MathMLElement[JC] def replaceChildren(nodes: Node | String*): Unit
1659716607
MathMLElement[JC] def replaceWith(nodes: Node | String*): Unit
1659816608
MathMLElement[JC] def requestFullscreen(options: FullscreenOptions?): js.Promise[Unit]
1659916609
MathMLElement[JC] def requestPointerLock(): Unit
16610+
MathMLElement[JC] var scriptlevel: Int
1660016611
MathMLElement[JC] def scrollHeight: Int
1660116612
MathMLElement[JC] def scrollIntoView(top: Boolean?): Unit
1660216613
MathMLElement[JC] var scrollLeft: Double
@@ -16608,6 +16619,8 @@ MathMLElement[JC] def setAttributeNode(newAttr: Attr): Attr
1660816619
MathMLElement[JC] def setAttributeNodeNS(newAttr: Attr): Attr
1660916620
MathMLElement[JC] def setPointerCapture(pointerId: Double): Unit
1661016621
MathMLElement[JC] def shadowRoot: ShadowRoot
16622+
MathMLElement[JC] var style: String
16623+
MathMLElement[JC] var tabindex: Int
1661116624
MathMLElement[JC] def tagName: String
1661216625
MathMLElement[JC] var textContent: String
1661316626
MathMLElement[JC] var xmlbase: String

dom/src/main/scala/org/scalajs/dom/MathMLElement.scala

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,24 @@ abstract class MathMLElement extends Element {
2323

2424
/** Corresponds to attribute xml:base on the given element. */
2525
var xmlbase: String = js.native
26+
27+
/** https://w3c.github.io/mathml-core/#global-attributes */
28+
29+
var autofocus: Boolean = js.native
30+
var `class`: String = js.native
31+
var dir: String = js.native
32+
var displaystyle: Boolean = js.native
33+
var mathbackground: String = js.native
34+
var mathcolor: String = js.native
35+
var mathsize: String = js.native
36+
var nonce: String = js.native
37+
var scriptlevel: Int = js.native
38+
var style: String = js.native
39+
var tabindex: Int = js.native
40+
41+
/** https://w3c.github.io/mathml-core/#other-valid-attributes */
42+
43+
var intent: String = js.native
44+
var arg: String = js.native
45+
2646
}

0 commit comments

Comments
 (0)