Web API package for use when compling Go to WASM
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

81 lines
2.2 KiB

// Code generated DO NOT EDIT
// documenttype.go
package dom
import "syscall/js"
type DocumentTypeIFace interface {
AddEventListener(args ...interface{})
After(args ...interface{})
AppendChild(args ...interface{}) Node
GetBaseURI() string
Before(args ...interface{})
GetChildNodes() NodeList
CloneNode(args ...interface{}) Node
CompareDocumentPosition(args ...interface{}) int
Contains(args ...interface{}) bool
DispatchEvent(args ...interface{}) bool
GetFirstChild() Node
GetRootNode(args ...interface{}) Node
HasChildNodes(args ...interface{}) bool
InsertBefore(args ...interface{}) Node
GetIsConnected() bool
IsDefaultNamespace(args ...interface{}) bool
IsEqualNode(args ...interface{}) bool
IsSameNode(args ...interface{}) bool
GetLastChild() Node
LookupNamespaceURI(args ...interface{}) string
LookupPrefix(args ...interface{}) string
GetName() string
GetNextSibling() Node
GetNodeName() string
GetNodeType() int
GetNodeValue() string
SetNodeValue(string)
Normalize(args ...interface{})
GetOwnerDocument() Document
GetParentElement() Element
GetParentNode() Node
GetPreviousSibling() Node
GetPublicId() string
Remove(args ...interface{})
RemoveChild(args ...interface{}) Node
RemoveEventListener(args ...interface{})
ReplaceChild(args ...interface{}) Node
ReplaceWith(args ...interface{})
GetSystemId() string
GetTextContent() string
SetTextContent(string)
}
type DocumentType struct {
Value
Node
EventTarget
}
func jsValueToDocumentType(val js.Value) DocumentType { return DocumentType{Value: Value{Value: val}} }
func (v Value) AsDocumentType() DocumentType { return DocumentType{Value: v} }
func (d DocumentType) After(args ...interface{}) {
d.Call("after", args...)
}
func (d DocumentType) Before(args ...interface{}) {
d.Call("before", args...)
}
func (d DocumentType) GetName() string {
val := d.Get("name")
return val.String()
}
func (d DocumentType) GetPublicId() string {
val := d.Get("publicId")
return val.String()
}
func (d DocumentType) Remove(args ...interface{}) {
d.Call("remove", args...)
}
func (d DocumentType) ReplaceWith(args ...interface{}) {
d.Call("replaceWith", args...)
}
func (d DocumentType) GetSystemId() string {
val := d.Get("systemId")
return val.String()
}