Skip to content

Commit cb35aea

Browse files
committed
mathml base class
1 parent 53f9a1a commit cb35aea

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
package org.scalajs.dom
2+
3+
import scala.scalajs.js
4+
import scala.scalajs.js.annotation._
5+
6+
/** Represents a Scala.js facade for the MathML element. Documentation for MathML elements can be found at:
7+
* https://developer.mozilla.org/en-US/docs/Web/MathML/Element
8+
*
9+
* All MathMl elements implement this interface.
10+
*/
11+
@js.native
12+
@JSGlobal
13+
abstract class MathMLElement extends Element {
14+
var onclick: js.Function1[MouseEvent, _] = js.native
15+
var onmouseover: js.Function1[MouseEvent, _] = js.native
16+
var onmouseout: js.Function1[MouseEvent, _] = js.native
17+
var onmousedown: js.Function1[MouseEvent, _] = js.native
18+
var onmouseup: js.Function1[MouseEvent, _] = js.native
19+
var onmousemove: js.Function1[MouseEvent, _] = js.native
20+
var onload: js.Function1[Event, _] = js.native
21+
var onfocusin: js.Function1[FocusEvent, _] = js.native
22+
var onfocusout: js.Function1[FocusEvent, _] = js.native
23+
24+
/** Corresponds to attribute xml:base on the given element. */
25+
var `xmlbase`: String = js.native
26+
}

0 commit comments

Comments
 (0)