added test case trying to get the document property working on JS - not quite there yet :(
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
package org.w3c.dom
|
||||
|
||||
/**
|
||||
* A stub class definition so we can work with the DOM APIs as native objects
|
||||
*/
|
||||
native interface Document : Node {
|
||||
}
|
||||
|
||||
native interface Attr : Node {}
|
||||
native interface CDATASection : Text {}
|
||||
native interface CharacterData : Node {}
|
||||
native interface Comment : CharacterData {}
|
||||
native interface DOMImplementation {}
|
||||
native interface DocumentType : Node {}
|
||||
native interface Element : Node {}
|
||||
native interface Entity : Node {}
|
||||
native interface EntityReference : Node {}
|
||||
native interface NameList {}
|
||||
native interface NamedNodeMap {}
|
||||
native interface Node {}
|
||||
native interface NodeList {}
|
||||
native interface Notation : Node {}
|
||||
native interface ProcessingInstruction : Node {}
|
||||
native interface Text : CharacterData {}
|
||||
native interface TypeInfo {}
|
||||
native interface UserDataHandler {}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
package kotlin.browser
|
||||
|
||||
import org.w3c.dom.Document
|
||||
import js.native
|
||||
import js.library
|
||||
|
||||
/**
|
||||
* Provides access to the current active browsers DOM for the currently visible page.
|
||||
*/
|
||||
native("document") var document: Document
|
||||
|
||||
Reference in New Issue
Block a user