Browse Source

Add DOMParser support and partial members

master
Brett Langdon 7 years ago
parent
commit
85e61e2e52
No known key found for this signature in database GPG Key ID: B664881177781B04
46 changed files with 1502 additions and 1 deletions
  1. +27
    -0
      cssstyledeclaration.go
  2. +272
    -0
      document.go
  3. +160
    -0
      document/document.go
  4. +19
    -0
      domparser.go
  5. +22
    -0
      element.go
  6. +1
    -1
      generate/api.min.json
  7. +2
    -0
      generate/generator.go
  8. +6
    -0
      generate/spec.go
  9. +45
    -0
      htmlanchorelement.go
  10. +9
    -0
      htmlareaelement.go
  11. +54
    -0
      htmlbodyelement.go
  12. +9
    -0
      htmlbrelement.go
  13. +9
    -0
      htmldivelement.go
  14. +9
    -0
      htmldlistelement.go
  15. +18
    -0
      htmlembedelement.go
  16. +9
    -0
      htmlheadingelement.go
  17. +45
    -0
      htmlhrelement.go
  18. +9
    -0
      htmlhtmlelement.go
  19. +54
    -0
      htmliframeelement.go
  20. +63
    -0
      htmlimageelement.go
  21. +18
    -0
      htmlinputelement.go
  22. +9
    -0
      htmllegendelement.go
  23. +9
    -0
      htmllielement.go
  24. +27
    -0
      htmllinkelement.go
  25. +9
    -0
      htmlmenuelement.go
  26. +9
    -0
      htmlmetaelement.go
  27. +90
    -0
      htmlobjectelement.go
  28. +9
    -0
      htmlolistelement.go
  29. +9
    -0
      htmlparagraphelement.go
  30. +18
    -0
      htmlparamelement.go
  31. +9
    -0
      htmlpreelement.go
  32. +27
    -0
      htmlscriptelement.go
  33. +9
    -0
      htmlstyleelement.go
  34. +9
    -0
      htmltablecaptionelement.go
  35. +81
    -0
      htmltablecellelement.go
  36. +45
    -0
      htmltablecolelement.go
  37. +81
    -0
      htmltableelement.go
  38. +45
    -0
      htmltablerowelement.go
  39. +36
    -0
      htmltablesectionelement.go
  40. +18
    -0
      htmlulistelement.go
  41. +5
    -0
      range.go
  42. +19
    -0
      supportedtype.go
  43. +9
    -0
      url.go
  44. +23
    -0
      window.go
  45. +16
    -0
      window/window.go
  46. +21
    -0
      xmlserializer.go

+ 27
- 0
cssstyledeclaration.go View File

@ -5,10 +5,14 @@ package dom
import "syscall/js"
type CSSStyleDeclarationIFace interface {
GetCamel_cased_attribute() string
SetCamel_cased_attribute(string)
GetCssFloat() string
SetCssFloat(string)
GetCssText() string
SetCssText(string)
GetDashed_attribute() string
SetDashed_attribute(string)
GetPropertyPriority(args ...interface{}) string
GetPropertyValue(args ...interface{}) string
Item(args ...interface{}) string
@ -16,6 +20,8 @@ type CSSStyleDeclarationIFace interface {
GetParentRule() CSSRule
RemoveProperty(args ...interface{}) string
SetProperty(args ...interface{})
GetWebkit_cased_attribute() string
SetWebkit_cased_attribute(string)
}
type CSSStyleDeclaration struct {
Value
@ -25,6 +31,13 @@ func JSValueToCSSStyleDeclaration(val js.Value) CSSStyleDeclaration {
return CSSStyleDeclaration{Value: Value{Value: val}}
}
func (v Value) AsCSSStyleDeclaration() CSSStyleDeclaration { return CSSStyleDeclaration{Value: v} }
func (c CSSStyleDeclaration) GetCamel_cased_attribute() string {
val := c.Get("camel_cased_attribute")
return val.String()
}
func (c CSSStyleDeclaration) SetCamel_cased_attribute(val string) {
c.Set("camel_cased_attribute", val)
}
func (c CSSStyleDeclaration) GetCssFloat() string {
val := c.Get("cssFloat")
return val.String()
@ -39,6 +52,13 @@ func (c CSSStyleDeclaration) GetCssText() string {
func (c CSSStyleDeclaration) SetCssText(val string) {
c.Set("cssText", val)
}
func (c CSSStyleDeclaration) GetDashed_attribute() string {
val := c.Get("dashed_attribute")
return val.String()
}
func (c CSSStyleDeclaration) SetDashed_attribute(val string) {
c.Set("dashed_attribute", val)
}
func (c CSSStyleDeclaration) GetPropertyPriority(args ...interface{}) string {
val := c.Call("getPropertyPriority", args...)
return val.String()
@ -66,3 +86,10 @@ func (c CSSStyleDeclaration) RemoveProperty(args ...interface{}) string {
func (c CSSStyleDeclaration) SetProperty(args ...interface{}) {
c.Call("setProperty", args...)
}
func (c CSSStyleDeclaration) GetWebkit_cased_attribute() string {
val := c.Get("webkit_cased_attribute")
return val.String()
}
func (c CSSStyleDeclaration) SetWebkit_cased_attribute(val string) {
c.Set("webkit_cased_attribute", val)
}

+ 272
- 0
document.go View File

@ -5,21 +5,36 @@ package dom
import "syscall/js"
type DocumentIFace interface {
GetActiveElement() Element
AddEventListener(args ...interface{})
AdoptNode(args ...interface{}) Node
GetAlinkColor() string
SetAlinkColor(string)
GetAll() HTMLAllCollection
GetAnchors() HTMLCollection
Append(args ...interface{})
AppendChild(args ...interface{}) Node
GetApplets() HTMLCollection
GetBaseURI() string
GetBgColor() string
SetBgColor(string)
GetBody() HTMLElement
SetBody(HTMLElement)
CaptureEvents(args ...interface{})
GetCharacterSet() string
GetCharset() string
GetChildElementCount() int
GetChildNodes() NodeList
GetChildren() HTMLCollection
Clear(args ...interface{})
CloneNode(args ...interface{}) Node
Close(args ...interface{})
CompareDocumentPosition(args ...interface{}) int
GetCompatMode() string
Contains(args ...interface{}) bool
GetContentType() string
GetCookie() string
SetCookie(string)
CreateAttribute(args ...interface{}) Attr
CreateAttributeNS(args ...interface{}) Attr
CreateCDATASection(args ...interface{}) CDATASection
@ -33,18 +48,35 @@ type DocumentIFace interface {
CreateRange(args ...interface{}) Range
CreateTextNode(args ...interface{}) Text
CreateTreeWalker(args ...interface{}) TreeWalker
GetCurrentScript() HTMLOrSVGScriptElement
GetDefaultView() WindowProxy
GetDesignMode() string
SetDesignMode(string)
GetDir() string
SetDir(string)
DispatchEvent(args ...interface{}) bool
GetDoctype() DocumentType
GetDocumentElement() Element
GetDocumentURI() string
GetDomain() string
SetDomain(string)
GetEmbeds() HTMLCollection
ExecCommand(args ...interface{}) bool
GetFgColor() string
SetFgColor(string)
GetFirstChild() Node
GetFirstElementChild() Element
GetForms() HTMLCollection
GetElementById(args ...interface{}) Element
GetElementsByClassName(args ...interface{}) HTMLCollection
GetElementsByName(args ...interface{}) NodeList
GetElementsByTagName(args ...interface{}) HTMLCollection
GetElementsByTagNameNS(args ...interface{}) HTMLCollection
GetRootNode(args ...interface{}) Node
HasChildNodes(args ...interface{}) bool
HasFocus(args ...interface{}) bool
GetHead() HTMLHeadElement
GetImages() HTMLCollection
GetImplementation() DOMImplementation
ImportNode(args ...interface{}) Node
GetInputEncoding() string
@ -55,6 +87,11 @@ type DocumentIFace interface {
IsSameNode(args ...interface{}) bool
GetLastChild() Node
GetLastElementChild() Element
GetLastModified() string
GetLinkColor() string
SetLinkColor(string)
GetLinks() HTMLCollection
GetLocation() Location
LookupNamespaceURI(args ...interface{}) string
LookupPrefix(args ...interface{}) string
GetNextSibling() Node
@ -163,6 +200,8 @@ type DocumentIFace interface {
SetOnprogress(EventHandler)
GetOnratechange() EventHandler
SetOnratechange(EventHandler)
GetOnreadystatechange() EventHandler
SetOnreadystatechange(EventHandler)
GetOnreset() EventHandler
SetOnreset(EventHandler)
GetOnresize() EventHandler
@ -193,20 +232,39 @@ type DocumentIFace interface {
SetOnwaiting(EventHandler)
GetOnwheel() EventHandler
SetOnwheel(EventHandler)
Open(args ...interface{}) Document
OpenWithArgs(args ...interface{}) WindowProxy
GetOrigin() string
GetOwnerDocument() Document
GetParentElement() Element
GetParentNode() Node
GetPlugins() HTMLCollection
Prepend(args ...interface{})
GetPreviousSibling() Node
QueryCommandEnabled(args ...interface{}) bool
QueryCommandIndeterm(args ...interface{}) bool
QueryCommandState(args ...interface{}) bool
QueryCommandSupported(args ...interface{}) bool
QueryCommandValue(args ...interface{}) string
QuerySelector(args ...interface{}) Element
QuerySelectorAll(args ...interface{}) NodeList
GetReadyState() DocumentReadyState
GetReferrer() string
ReleaseEvents(args ...interface{})
RemoveChild(args ...interface{}) Node
RemoveEventListener(args ...interface{})
ReplaceChild(args ...interface{}) Node
GetScripts() HTMLCollection
GetStyleSheets() StyleSheetList
GetTextContent() string
SetTextContent(string)
GetTitle() string
SetTitle(string)
GetURL() string
GetVlinkColor() string
SetVlinkColor(string)
Write(args ...interface{})
Writeln(args ...interface{})
}
type Document struct {
Value
@ -216,13 +274,53 @@ type Document struct {
func JSValueToDocument(val js.Value) Document { return Document{Value: Value{Value: val}} }
func (v Value) AsDocument() Document { return Document{Value: v} }
func (d Document) GetActiveElement() Element {
val := d.Get("activeElement")
return JSValueToElement(val.JSValue())
}
func (d Document) AdoptNode(args ...interface{}) Node {
val := d.Call("adoptNode", args...)
return JSValueToNode(val.JSValue())
}
func (d Document) GetAlinkColor() string {
val := d.Get("alinkColor")
return val.String()
}
func (d Document) SetAlinkColor(val string) {
d.Set("alinkColor", val)
}
func (d Document) GetAll() HTMLAllCollection {
val := d.Get("all")
return JSValueToHTMLAllCollection(val.JSValue())
}
func (d Document) GetAnchors() HTMLCollection {
val := d.Get("anchors")
return JSValueToHTMLCollection(val.JSValue())
}
func (d Document) Append(args ...interface{}) {
d.Call("append", args...)
}
func (d Document) GetApplets() HTMLCollection {
val := d.Get("applets")
return JSValueToHTMLCollection(val.JSValue())
}
func (d Document) GetBgColor() string {
val := d.Get("bgColor")
return val.String()
}
func (d Document) SetBgColor(val string) {
d.Set("bgColor", val)
}
func (d Document) GetBody() HTMLElement {
val := d.Get("body")
return JSValueToHTMLElement(val.JSValue())
}
func (d Document) SetBody(val HTMLElement) {
d.Set("body", val)
}
func (d Document) CaptureEvents(args ...interface{}) {
d.Call("captureEvents", args...)
}
func (d Document) GetCharacterSet() string {
val := d.Get("characterSet")
return val.String()
@ -239,6 +337,12 @@ func (d Document) GetChildren() HTMLCollection {
val := d.Get("children")
return JSValueToHTMLCollection(val.JSValue())
}
func (d Document) Clear(args ...interface{}) {
d.Call("clear", args...)
}
func (d Document) Close(args ...interface{}) {
d.Call("close", args...)
}
func (d Document) GetCompatMode() string {
val := d.Get("compatMode")
return val.String()
@ -247,6 +351,13 @@ func (d Document) GetContentType() string {
val := d.Get("contentType")
return val.String()
}
func (d Document) GetCookie() string {
val := d.Get("cookie")
return val.String()
}
func (d Document) SetCookie(val string) {
d.Set("cookie", val)
}
func (d Document) CreateAttribute(args ...interface{}) Attr {
val := d.Call("createAttribute", args...)
return JSValueToAttr(val.JSValue())
@ -299,6 +410,28 @@ func (d Document) CreateTreeWalker(args ...interface{}) TreeWalker {
val := d.Call("createTreeWalker", args...)
return JSValueToTreeWalker(val.JSValue())
}
func (d Document) GetCurrentScript() HTMLOrSVGScriptElement {
val := d.Get("currentScript")
return JSValueToHTMLOrSVGScriptElement(val.JSValue())
}
func (d Document) GetDefaultView() WindowProxy {
val := d.Get("defaultView")
return JSValueToWindowProxy(val.JSValue())
}
func (d Document) GetDesignMode() string {
val := d.Get("designMode")
return val.String()
}
func (d Document) SetDesignMode(val string) {
d.Set("designMode", val)
}
func (d Document) GetDir() string {
val := d.Get("dir")
return val.String()
}
func (d Document) SetDir(val string) {
d.Set("dir", val)
}
func (d Document) GetDoctype() DocumentType {
val := d.Get("doctype")
return JSValueToDocumentType(val.JSValue())
@ -311,10 +444,36 @@ func (d Document) GetDocumentURI() string {
val := d.Get("documentURI")
return val.String()
}
func (d Document) GetDomain() string {
val := d.Get("domain")
return val.String()
}
func (d Document) SetDomain(val string) {
d.Set("domain", val)
}
func (d Document) GetEmbeds() HTMLCollection {
val := d.Get("embeds")
return JSValueToHTMLCollection(val.JSValue())
}
func (d Document) ExecCommand(args ...interface{}) bool {
val := d.Call("execCommand", args...)
return val.Bool()
}
func (d Document) GetFgColor() string {
val := d.Get("fgColor")
return val.String()
}
func (d Document) SetFgColor(val string) {
d.Set("fgColor", val)
}
func (d Document) GetFirstElementChild() Element {
val := d.Get("firstElementChild")
return JSValueToElement(val.JSValue())
}
func (d Document) GetForms() HTMLCollection {
val := d.Get("forms")
return JSValueToHTMLCollection(val.JSValue())
}
func (d Document) GetElementById(args ...interface{}) Element {
val := d.Call("getElementById", args...)
return JSValueToElement(val.JSValue())
@ -323,6 +482,10 @@ func (d Document) GetElementsByClassName(args ...interface{}) HTMLCollection {
val := d.Call("getElementsByClassName", args...)
return JSValueToHTMLCollection(val.JSValue())
}
func (d Document) GetElementsByName(args ...interface{}) NodeList {
val := d.Call("getElementsByName", args...)
return JSValueToNodeList(val.JSValue())
}
func (d Document) GetElementsByTagName(args ...interface{}) HTMLCollection {
val := d.Call("getElementsByTagName", args...)
return JSValueToHTMLCollection(val.JSValue())
@ -331,6 +494,18 @@ func (d Document) GetElementsByTagNameNS(args ...interface{}) HTMLCollection {
val := d.Call("getElementsByTagNameNS", args...)
return JSValueToHTMLCollection(val.JSValue())
}
func (d Document) HasFocus(args ...interface{}) bool {
val := d.Call("hasFocus", args...)
return val.Bool()
}
func (d Document) GetHead() HTMLHeadElement {
val := d.Get("head")
return JSValueToHTMLHeadElement(val.JSValue())
}
func (d Document) GetImages() HTMLCollection {
val := d.Get("images")
return JSValueToHTMLCollection(val.JSValue())
}
func (d Document) GetImplementation() DOMImplementation {
val := d.Get("implementation")
return JSValueToDOMImplementation(val.JSValue())
@ -347,6 +522,25 @@ func (d Document) GetLastElementChild() Element {
val := d.Get("lastElementChild")
return JSValueToElement(val.JSValue())
}
func (d Document) GetLastModified() string {
val := d.Get("lastModified")
return val.String()
}
func (d Document) GetLinkColor() string {
val := d.Get("linkColor")
return val.String()
}
func (d Document) SetLinkColor(val string) {
d.Set("linkColor", val)
}
func (d Document) GetLinks() HTMLCollection {
val := d.Get("links")
return JSValueToHTMLCollection(val.JSValue())
}
func (d Document) GetLocation() Location {
val := d.Get("location")
return JSValueToLocation(val.JSValue())
}
func (d Document) GetOnabort() EventHandler {
val := d.Get("onabort")
return JSValueToEventHandler(val.JSValue())
@ -697,6 +891,13 @@ func (d Document) GetOnratechange() EventHandler {
func (d Document) SetOnratechange(val EventHandler) {
d.Set("onratechange", val)
}
func (d Document) GetOnreadystatechange() EventHandler {
val := d.Get("onreadystatechange")
return JSValueToEventHandler(val.JSValue())
}
func (d Document) SetOnreadystatechange(val EventHandler) {
d.Set("onreadystatechange", val)
}
func (d Document) GetOnreset() EventHandler {
val := d.Get("onreset")
return JSValueToEventHandler(val.JSValue())
@ -802,13 +1003,45 @@ func (d Document) GetOnwheel() EventHandler {
func (d Document) SetOnwheel(val EventHandler) {
d.Set("onwheel", val)
}
func (d Document) Open(args ...interface{}) Document {
val := d.Call("open", args...)
return JSValueToDocument(val.JSValue())
}
func (d Document) OpenWithArgs(args ...interface{}) WindowProxy {
val := d.Call("openWithArgs", args...)
return JSValueToWindowProxy(val.JSValue())
}
func (d Document) GetOrigin() string {
val := d.Get("origin")
return val.String()
}
func (d Document) GetPlugins() HTMLCollection {
val := d.Get("plugins")
return JSValueToHTMLCollection(val.JSValue())
}
func (d Document) Prepend(args ...interface{}) {
d.Call("prepend", args...)
}
func (d Document) QueryCommandEnabled(args ...interface{}) bool {
val := d.Call("queryCommandEnabled", args...)
return val.Bool()
}
func (d Document) QueryCommandIndeterm(args ...interface{}) bool {
val := d.Call("queryCommandIndeterm", args...)
return val.Bool()
}
func (d Document) QueryCommandState(args ...interface{}) bool {
val := d.Call("queryCommandState", args...)
return val.Bool()
}
func (d Document) QueryCommandSupported(args ...interface{}) bool {
val := d.Call("queryCommandSupported", args...)
return val.Bool()
}
func (d Document) QueryCommandValue(args ...interface{}) string {
val := d.Call("queryCommandValue", args...)
return val.String()
}
func (d Document) QuerySelector(args ...interface{}) Element {
val := d.Call("querySelector", args...)
return JSValueToElement(val.JSValue())
@ -817,7 +1050,46 @@ func (d Document) QuerySelectorAll(args ...interface{}) NodeList {
val := d.Call("querySelectorAll", args...)
return JSValueToNodeList(val.JSValue())
}
func (d Document) GetReadyState() DocumentReadyState {
val := d.Get("readyState")
return JSValueToDocumentReadyState(val.JSValue())
}
func (d Document) GetReferrer() string {
val := d.Get("referrer")
return val.String()
}
func (d Document) ReleaseEvents(args ...interface{}) {
d.Call("releaseEvents", args...)
}
func (d Document) GetScripts() HTMLCollection {
val := d.Get("scripts")
return JSValueToHTMLCollection(val.JSValue())
}
func (d Document) GetStyleSheets() StyleSheetList {
val := d.Get("styleSheets")
return JSValueToStyleSheetList(val.JSValue())
}
func (d Document) GetTitle() string {
val := d.Get("title")
return val.String()
}
func (d Document) SetTitle(val string) {
d.Set("title", val)
}
func (d Document) GetURL() string {
val := d.Get("URL")
return val.String()
}
func (d Document) GetVlinkColor() string {
val := d.Get("vlinkColor")
return val.String()
}
func (d Document) SetVlinkColor(val string) {
d.Set("vlinkColor", val)
}
func (d Document) Write(args ...interface{}) {
d.Call("write", args...)
}
func (d Document) Writeln(args ...interface{}) {
d.Call("writeln", args...)
}

+ 160
- 0
document/document.go View File

@ -8,6 +8,9 @@ import "syscall/js"
var value dom.Document
func init() { value = dom.JSValueToDocument(js.Global().Get("document")) }
func GetActiveElement() dom.Element {
return value.GetActiveElement()
}
func AddEventListener(args ...interface{}) {
value.Call("addEventListener", args...)
}
@ -15,6 +18,16 @@ func AdoptNode(args ...interface{}) dom.Node {
val := value.Call("adoptNode", args...)
return dom.JSValueToNode(val.JSValue())
}
func GetAlinkColor() string {
return value.GetAlinkColor()
}
func SetAlinkColor(val string) { value.SetAlinkColor(val) }
func GetAll() dom.HTMLAllCollection {
return value.GetAll()
}
func GetAnchors() dom.HTMLCollection {
return value.GetAnchors()
}
func Append(args ...interface{}) {
value.Call("append", args...)
}
@ -22,9 +35,23 @@ func AppendChild(args ...interface{}) dom.Node {
val := value.Call("appendChild", args...)
return dom.JSValueToNode(val.JSValue())
}
func GetApplets() dom.HTMLCollection {
return value.GetApplets()
}
func GetBaseURI() string {
return value.GetBaseURI()
}
func GetBgColor() string {
return value.GetBgColor()
}
func SetBgColor(val string) { value.SetBgColor(val) }
func GetBody() dom.HTMLElement {
return value.GetBody()
}
func SetBody(val dom.HTMLElement) { value.SetBody(val) }
func CaptureEvents(args ...interface{}) {
value.Call("captureEvents", args...)
}
func GetCharacterSet() string {
return value.GetCharacterSet()
}
@ -40,10 +67,16 @@ func GetChildNodes() dom.NodeList {
func GetChildren() dom.HTMLCollection {
return value.GetChildren()
}
func Clear(args ...interface{}) {
value.Call("clear", args...)
}
func CloneNode(args ...interface{}) dom.Node {
val := value.Call("cloneNode", args...)
return dom.JSValueToNode(val.JSValue())
}
func Close(args ...interface{}) {
value.Call("close", args...)
}
func CompareDocumentPosition(args ...interface{}) int {
val := value.Call("compareDocumentPosition", args...)
return val.Int()
@ -58,6 +91,10 @@ func Contains(args ...interface{}) bool {
func GetContentType() string {
return value.GetContentType()
}
func GetCookie() string {
return value.GetCookie()
}
func SetCookie(val string) { value.SetCookie(val) }
func CreateAttribute(args ...interface{}) dom.Attr {
val := value.Call("createAttribute", args...)
return dom.JSValueToAttr(val.JSValue())
@ -110,6 +147,20 @@ func CreateTreeWalker(args ...interface{}) dom.TreeWalker {
val := value.Call("createTreeWalker", args...)
return dom.JSValueToTreeWalker(val.JSValue())
}
func GetCurrentScript() dom.HTMLOrSVGScriptElement {
return value.GetCurrentScript()
}
func GetDefaultView() dom.WindowProxy {
return value.GetDefaultView()
}
func GetDesignMode() string {
return value.GetDesignMode()
}
func SetDesignMode(val string) { value.SetDesignMode(val) }
func GetDir() string {
return value.GetDir()
}
func SetDir(val string) { value.SetDir(val) }
func DispatchEvent(args ...interface{}) bool {
val := value.Call("dispatchEvent", args...)
return val.Bool()
@ -123,12 +174,30 @@ func GetDocumentElement() dom.Element {
func GetDocumentURI() string {
return value.GetDocumentURI()
}
func GetDomain() string {
return value.GetDomain()
}
func SetDomain(val string) { value.SetDomain(val) }
func GetEmbeds() dom.HTMLCollection {
return value.GetEmbeds()
}
func ExecCommand(args ...interface{}) bool {
val := value.Call("execCommand", args...)
return val.Bool()
}
func GetFgColor() string {
return value.GetFgColor()
}
func SetFgColor(val string) { value.SetFgColor(val) }
func GetFirstChild() dom.Node {
return value.GetFirstChild()
}
func GetFirstElementChild() dom.Element {
return value.GetFirstElementChild()
}
func GetForms() dom.HTMLCollection {
return value.GetForms()
}
func GetElementById(args ...interface{}) dom.Element {
val := value.Call("getElementById", args...)
return dom.JSValueToElement(val.JSValue())
@ -137,6 +206,10 @@ func GetElementsByClassName(args ...interface{}) dom.HTMLCollection {
val := value.Call("getElementsByClassName", args...)
return dom.JSValueToHTMLCollection(val.JSValue())
}
func GetElementsByName(args ...interface{}) dom.NodeList {
val := value.Call("getElementsByName", args...)
return dom.JSValueToNodeList(val.JSValue())
}
func GetElementsByTagName(args ...interface{}) dom.HTMLCollection {
val := value.Call("getElementsByTagName", args...)
return dom.JSValueToHTMLCollection(val.JSValue())
@ -153,6 +226,16 @@ func HasChildNodes(args ...interface{}) bool {
val := value.Call("hasChildNodes", args...)
return val.Bool()
}
func HasFocus(args ...interface{}) bool {
val := value.Call("hasFocus", args...)
return val.Bool()
}
func GetHead() dom.HTMLHeadElement {
return value.GetHead()
}
func GetImages() dom.HTMLCollection {
return value.GetImages()
}
func GetImplementation() dom.DOMImplementation {
return value.GetImplementation()
}
@ -188,6 +271,19 @@ func GetLastChild() dom.Node {
func GetLastElementChild() dom.Element {
return value.GetLastElementChild()
}
func GetLastModified() string {
return value.GetLastModified()
}
func GetLinkColor() string {
return value.GetLinkColor()
}
func SetLinkColor(val string) { value.SetLinkColor(val) }
func GetLinks() dom.HTMLCollection {
return value.GetLinks()
}
func GetLocation() dom.Location {
return value.GetLocation()
}
func LookupNamespaceURI(args ...interface{}) string {
val := value.Call("lookupNamespaceURI", args...)
return val.String()
@ -412,6 +508,10 @@ func GetOnratechange() dom.EventHandler {
return value.GetOnratechange()
}
func SetOnratechange(val dom.EventHandler) { value.SetOnratechange(val) }
func GetOnreadystatechange() dom.EventHandler {
return value.GetOnreadystatechange()
}
func SetOnreadystatechange(val dom.EventHandler) { value.SetOnreadystatechange(val) }
func GetOnreset() dom.EventHandler {
return value.GetOnreset()
}
@ -472,6 +572,14 @@ func GetOnwheel() dom.EventHandler {
return value.GetOnwheel()
}
func SetOnwheel(val dom.EventHandler) { value.SetOnwheel(val) }
func Open(args ...interface{}) dom.Document {
val := value.Call("open", args...)
return dom.JSValueToDocument(val.JSValue())
}
func OpenWithArgs(args ...interface{}) dom.WindowProxy {
val := value.Call("openWithArgs", args...)
return dom.JSValueToWindowProxy(val.JSValue())
}
func GetOrigin() string {
return value.GetOrigin()
}
@ -484,12 +592,35 @@ func GetParentElement() dom.Element {
func GetParentNode() dom.Node {
return value.GetParentNode()
}
func GetPlugins() dom.HTMLCollection {
return value.GetPlugins()
}
func Prepend(args ...interface{}) {
value.Call("prepend", args...)
}
func GetPreviousSibling() dom.Node {
return value.GetPreviousSibling()
}
func QueryCommandEnabled(args ...interface{}) bool {
val := value.Call("queryCommandEnabled", args...)
return val.Bool()
}
func QueryCommandIndeterm(args ...interface{}) bool {
val := value.Call("queryCommandIndeterm", args...)
return val.Bool()
}
func QueryCommandState(args ...interface{}) bool {
val := value.Call("queryCommandState", args...)
return val.Bool()
}
func QueryCommandSupported(args ...interface{}) bool {
val := value.Call("queryCommandSupported", args...)
return val.Bool()
}
func QueryCommandValue(args ...interface{}) string {
val := value.Call("queryCommandValue", args...)
return val.String()
}
func QuerySelector(args ...interface{}) dom.Element {
val := value.Call("querySelector", args...)
return dom.JSValueToElement(val.JSValue())
@ -498,6 +629,15 @@ func QuerySelectorAll(args ...interface{}) dom.NodeList {
val := value.Call("querySelectorAll", args...)
return dom.JSValueToNodeList(val.JSValue())
}
func GetReadyState() dom.DocumentReadyState {
return value.GetReadyState()
}
func GetReferrer() string {
return value.GetReferrer()
}
func ReleaseEvents(args ...interface{}) {
value.Call("releaseEvents", args...)
}
func RemoveChild(args ...interface{}) dom.Node {
val := value.Call("removeChild", args...)
return dom.JSValueToNode(val.JSValue())
@ -509,10 +649,30 @@ func ReplaceChild(args ...interface{}) dom.Node {
val := value.Call("replaceChild", args...)
return dom.JSValueToNode(val.JSValue())
}
func GetScripts() dom.HTMLCollection {
return value.GetScripts()
}
func GetStyleSheets() dom.StyleSheetList {
return value.GetStyleSheets()
}
func GetTextContent() string {
return value.GetTextContent()
}
func SetTextContent(val string) { value.SetTextContent(val) }
func GetTitle() string {
return value.GetTitle()
}
func SetTitle(val string) { value.SetTitle(val) }
func GetURL() string {
return value.GetURL()
}
func GetVlinkColor() string {
return value.GetVlinkColor()
}
func SetVlinkColor(val string) { value.SetVlinkColor(val) }
func Write(args ...interface{}) {
value.Call("write", args...)
}
func Writeln(args ...interface{}) {
value.Call("writeln", args...)
}

+ 19
- 0
domparser.go View File

@ -0,0 +1,19 @@
// Code generated DO NOT EDIT
// domparser.go
package dom
import "syscall/js"
type DOMParserIFace interface {
ParseFromString(args ...interface{}) Document
}
type DOMParser struct {
Value
}
func JSValueToDOMParser(val js.Value) DOMParser { return DOMParser{Value: Value{Value: val}} }
func (v Value) AsDOMParser() DOMParser { return DOMParser{Value: v} }
func (d DOMParser) ParseFromString(args ...interface{}) Document {
val := d.Call("parseFromString", args...)
return JSValueToDocument(val.JSValue())
}

+ 22
- 0
element.go View File

@ -42,7 +42,10 @@ type ElementIFace interface {
HasChildNodes(args ...interface{}) bool
GetId() string
SetId(string)
GetInnerHTML() string
SetInnerHTML(string)
InsertAdjacentElement(args ...interface{}) Element
InsertAdjacentHTML(args ...interface{})
InsertAdjacentText(args ...interface{})
InsertBefore(args ...interface{}) Node
GetIsConnected() bool
@ -63,6 +66,8 @@ type ElementIFace interface {
GetNodeValue() string
SetNodeValue(string)
Normalize(args ...interface{})
GetOuterHTML() string
SetOuterHTML(string)
GetOwnerDocument() Document
GetParentElement() Element
GetParentNode() Node
@ -199,10 +204,20 @@ func (e Element) GetId() string {
func (e Element) SetId(val string) {
e.Set("id", val)
}
func (e Element) GetInnerHTML() string {
val := e.Get("innerHTML")
return val.String()
}
func (e Element) SetInnerHTML(val string) {
e.Set("innerHTML", val)
}
func (e Element) InsertAdjacentElement(args ...interface{}) Element {
val := e.Call("insertAdjacentElement", args...)
return JSValueToElement(val.JSValue())
}
func (e Element) InsertAdjacentHTML(args ...interface{}) {
e.Call("insertAdjacentHTML", args...)
}
func (e Element) InsertAdjacentText(args ...interface{}) {
e.Call("insertAdjacentText", args...)
}
@ -226,6 +241,13 @@ func (e Element) GetNextElementSibling() Element {
val := e.Get("nextElementSibling")
return JSValueToElement(val.JSValue())
}
func (e Element) GetOuterHTML() string {
val := e.Get("outerHTML")
return val.String()
}
func (e Element) SetOuterHTML(val string) {
e.Set("outerHTML", val)
}
func (e Element) GetPrefix() string {
val := e.Get("prefix")
return val.String()


+ 1
- 1
generate/api.min.json
File diff suppressed because it is too large
View File


+ 2
- 0
generate/generator.go View File

@ -406,6 +406,8 @@ func (g *Generator) generateEnum(spec Spec) (err error) {
}
n := fmt.Sprintf("%s%s", spec.Name, strings.Title(v.Value))
n = strings.Replace(n, "-", "", -1)
n = strings.Replace(n, "/", "", -1)
n = strings.Replace(n, "+", "", -1)
b.WriteF("%s %s = %q", n, spec.Name, v.Value)
}
b.WriteString(")")


+ 6
- 0
generate/spec.go View File

@ -130,6 +130,12 @@ func (s Spec) ResolveMembers(specs SpecMap, includeParents bool) (mems []Member,
}
}
for _, p := range s.Partials {
for _, m := range p.Members() {
memMap[m.Title()] = m
}
}
for _, m := range s.Members() {
memMap[m.Title()] = m
}


+ 45
- 0
htmlanchorelement.go View File

@ -15,6 +15,8 @@ type HTMLAnchorElementIFace interface {
GetAutocapitalize() string
SetAutocapitalize(string)
GetBaseURI() string
GetCharset() string
SetCharset(string)
GetChildNodes() NodeList
GetClassList() DOMTokenList
GetClassName() string
@ -24,6 +26,8 @@ type HTMLAnchorElementIFace interface {
Closest(args ...interface{}) Element
CompareDocumentPosition(args ...interface{}) int
Contains(args ...interface{}) bool
GetCoords() string
SetCoords(string)
GetDir() string
SetDir(string)
DispatchEvent(args ...interface{}) bool
@ -75,6 +79,8 @@ type HTMLAnchorElementIFace interface {
LookupNamespaceURI(args ...interface{}) string
LookupPrefix(args ...interface{}) string
Matches(args ...interface{}) bool
GetName() string
SetName(string)
GetNamespaceURI() string
GetNextSibling() Node
GetNodeName() string
@ -109,6 +115,8 @@ type HTMLAnchorElementIFace interface {
RemoveChild(args ...interface{}) Node
RemoveEventListener(args ...interface{})
ReplaceChild(args ...interface{}) Node
GetRev() string
SetRev(string)
GetSearch() string
SetSearch(string)
SetAttribute(args ...interface{})
@ -116,6 +124,8 @@ type HTMLAnchorElementIFace interface {
SetAttributeNode(args ...interface{}) Attr
SetAttributeNodeNS(args ...interface{}) Attr
GetShadowRoot() ShadowRoot
GetShape() string
SetShape(string)
GetSlot() string
SetSlot(string)
GetSpellcheck() bool
@ -150,6 +160,20 @@ func JSValueToHTMLAnchorElement(val js.Value) HTMLAnchorElement {
return HTMLAnchorElement{Value: Value{Value: val}}
}
func (v Value) AsHTMLAnchorElement() HTMLAnchorElement { return HTMLAnchorElement{Value: v} }
func (h HTMLAnchorElement) GetCharset() string {
val := h.Get("charset")
return val.String()
}
func (h HTMLAnchorElement) SetCharset(val string) {
h.Set("charset", val)
}
func (h HTMLAnchorElement) GetCoords() string {
val := h.Get("coords")
return val.String()
}
func (h HTMLAnchorElement) SetCoords(val string) {
h.Set("coords", val)
}
func (h HTMLAnchorElement) GetDownload() string {
val := h.Get("download")
return val.String()
@ -192,6 +216,13 @@ func (h HTMLAnchorElement) GetHreflang() string {
func (h HTMLAnchorElement) SetHreflang(val string) {
h.Set("hreflang", val)
}
func (h HTMLAnchorElement) GetName() string {
val := h.Get("name")
return val.String()
}
func (h HTMLAnchorElement) SetName(val string) {
h.Set("name", val)
}
func (h HTMLAnchorElement) GetOrigin() string {
val := h.Get("origin")
return val.String()
@ -249,6 +280,13 @@ func (h HTMLAnchorElement) GetRelList() DOMTokenList {
val := h.Get("relList")
return JSValueToDOMTokenList(val.JSValue())
}
func (h HTMLAnchorElement) GetRev() string {
val := h.Get("rev")
return val.String()
}
func (h HTMLAnchorElement) SetRev(val string) {
h.Set("rev", val)
}
func (h HTMLAnchorElement) GetSearch() string {
val := h.Get("search")
return val.String()
@ -256,6 +294,13 @@ func (h HTMLAnchorElement) GetSearch() string {
func (h HTMLAnchorElement) SetSearch(val string) {
h.Set("search", val)
}
func (h HTMLAnchorElement) GetShape() string {
val := h.Get("shape")
return val.String()
}
func (h HTMLAnchorElement) SetShape(val string) {
h.Set("shape", val)
}
func (h HTMLAnchorElement) GetTarget() string {
val := h.Get("target")
return val.String()


+ 9
- 0
htmlareaelement.go View File

@ -79,6 +79,8 @@ type HTMLAreaElementIFace interface {
Matches(args ...interface{}) bool
GetNamespaceURI() string
GetNextSibling() Node
GetNoHref() bool
SetNoHref(bool)
GetNodeName() string
GetNodeType() int
GetNodeValue() string
@ -199,6 +201,13 @@ func (h HTMLAreaElement) GetHref() string {
func (h HTMLAreaElement) SetHref(val string) {
h.Set("href", val)
}
func (h HTMLAreaElement) GetNoHref() bool {
val := h.Get("noHref")
return val.Bool()
}
func (h HTMLAreaElement) SetNoHref(val bool) {
h.Set("noHref", val)
}
func (h HTMLAreaElement) GetOrigin() string {
val := h.Get("origin")
return val.String()


+ 54
- 0
htmlbodyelement.go View File

@ -5,6 +5,8 @@ package dom
import "syscall/js"
type HTMLBodyElementIFace interface {
GetALink() string
SetALink(string)
GetAccessKey() string
SetAccessKey(string)
GetAccessKeyLabel() string
@ -14,7 +16,11 @@ type HTMLBodyElementIFace interface {
GetAttributes() NamedNodeMap
GetAutocapitalize() string
SetAutocapitalize(string)
GetBackground() string
SetBackground(string)
GetBaseURI() string
GetBgColor() string
SetBgColor(string)
GetChildNodes() NodeList
GetClassList() DOMTokenList
GetClassName() string
@ -59,6 +65,8 @@ type HTMLBodyElementIFace interface {
GetLang() string
SetLang(string)
GetLastChild() Node
GetLink() string
SetLink(string)
GetLocalName() string
LookupNamespaceURI(args ...interface{}) string
LookupPrefix(args ...interface{}) string
@ -123,6 +131,8 @@ type HTMLBodyElementIFace interface {
GetSpellcheck() bool
SetSpellcheck(bool)
GetTagName() string
GetText() string
SetText(string)
GetTextContent() string
SetTextContent(string)
GetTitle() string
@ -130,6 +140,8 @@ type HTMLBodyElementIFace interface {
ToggleAttribute(args ...interface{}) bool
GetTranslate() bool
SetTranslate(bool)
GetVLink() string
SetVLink(string)
WebkitMatchesSelector(args ...interface{}) bool
}
type HTMLBodyElement struct {
@ -144,6 +156,34 @@ func JSValueToHTMLBodyElement(val js.Value) HTMLBodyElement {
return HTMLBodyElement{Value: Value{Value: val}}
}
func (v Value) AsHTMLBodyElement() HTMLBodyElement { return HTMLBodyElement{Value: v} }
func (h HTMLBodyElement) GetALink() string {
val := h.Get("aLink")
return val.String()
}
func (h HTMLBodyElement) SetALink(val string) {
h.Set("aLink", val)
}
func (h HTMLBodyElement) GetBackground() string {
val := h.Get("background")
return val.String()
}
func (h HTMLBodyElement) SetBackground(val string) {
h.Set("background", val)
}
func (h HTMLBodyElement) GetBgColor() string {
val := h.Get("bgColor")
return val.String()
}
func (h HTMLBodyElement) SetBgColor(val string) {
h.Set("bgColor", val)
}
func (h HTMLBodyElement) GetLink() string {
val := h.Get("link")
return val.String()
}
func (h HTMLBodyElement) SetLink(val string) {
h.Set("link", val)
}
func (h HTMLBodyElement) GetOnafterprint() EventHandler {
val := h.Get("onafterprint")
return JSValueToEventHandler(val.JSValue())
@ -256,3 +296,17 @@ func (h HTMLBodyElement) GetOnunload() EventHandler {
func (h HTMLBodyElement) SetOnunload(val EventHandler) {
h.Set("onunload", val)
}
func (h HTMLBodyElement) GetText() string {
val := h.Get("text")
return val.String()
}
func (h HTMLBodyElement) SetText(val string) {
h.Set("text", val)
}
func (h HTMLBodyElement) GetVLink() string {
val := h.Get("vLink")
return val.String()
}
func (h HTMLBodyElement) SetVLink(val string) {
h.Set("vLink", val)
}

+ 9
- 0
htmlbrelement.go View File

@ -19,6 +19,8 @@ type HTMLBRElementIFace interface {
GetClassList() DOMTokenList
GetClassName() string
SetClassName(string)
GetClear() string
SetClear(string)
Click(args ...interface{})
CloneNode(args ...interface{}) Node
Closest(args ...interface{}) Element
@ -112,3 +114,10 @@ func JSValueToHTMLBRElement(val js.Value) HTMLBRElement {
return HTMLBRElement{Value: Value{Value: val}}
}
func (v Value) AsHTMLBRElement() HTMLBRElement { return HTMLBRElement{Value: v} }
func (h HTMLBRElement) GetClear() string {
val := h.Get("clear")
return val.String()
}
func (h HTMLBRElement) SetClear(val string) {
h.Set("clear", val)
}

+ 9
- 0
htmldivelement.go View File

@ -9,6 +9,8 @@ type HTMLDivElementIFace interface {
SetAccessKey(string)
GetAccessKeyLabel() string
AddEventListener(args ...interface{})
GetAlign() string
SetAlign(string)
AppendChild(args ...interface{}) Node
AttachShadow(args ...interface{}) ShadowRoot
GetAttributes() NamedNodeMap
@ -112,3 +114,10 @@ func JSValueToHTMLDivElement(val js.Value) HTMLDivElement {
return HTMLDivElement{Value: Value{Value: val}}
}
func (v Value) AsHTMLDivElement() HTMLDivElement { return HTMLDivElement{Value: v} }
func (h HTMLDivElement) GetAlign() string {
val := h.Get("align")
return val.String()
}
func (h HTMLDivElement) SetAlign(val string) {
h.Set("align", val)
}

+ 9
- 0
htmldlistelement.go View File

@ -22,6 +22,8 @@ type HTMLDListElementIFace interface {
Click(args ...interface{})
CloneNode(args ...interface{}) Node
Closest(args ...interface{}) Element
GetCompact() bool
SetCompact(bool)
CompareDocumentPosition(args ...interface{}) int
Contains(args ...interface{}) bool
GetDir() string
@ -112,3 +114,10 @@ func JSValueToHTMLDListElement(val js.Value) HTMLDListElement {
return HTMLDListElement{Value: Value{Value: val}}
}
func (v Value) AsHTMLDListElement() HTMLDListElement { return HTMLDListElement{Value: v} }
func (h HTMLDListElement) GetCompact() bool {
val := h.Get("compact")
return val.Bool()
}
func (h HTMLDListElement) SetCompact(val bool) {
h.Set("compact", val)
}

+ 18
- 0
htmlembedelement.go View File

@ -9,6 +9,8 @@ type HTMLEmbedElementIFace interface {
SetAccessKey(string)
GetAccessKeyLabel() string
AddEventListener(args ...interface{})
GetAlign() string
SetAlign(string)
AppendChild(args ...interface{}) Node
AttachShadow(args ...interface{}) ShadowRoot
GetAttributes() NamedNodeMap
@ -66,6 +68,8 @@ type HTMLEmbedElementIFace interface {
LookupNamespaceURI(args ...interface{}) string
LookupPrefix(args ...interface{}) string
Matches(args ...interface{}) bool
GetName() string
SetName(string)
GetNamespaceURI() string
GetNextSibling() Node
GetNodeName() string
@ -121,6 +125,13 @@ func JSValueToHTMLEmbedElement(val js.Value) HTMLEmbedElement {
return HTMLEmbedElement{Value: Value{Value: val}}
}
func (v Value) AsHTMLEmbedElement() HTMLEmbedElement { return HTMLEmbedElement{Value: v} }
func (h HTMLEmbedElement) GetAlign() string {
val := h.Get("align")
return val.String()
}
func (h HTMLEmbedElement) SetAlign(val string) {
h.Set("align", val)
}
func (h HTMLEmbedElement) GetSVGDocument(args ...interface{}) Document {
val := h.Call("getSVGDocument", args...)
return JSValueToDocument(val.JSValue())
@ -132,6 +143,13 @@ func (h HTMLEmbedElement) GetHeight() string {
func (h HTMLEmbedElement) SetHeight(val string) {
h.Set("height", val)
}
func (h HTMLEmbedElement) GetName() string {
val := h.Get("name")
return val.String()
}
func (h HTMLEmbedElement) SetName(val string) {
h.Set("name", val)
}
func (h HTMLEmbedElement) GetSrc() string {
val := h.Get("src")
return val.String()


+ 9
- 0
htmlheadingelement.go View File

@ -9,6 +9,8 @@ type HTMLHeadingElementIFace interface {
SetAccessKey(string)
GetAccessKeyLabel() string
AddEventListener(args ...interface{})
GetAlign() string
SetAlign(string)
AppendChild(args ...interface{}) Node
AttachShadow(args ...interface{}) ShadowRoot
GetAttributes() NamedNodeMap
@ -112,3 +114,10 @@ func JSValueToHTMLHeadingElement(val js.Value) HTMLHeadingElement {
return HTMLHeadingElement{Value: Value{Value: val}}
}
func (v Value) AsHTMLHeadingElement() HTMLHeadingElement { return HTMLHeadingElement{Value: v} }
func (h HTMLHeadingElement) GetAlign() string {
val := h.Get("align")
return val.String()
}
func (h HTMLHeadingElement) SetAlign(val string) {
h.Set("align", val)
}

+ 45
- 0
htmlhrelement.go View File

@ -9,6 +9,8 @@ type HTMLHRElementIFace interface {
SetAccessKey(string)
GetAccessKeyLabel() string
AddEventListener(args ...interface{})
GetAlign() string
SetAlign(string)
AppendChild(args ...interface{}) Node
AttachShadow(args ...interface{}) ShadowRoot
GetAttributes() NamedNodeMap
@ -22,6 +24,8 @@ type HTMLHRElementIFace interface {
Click(args ...interface{})
CloneNode(args ...interface{}) Node
Closest(args ...interface{}) Element
GetColor() string
SetColor(string)
CompareDocumentPosition(args ...interface{}) int
Contains(args ...interface{}) bool
GetDir() string
@ -65,6 +69,8 @@ type HTMLHRElementIFace interface {
Matches(args ...interface{}) bool
GetNamespaceURI() string
GetNextSibling() Node
GetNoShade() bool
SetNoShade(bool)
GetNodeName() string
GetNodeType() int
GetNodeValue() string
@ -86,6 +92,8 @@ type HTMLHRElementIFace interface {
SetAttributeNode(args ...interface{}) Attr
SetAttributeNodeNS(args ...interface{}) Attr
GetShadowRoot() ShadowRoot
GetSize() string
SetSize(string)
GetSlot() string
SetSlot(string)
GetSpellcheck() bool
@ -99,6 +107,8 @@ type HTMLHRElementIFace interface {
GetTranslate() bool
SetTranslate(bool)
WebkitMatchesSelector(args ...interface{}) bool
GetWidth() string
SetWidth(string)
}
type HTMLHRElement struct {
Value
@ -112,3 +122,38 @@ func JSValueToHTMLHRElement(val js.Value) HTMLHRElement {
return HTMLHRElement{Value: Value{Value: val}}
}
func (v Value) AsHTMLHRElement() HTMLHRElement { return HTMLHRElement{Value: v} }
func (h HTMLHRElement) GetAlign() string {
val := h.Get("align")
return val.String()
}
func (h HTMLHRElement) SetAlign(val string) {
h.Set("align", val)
}
func (h HTMLHRElement) GetColor() string {
val := h.Get("color")
return val.String()
}
func (h HTMLHRElement) SetColor(val string) {
h.Set("color", val)
}
func (h HTMLHRElement) GetNoShade() bool {
val := h.Get("noShade")
return val.Bool()
}
func (h HTMLHRElement) SetNoShade(val bool) {
h.Set("noShade", val)
}
func (h HTMLHRElement) GetSize() string {
val := h.Get("size")
return val.String()
}
func (h HTMLHRElement) SetSize(val string) {
h.Set("size", val)
}
func (h HTMLHRElement) GetWidth() string {
val := h.Get("width")
return val.String()
}
func (h HTMLHRElement) SetWidth(val string) {
h.Set("width", val)
}

+ 9
- 0
htmlhtmlelement.go View File

@ -98,6 +98,8 @@ type HTMLHtmlElementIFace interface {
ToggleAttribute(args ...interface{}) bool
GetTranslate() bool
SetTranslate(bool)
GetVersion() string
SetVersion(string)
WebkitMatchesSelector(args ...interface{}) bool
}
type HTMLHtmlElement struct {
@ -112,3 +114,10 @@ func JSValueToHTMLHtmlElement(val js.Value) HTMLHtmlElement {
return HTMLHtmlElement{Value: Value{Value: val}}
}
func (v Value) AsHTMLHtmlElement() HTMLHtmlElement { return HTMLHtmlElement{Value: v} }
func (h HTMLHtmlElement) GetVersion() string {
val := h.Get("version")
return val.String()
}
func (h HTMLHtmlElement) SetVersion(val string) {
h.Set("version", val)
}

+ 54
- 0
htmliframeelement.go View File

@ -9,6 +9,8 @@ type HTMLIFrameElementIFace interface {
SetAccessKey(string)
GetAccessKeyLabel() string
AddEventListener(args ...interface{})
GetAlign() string
SetAlign(string)
GetAllow() string
SetAllow(string)
GetAllowFullscreen() bool
@ -40,6 +42,8 @@ type HTMLIFrameElementIFace interface {
GetDraggable() bool
SetDraggable(bool)
GetFirstChild() Node
GetFrameBorder() string
SetFrameBorder(string)
GetAttribute(args ...interface{}) string
GetAttributeNS(args ...interface{}) string
GetAttributeNames(args ...interface{})
@ -73,8 +77,14 @@ type HTMLIFrameElementIFace interface {
SetLang(string)
GetLastChild() Node
GetLocalName() string
GetLongDesc() string
SetLongDesc(string)
LookupNamespaceURI(args ...interface{}) string
LookupPrefix(args ...interface{}) string
GetMarginHeight() string
SetMarginHeight(string)
GetMarginWidth() string
SetMarginWidth(string)
Matches(args ...interface{}) bool
GetName() string
SetName(string)
@ -99,6 +109,8 @@ type HTMLIFrameElementIFace interface {
RemoveEventListener(args ...interface{})
ReplaceChild(args ...interface{}) Node
GetSandbox() DOMTokenList
GetScrolling() string
SetScrolling(string)
SetAttribute(args ...interface{})
SetAttributeNS(args ...interface{})
SetAttributeNode(args ...interface{}) Attr
@ -136,6 +148,13 @@ func JSValueToHTMLIFrameElement(val js.Value) HTMLIFrameElement {
return HTMLIFrameElement{Value: Value{Value: val}}
}
func (v Value) AsHTMLIFrameElement() HTMLIFrameElement { return HTMLIFrameElement{Value: v} }
func (h HTMLIFrameElement) GetAlign() string {
val := h.Get("align")
return val.String()
}
func (h HTMLIFrameElement) SetAlign(val string) {
h.Set("align", val)
}
func (h HTMLIFrameElement) GetAllow() string {
val := h.Get("allow")
return val.String()
@ -172,6 +191,13 @@ func (h HTMLIFrameElement) GetContentWindow() WindowProxy {
val := h.Get("contentWindow")
return JSValueToWindowProxy(val.JSValue())
}
func (h HTMLIFrameElement) GetFrameBorder() string {
val := h.Get("frameBorder")
return val.String()
}
func (h HTMLIFrameElement) SetFrameBorder(val string) {
h.Set("frameBorder", val)
}
func (h HTMLIFrameElement) GetSVGDocument(args ...interface{}) Document {
val := h.Call("getSVGDocument", args...)
return JSValueToDocument(val.JSValue())
@ -183,6 +209,27 @@ func (h HTMLIFrameElement) GetHeight() string {
func (h HTMLIFrameElement) SetHeight(val string) {
h.Set("height", val)
}
func (h HTMLIFrameElement) GetLongDesc() string {
val := h.Get("longDesc")
return val.String()
}
func (h HTMLIFrameElement) SetLongDesc(val string) {
h.Set("longDesc", val)
}
func (h HTMLIFrameElement) GetMarginHeight() string {
val := h.Get("marginHeight")
return val.String()
}
func (h HTMLIFrameElement) SetMarginHeight(val string) {
h.Set("marginHeight", val)
}
func (h HTMLIFrameElement) GetMarginWidth() string {
val := h.Get("marginWidth")
return val.String()
}
func (h HTMLIFrameElement) SetMarginWidth(val string) {
h.Set("marginWidth", val)
}
func (h HTMLIFrameElement) GetName() string {
val := h.Get("name")
return val.String()
@ -201,6 +248,13 @@ func (h HTMLIFrameElement) GetSandbox() DOMTokenList {
val := h.Get("sandbox")
return JSValueToDOMTokenList(val.JSValue())
}
func (h HTMLIFrameElement) GetScrolling() string {
val := h.Get("scrolling")
return val.String()
}
func (h HTMLIFrameElement) SetScrolling(val string) {
h.Set("scrolling", val)
}
func (h HTMLIFrameElement) GetSrc() string {
val := h.Get("src")
return val.String()


+ 63
- 0
htmlimageelement.go View File

@ -9,6 +9,8 @@ type HTMLImageElementIFace interface {
SetAccessKey(string)
GetAccessKeyLabel() string
AddEventListener(args ...interface{})
GetAlign() string
SetAlign(string)
GetAlt() string
SetAlt(string)
AppendChild(args ...interface{}) Node
@ -17,6 +19,8 @@ type HTMLImageElementIFace interface {
GetAutocapitalize() string
SetAutocapitalize(string)
GetBaseURI() string
GetBorder() string
SetBorder(string)
GetChildNodes() NodeList
GetClassList() DOMTokenList
GetClassName() string
@ -56,6 +60,8 @@ type HTMLImageElementIFace interface {
SetHeight(int)
GetHidden() bool
SetHidden(bool)
GetHspace() int
SetHspace(int)
GetId() string
SetId(string)
GetInnerText() string
@ -73,9 +79,15 @@ type HTMLImageElementIFace interface {
SetLang(string)
GetLastChild() Node
GetLocalName() string
GetLongDesc() string
SetLongDesc(string)
LookupNamespaceURI(args ...interface{}) string
LookupPrefix(args ...interface{}) string
GetLowsrc() string
SetLowsrc(string)
Matches(args ...interface{}) bool
GetName() string
SetName(string)
GetNamespaceURI() string
GetNaturalHeight() int
GetNaturalWidth() int
@ -123,6 +135,8 @@ type HTMLImageElementIFace interface {
SetTranslate(bool)
GetUseMap() string
SetUseMap(string)
GetVspace() int
SetVspace(int)
WebkitMatchesSelector(args ...interface{}) bool
GetWidth() int
SetWidth(int)
@ -139,6 +153,13 @@ func JSValueToHTMLImageElement(val js.Value) HTMLImageElement {
return HTMLImageElement{Value: Value{Value: val}}
}
func (v Value) AsHTMLImageElement() HTMLImageElement { return HTMLImageElement{Value: v} }
func (h HTMLImageElement) GetAlign() string {
val := h.Get("align")
return val.String()
}
func (h HTMLImageElement) SetAlign(val string) {
h.Set("align", val)
}
func (h HTMLImageElement) GetAlt() string {
val := h.Get("alt")
return val.String()
@ -146,6 +167,13 @@ func (h HTMLImageElement) GetAlt() string {
func (h HTMLImageElement) SetAlt(val string) {
h.Set("alt", val)
}
func (h HTMLImageElement) GetBorder() string {
val := h.Get("border")
return val.String()
}
func (h HTMLImageElement) SetBorder(val string) {
h.Set("border", val)
}
func (h HTMLImageElement) GetComplete() bool {
val := h.Get("complete")
return val.Bool()
@ -178,6 +206,13 @@ func (h HTMLImageElement) GetHeight() int {
func (h HTMLImageElement) SetHeight(val int) {
h.Set("height", val)
}
func (h HTMLImageElement) GetHspace() int {
val := h.Get("hspace")
return val.Int()
}
func (h HTMLImageElement) SetHspace(val int) {
h.Set("hspace", val)
}
func (h HTMLImageElement) GetIsMap() bool {
val := h.Get("isMap")
return val.Bool()
@ -185,6 +220,27 @@ func (h HTMLImageElement) GetIsMap() bool {
func (h HTMLImageElement) SetIsMap(val bool) {
h.Set("isMap", val)
}
func (h HTMLImageElement) GetLongDesc() string {
val := h.Get("longDesc")
return val.String()
}
func (h HTMLImageElement) SetLongDesc(val string) {
h.Set("longDesc", val)
}
func (h HTMLImageElement) GetLowsrc() string {
val := h.Get("lowsrc")
return val.String()
}
func (h HTMLImageElement) SetLowsrc(val string) {
h.Set("lowsrc", val)
}
func (h HTMLImageElement) GetName() string {
val := h.Get("name")
return val.String()
}
func (h HTMLImageElement) SetName(val string) {
h.Set("name", val)
}
func (h HTMLImageElement) GetNaturalHeight() int {
val := h.Get("naturalHeight")
return val.Int()
@ -228,6 +284,13 @@ func (h HTMLImageElement) GetUseMap() string {
func (h HTMLImageElement) SetUseMap(val string) {
h.Set("useMap", val)
}
func (h HTMLImageElement) GetVspace() int {
val := h.Get("vspace")
return val.Int()
}
func (h HTMLImageElement) SetVspace(val int) {
h.Set("vspace", val)
}
func (h HTMLImageElement) GetWidth() int {
val := h.Get("width")
return val.Int()


+ 18
- 0
htmlinputelement.go View File

@ -11,6 +11,8 @@ type HTMLInputElementIFace interface {
SetAccessKey(string)
GetAccessKeyLabel() string
AddEventListener(args ...interface{})
GetAlign() string
SetAlign(string)
GetAlt() string
SetAlt(string)
AppendChild(args ...interface{}) Node
@ -178,6 +180,8 @@ type HTMLInputElementIFace interface {
SetTranslate(bool)
GetType() string
SetType(string)
GetUseMap() string
SetUseMap(string)
GetValidationMessage() string
GetValidity() ValidityState
GetValue() string
@ -210,6 +214,13 @@ func (h HTMLInputElement) GetAccept() string {
func (h HTMLInputElement) SetAccept(val string) {
h.Set("accept", val)
}
func (h HTMLInputElement) GetAlign() string {
val := h.Get("align")
return val.String()
}
func (h HTMLInputElement) SetAlign(val string) {
h.Set("align", val)
}
func (h HTMLInputElement) GetAlt() string {
val := h.Get("alt")
return val.String()
@ -482,6 +493,13 @@ func (h HTMLInputElement) GetType() string {
func (h HTMLInputElement) SetType(val string) {
h.Set("type", val)
}
func (h HTMLInputElement) GetUseMap() string {
val := h.Get("useMap")
return val.String()
}
func (h HTMLInputElement) SetUseMap(val string) {
h.Set("useMap", val)
}
func (h HTMLInputElement) GetValidationMessage() string {
val := h.Get("validationMessage")
return val.String()


+ 9
- 0
htmllegendelement.go View File

@ -9,6 +9,8 @@ type HTMLLegendElementIFace interface {
SetAccessKey(string)
GetAccessKeyLabel() string
AddEventListener(args ...interface{})
GetAlign() string
SetAlign(string)
AppendChild(args ...interface{}) Node
AttachShadow(args ...interface{}) ShadowRoot
GetAttributes() NamedNodeMap
@ -113,6 +115,13 @@ func JSValueToHTMLLegendElement(val js.Value) HTMLLegendElement {
return HTMLLegendElement{Value: Value{Value: val}}
}
func (v Value) AsHTMLLegendElement() HTMLLegendElement { return HTMLLegendElement{Value: v} }
func (h HTMLLegendElement) GetAlign() string {
val := h.Get("align")
return val.String()
}
func (h HTMLLegendElement) SetAlign(val string) {
h.Set("align", val)
}
func (h HTMLLegendElement) GetForm() HTMLFormElement {
val := h.Get("form")
return JSValueToHTMLFormElement(val.JSValue())


+ 9
- 0
htmllielement.go View File

@ -98,6 +98,8 @@ type HTMLLIElementIFace interface {
ToggleAttribute(args ...interface{}) bool
GetTranslate() bool
SetTranslate(bool)
GetType() string
SetType(string)
GetValue() int
SetValue(int)
WebkitMatchesSelector(args ...interface{}) bool
@ -114,6 +116,13 @@ func JSValueToHTMLLIElement(val js.Value) HTMLLIElement {
return HTMLLIElement{Value: Value{Value: val}}
}
func (v Value) AsHTMLLIElement() HTMLLIElement { return HTMLLIElement{Value: v} }
func (h HTMLLIElement) GetType() string {
val := h.Get("type")
return val.String()
}
func (h HTMLLIElement) SetType(val string) {
h.Set("type", val)
}
func (h HTMLLIElement) GetValue() int {
val := h.Get("value")
return val.Int()


+ 27
- 0
htmllinkelement.go View File

@ -17,6 +17,8 @@ type HTMLLinkElementIFace interface {
GetAutocapitalize() string
SetAutocapitalize(string)
GetBaseURI() string
GetCharset() string
SetCharset(string)
GetChildNodes() NodeList
GetClassList() DOMTokenList
GetClassName() string
@ -98,6 +100,8 @@ type HTMLLinkElementIFace interface {
RemoveChild(args ...interface{}) Node
RemoveEventListener(args ...interface{})
ReplaceChild(args ...interface{}) Node
GetRev() string
SetRev(string)
SetAttribute(args ...interface{})
SetAttributeNS(args ...interface{})
SetAttributeNode(args ...interface{}) Attr
@ -110,6 +114,8 @@ type HTMLLinkElementIFace interface {
GetSpellcheck() bool
SetSpellcheck(bool)
GetTagName() string
GetTarget() string
SetTarget(string)
GetTextContent() string
SetTextContent(string)
GetTitle() string
@ -140,6 +146,13 @@ func (h HTMLLinkElement) GetAs() string {
func (h HTMLLinkElement) SetAs(val string) {
h.Set("as", val)
}
func (h HTMLLinkElement) GetCharset() string {
val := h.Get("charset")
return val.String()
}
func (h HTMLLinkElement) SetCharset(val string) {
h.Set("charset", val)
}
func (h HTMLLinkElement) GetCrossOrigin() string {
val := h.Get("crossOrigin")
return val.String()
@ -193,6 +206,13 @@ func (h HTMLLinkElement) GetRelList() DOMTokenList {
val := h.Get("relList")
return JSValueToDOMTokenList(val.JSValue())
}
func (h HTMLLinkElement) GetRev() string {
val := h.Get("rev")
return val.String()
}
func (h HTMLLinkElement) SetRev(val string) {
h.Set("rev", val)
}
func (h HTMLLinkElement) GetSheet() StyleSheet {
val := h.Get("sheet")
return JSValueToStyleSheet(val.JSValue())
@ -201,6 +221,13 @@ func (h HTMLLinkElement) GetSizes() DOMTokenList {
val := h.Get("sizes")
return JSValueToDOMTokenList(val.JSValue())
}
func (h HTMLLinkElement) GetTarget() string {
val := h.Get("target")
return val.String()
}
func (h HTMLLinkElement) SetTarget(val string) {
h.Set("target", val)
}
func (h HTMLLinkElement) GetType() string {
val := h.Get("type")
return val.String()


+ 9
- 0
htmlmenuelement.go View File

@ -22,6 +22,8 @@ type HTMLMenuElementIFace interface {
Click(args ...interface{})
CloneNode(args ...interface{}) Node
Closest(args ...interface{}) Element
GetCompact() bool
SetCompact(bool)
CompareDocumentPosition(args ...interface{}) int
Contains(args ...interface{}) bool
GetDir() string
@ -112,3 +114,10 @@ func JSValueToHTMLMenuElement(val js.Value) HTMLMenuElement {
return HTMLMenuElement{Value: Value{Value: val}}
}
func (v Value) AsHTMLMenuElement() HTMLMenuElement { return HTMLMenuElement{Value: v} }
func (h HTMLMenuElement) GetCompact() bool {
val := h.Get("compact")
return val.Bool()
}
func (h HTMLMenuElement) SetCompact(val bool) {
h.Set("compact", val)
}

+ 9
- 0
htmlmetaelement.go View File

@ -87,6 +87,8 @@ type HTMLMetaElementIFace interface {
RemoveChild(args ...interface{}) Node
RemoveEventListener(args ...interface{})
ReplaceChild(args ...interface{}) Node
GetScheme() string
SetScheme(string)
SetAttribute(args ...interface{})
SetAttributeNS(args ...interface{})
SetAttributeNode(args ...interface{}) Attr
@ -139,3 +141,10 @@ func (h HTMLMetaElement) GetName() string {
func (h HTMLMetaElement) SetName(val string) {
h.Set("name", val)
}
func (h HTMLMetaElement) GetScheme() string {
val := h.Get("scheme")
return val.String()
}
func (h HTMLMetaElement) SetScheme(val string) {
h.Set("scheme", val)
}

+ 90
- 0
htmlobjectelement.go View File

@ -9,12 +9,18 @@ type HTMLObjectElementIFace interface {
SetAccessKey(string)
GetAccessKeyLabel() string
AddEventListener(args ...interface{})
GetAlign() string
SetAlign(string)
AppendChild(args ...interface{}) Node
GetArchive() string
SetArchive(string)
AttachShadow(args ...interface{}) ShadowRoot
GetAttributes() NamedNodeMap
GetAutocapitalize() string
SetAutocapitalize(string)
GetBaseURI() string
GetBorder() string
SetBorder(string)
CheckValidity(args ...interface{}) bool
GetChildNodes() NodeList
GetClassList() DOMTokenList
@ -23,12 +29,20 @@ type HTMLObjectElementIFace interface {
Click(args ...interface{})
CloneNode(args ...interface{}) Node
Closest(args ...interface{}) Element
GetCode() string
SetCode(string)
GetCodeBase() string
SetCodeBase(string)
GetCodeType() string
SetCodeType(string)
CompareDocumentPosition(args ...interface{}) int
Contains(args ...interface{}) bool
GetContentDocument() Document
GetContentWindow() WindowProxy
GetData() string
SetData(string)
GetDeclare() bool
SetDeclare(bool)
GetDir() string
SetDir(string)
DispatchEvent(args ...interface{}) bool
@ -54,6 +68,8 @@ type HTMLObjectElementIFace interface {
SetHeight(string)
GetHidden() bool
SetHidden(bool)
GetHspace() int
SetHspace(int)
GetId() string
SetId(string)
GetInnerText() string
@ -103,6 +119,8 @@ type HTMLObjectElementIFace interface {
SetSlot(string)
GetSpellcheck() bool
SetSpellcheck(bool)
GetStandby() string
SetStandby(string)
GetTagName() string
GetTextContent() string
SetTextContent(string)
@ -119,6 +137,8 @@ type HTMLObjectElementIFace interface {
SetUseMap(string)
GetValidationMessage() string
GetValidity() ValidityState
GetVspace() int
SetVspace(int)
WebkitMatchesSelector(args ...interface{}) bool
GetWidth() string
SetWidth(string)
@ -136,10 +156,52 @@ func JSValueToHTMLObjectElement(val js.Value) HTMLObjectElement {
return HTMLObjectElement{Value: Value{Value: val}}
}
func (v Value) AsHTMLObjectElement() HTMLObjectElement { return HTMLObjectElement{Value: v} }
func (h HTMLObjectElement) GetAlign() string {
val := h.Get("align")
return val.String()
}
func (h HTMLObjectElement) SetAlign(val string) {
h.Set("align", val)
}
func (h HTMLObjectElement) GetArchive() string {
val := h.Get("archive")
return val.String()
}
func (h HTMLObjectElement) SetArchive(val string) {
h.Set("archive", val)
}
func (h HTMLObjectElement) GetBorder() string {
val := h.Get("border")
return val.String()
}
func (h HTMLObjectElement) SetBorder(val string) {
h.Set("border", val)
}
func (h HTMLObjectElement) CheckValidity(args ...interface{}) bool {
val := h.Call("checkValidity", args...)
return val.Bool()
}
func (h HTMLObjectElement) GetCode() string {
val := h.Get("code")
return val.String()
}
func (h HTMLObjectElement) SetCode(val string) {
h.Set("code", val)
}
func (h HTMLObjectElement) GetCodeBase() string {
val := h.Get("codeBase")
return val.String()
}
func (h HTMLObjectElement) SetCodeBase(val string) {
h.Set("codeBase", val)
}
func (h HTMLObjectElement) GetCodeType() string {
val := h.Get("codeType")
return val.String()
}
func (h HTMLObjectElement) SetCodeType(val string) {
h.Set("codeType", val)
}
func (h HTMLObjectElement) GetContentDocument() Document {
val := h.Get("contentDocument")
return JSValueToDocument(val.JSValue())
@ -155,6 +217,13 @@ func (h HTMLObjectElement) GetData() string {
func (h HTMLObjectElement) SetData(val string) {
h.Set("data", val)
}
func (h HTMLObjectElement) GetDeclare() bool {
val := h.Get("declare")
return val.Bool()
}
func (h HTMLObjectElement) SetDeclare(val bool) {
h.Set("declare", val)
}
func (h HTMLObjectElement) GetForm() HTMLFormElement {
val := h.Get("form")
return JSValueToHTMLFormElement(val.JSValue())
@ -170,6 +239,13 @@ func (h HTMLObjectElement) GetHeight() string {
func (h HTMLObjectElement) SetHeight(val string) {
h.Set("height", val)
}
func (h HTMLObjectElement) GetHspace() int {
val := h.Get("hspace")
return val.Int()
}
func (h HTMLObjectElement) SetHspace(val int) {
h.Set("hspace", val)
}
func (h HTMLObjectElement) GetName() string {
val := h.Get("name")
return val.String()
@ -184,6 +260,13 @@ func (h HTMLObjectElement) ReportValidity(args ...interface{}) bool {
func (h HTMLObjectElement) SetCustomValidity(args ...interface{}) {
h.Call("setCustomValidity", args...)
}
func (h HTMLObjectElement) GetStandby() string {
val := h.Get("standby")
return val.String()
}
func (h HTMLObjectElement) SetStandby(val string) {
h.Set("standby", val)
}
func (h HTMLObjectElement) GetType() string {
val := h.Get("type")
return val.String()
@ -213,6 +296,13 @@ func (h HTMLObjectElement) GetValidity() ValidityState {
val := h.Get("validity")
return JSValueToValidityState(val.JSValue())
}
func (h HTMLObjectElement) GetVspace() int {
val := h.Get("vspace")
return val.Int()
}
func (h HTMLObjectElement) SetVspace(val int) {
h.Set("vspace", val)
}
func (h HTMLObjectElement) GetWidth() string {
val := h.Get("width")
return val.String()


+ 9
- 0
htmlolistelement.go View File

@ -22,6 +22,8 @@ type HTMLOListElementIFace interface {
Click(args ...interface{})
CloneNode(args ...interface{}) Node
Closest(args ...interface{}) Element
GetCompact() bool
SetCompact(bool)
CompareDocumentPosition(args ...interface{}) int
Contains(args ...interface{}) bool
GetDir() string
@ -118,6 +120,13 @@ func JSValueToHTMLOListElement(val js.Value) HTMLOListElement {
return HTMLOListElement{Value: Value{Value: val}}
}
func (v Value) AsHTMLOListElement() HTMLOListElement { return HTMLOListElement{Value: v} }
func (h HTMLOListElement) GetCompact() bool {
val := h.Get("compact")
return val.Bool()
}
func (h HTMLOListElement) SetCompact(val bool) {
h.Set("compact", val)
}
func (h HTMLOListElement) GetReversed() bool {
val := h.Get("reversed")
return val.Bool()


+ 9
- 0
htmlparagraphelement.go View File

@ -9,6 +9,8 @@ type HTMLParagraphElementIFace interface {
SetAccessKey(string)
GetAccessKeyLabel() string
AddEventListener(args ...interface{})
GetAlign() string
SetAlign(string)
AppendChild(args ...interface{}) Node
AttachShadow(args ...interface{}) ShadowRoot
GetAttributes() NamedNodeMap
@ -112,3 +114,10 @@ func JSValueToHTMLParagraphElement(val js.Value) HTMLParagraphElement {
return HTMLParagraphElement{Value: Value{Value: val}}
}
func (v Value) AsHTMLParagraphElement() HTMLParagraphElement { return HTMLParagraphElement{Value: v} }
func (h HTMLParagraphElement) GetAlign() string {
val := h.Get("align")
return val.String()
}
func (h HTMLParagraphElement) SetAlign(val string) {
h.Set("align", val)
}

+ 18
- 0
htmlparamelement.go View File

@ -100,8 +100,12 @@ type HTMLParamElementIFace interface {
ToggleAttribute(args ...interface{}) bool
GetTranslate() bool
SetTranslate(bool)
GetType() string
SetType(string)
GetValue() string
SetValue(string)
GetValueType() string
SetValueType(string)
WebkitMatchesSelector(args ...interface{}) bool
}
type HTMLParamElement struct {
@ -123,6 +127,13 @@ func (h HTMLParamElement) GetName() string {
func (h HTMLParamElement) SetName(val string) {
h.Set("name", val)
}
func (h HTMLParamElement) GetType() string {
val := h.Get("type")
return val.String()
}
func (h HTMLParamElement) SetType(val string) {
h.Set("type", val)
}
func (h HTMLParamElement) GetValue() string {
val := h.Get("value")
return val.String()
@ -130,3 +141,10 @@ func (h HTMLParamElement) GetValue() string {
func (h HTMLParamElement) SetValue(val string) {
h.Set("value", val)
}
func (h HTMLParamElement) GetValueType() string {
val := h.Get("valueType")
return val.String()
}
func (h HTMLParamElement) SetValueType(val string) {
h.Set("valueType", val)
}

+ 9
- 0
htmlpreelement.go View File

@ -99,6 +99,8 @@ type HTMLPreElementIFace interface {
GetTranslate() bool
SetTranslate(bool)
WebkitMatchesSelector(args ...interface{}) bool
GetWidth() int
SetWidth(int)
}
type HTMLPreElement struct {
Value
@ -112,3 +114,10 @@ func JSValueToHTMLPreElement(val js.Value) HTMLPreElement {
return HTMLPreElement{Value: Value{Value: val}}
}
func (v Value) AsHTMLPreElement() HTMLPreElement { return HTMLPreElement{Value: v} }
func (h HTMLPreElement) GetWidth() int {
val := h.Get("width")
return val.Int()
}
func (h HTMLPreElement) SetWidth(val int) {
h.Set("width", val)
}

+ 27
- 0
htmlscriptelement.go View File

@ -17,6 +17,8 @@ type HTMLScriptElementIFace interface {
GetAutocapitalize() string
SetAutocapitalize(string)
GetBaseURI() string
GetCharset() string
SetCharset(string)
GetChildNodes() NodeList
GetClassList() DOMTokenList
GetClassName() string
@ -35,6 +37,8 @@ type HTMLScriptElementIFace interface {
DispatchEvent(args ...interface{}) bool
GetDraggable() bool
SetDraggable(bool)
GetEvent() string
SetEvent(string)
GetFirstChild() Node
GetAttribute(args ...interface{}) string
GetAttributeNS(args ...interface{}) string
@ -51,6 +55,8 @@ type HTMLScriptElementIFace interface {
HasChildNodes(args ...interface{}) bool
GetHidden() bool
SetHidden(bool)
GetHtmlFor() string
SetHtmlFor(string)
GetId() string
SetId(string)
GetInnerText() string
@ -137,6 +143,13 @@ func (h HTMLScriptElement) GetAsync() bool {
func (h HTMLScriptElement) SetAsync(val bool) {
h.Set("async", val)
}
func (h HTMLScriptElement) GetCharset() string {
val := h.Get("charset")
return val.String()
}
func (h HTMLScriptElement) SetCharset(val string) {
h.Set("charset", val)
}
func (h HTMLScriptElement) GetCrossOrigin() string {
val := h.Get("crossOrigin")
return val.String()
@ -151,6 +164,20 @@ func (h HTMLScriptElement) GetDefer() bool {
func (h HTMLScriptElement) SetDefer(val bool) {
h.Set("defer", val)
}
func (h HTMLScriptElement) GetEvent() string {
val := h.Get("event")
return val.String()
}
func (h HTMLScriptElement) SetEvent(val string) {
h.Set("event", val)
}
func (h HTMLScriptElement) GetHtmlFor() string {
val := h.Get("htmlFor")
return val.String()
}
func (h HTMLScriptElement) SetHtmlFor(val string) {
h.Set("htmlFor", val)
}
func (h HTMLScriptElement) GetIntegrity() string {
val := h.Get("integrity")
return val.String()


+ 9
- 0
htmlstyleelement.go View File

@ -101,6 +101,8 @@ type HTMLStyleElementIFace interface {
ToggleAttribute(args ...interface{}) bool
GetTranslate() bool
SetTranslate(bool)
GetType() string
SetType(string)
WebkitMatchesSelector(args ...interface{}) bool
}
type HTMLStyleElement struct {
@ -126,3 +128,10 @@ func (h HTMLStyleElement) GetSheet() StyleSheet {
val := h.Get("sheet")
return JSValueToStyleSheet(val.JSValue())
}
func (h HTMLStyleElement) GetType() string {
val := h.Get("type")
return val.String()
}
func (h HTMLStyleElement) SetType(val string) {
h.Set("type", val)
}

+ 9
- 0
htmltablecaptionelement.go View File

@ -9,6 +9,8 @@ type HTMLTableCaptionElementIFace interface {
SetAccessKey(string)
GetAccessKeyLabel() string
AddEventListener(args ...interface{})
GetAlign() string
SetAlign(string)
AppendChild(args ...interface{}) Node
AttachShadow(args ...interface{}) ShadowRoot
GetAttributes() NamedNodeMap
@ -114,3 +116,10 @@ func JSValueToHTMLTableCaptionElement(val js.Value) HTMLTableCaptionElement {
func (v Value) AsHTMLTableCaptionElement() HTMLTableCaptionElement {
return HTMLTableCaptionElement{Value: v}
}
func (h HTMLTableCaptionElement) GetAlign() string {
val := h.Get("align")
return val.String()
}
func (h HTMLTableCaptionElement) SetAlign(val string) {
h.Set("align", val)
}

+ 81
- 0
htmltablecellelement.go View File

@ -11,13 +11,23 @@ type HTMLTableCellElementIFace interface {
SetAccessKey(string)
GetAccessKeyLabel() string
AddEventListener(args ...interface{})
GetAlign() string
SetAlign(string)
AppendChild(args ...interface{}) Node
AttachShadow(args ...interface{}) ShadowRoot
GetAttributes() NamedNodeMap
GetAutocapitalize() string
SetAutocapitalize(string)
GetAxis() string
SetAxis(string)
GetBaseURI() string
GetBgColor() string
SetBgColor(string)
GetCellIndex() int
GetCh() string
SetCh(string)
GetChOff() string
SetChOff(string)
GetChildNodes() NodeList
GetClassList() DOMTokenList
GetClassName() string
@ -50,6 +60,8 @@ type HTMLTableCellElementIFace interface {
HasChildNodes(args ...interface{}) bool
GetHeaders() string
SetHeaders(string)
GetHeight() string
SetHeight(string)
GetHidden() bool
SetHidden(bool)
GetId() string
@ -72,6 +84,8 @@ type HTMLTableCellElementIFace interface {
Matches(args ...interface{}) bool
GetNamespaceURI() string
GetNextSibling() Node
GetNoWrap() bool
SetNoWrap(bool)
GetNodeName() string
GetNodeType() int
GetNodeValue() string
@ -109,7 +123,11 @@ type HTMLTableCellElementIFace interface {
ToggleAttribute(args ...interface{}) bool
GetTranslate() bool
SetTranslate(bool)
GetVAlign() string
SetVAlign(string)
WebkitMatchesSelector(args ...interface{}) bool
GetWidth() string
SetWidth(string)
}
type HTMLTableCellElement struct {
Value
@ -130,10 +148,45 @@ func (h HTMLTableCellElement) GetAbbr() string {
func (h HTMLTableCellElement) SetAbbr(val string) {
h.Set("abbr", val)
}
func (h HTMLTableCellElement) GetAlign() string {
val := h.Get("align")
return val.String()
}
func (h HTMLTableCellElement) SetAlign(val string) {
h.Set("align", val)
}
func (h HTMLTableCellElement) GetAxis() string {
val := h.Get("axis")
return val.String()
}
func (h HTMLTableCellElement) SetAxis(val string) {
h.Set("axis", val)
}
func (h HTMLTableCellElement) GetBgColor() string {
val := h.Get("bgColor")
return val.String()
}
func (h HTMLTableCellElement) SetBgColor(val string) {
h.Set("bgColor", val)
}
func (h HTMLTableCellElement) GetCellIndex() int {
val := h.Get("cellIndex")
return val.Int()
}
func (h HTMLTableCellElement) GetCh() string {
val := h.Get("ch")
return val.String()
}
func (h HTMLTableCellElement) SetCh(val string) {
h.Set("ch", val)
}
func (h HTMLTableCellElement) GetChOff() string {
val := h.Get("chOff")
return val.String()
}
func (h HTMLTableCellElement) SetChOff(val string) {
h.Set("chOff", val)
}
func (h HTMLTableCellElement) GetColSpan() int {
val := h.Get("colSpan")
return val.Int()
@ -148,6 +201,20 @@ func (h HTMLTableCellElement) GetHeaders() string {
func (h HTMLTableCellElement) SetHeaders(val string) {
h.Set("headers", val)
}
func (h HTMLTableCellElement) GetHeight() string {
val := h.Get("height")
return val.String()
}
func (h HTMLTableCellElement) SetHeight(val string) {
h.Set("height", val)
}
func (h HTMLTableCellElement) GetNoWrap() bool {
val := h.Get("noWrap")
return val.Bool()
}
func (h HTMLTableCellElement) SetNoWrap(val bool) {
h.Set("noWrap", val)
}
func (h HTMLTableCellElement) GetRowSpan() int {
val := h.Get("rowSpan")
return val.Int()
@ -162,3 +229,17 @@ func (h HTMLTableCellElement) GetScope() string {
func (h HTMLTableCellElement) SetScope(val string) {
h.Set("scope", val)
}
func (h HTMLTableCellElement) GetVAlign() string {
val := h.Get("vAlign")
return val.String()
}
func (h HTMLTableCellElement) SetVAlign(val string) {
h.Set("vAlign", val)
}
func (h HTMLTableCellElement) GetWidth() string {
val := h.Get("width")
return val.String()
}
func (h HTMLTableCellElement) SetWidth(val string) {
h.Set("width", val)
}

+ 45
- 0
htmltablecolelement.go View File

@ -9,12 +9,18 @@ type HTMLTableColElementIFace interface {
SetAccessKey(string)
GetAccessKeyLabel() string
AddEventListener(args ...interface{})
GetAlign() string
SetAlign(string)
AppendChild(args ...interface{}) Node
AttachShadow(args ...interface{}) ShadowRoot
GetAttributes() NamedNodeMap
GetAutocapitalize() string
SetAutocapitalize(string)
GetBaseURI() string
GetCh() string
SetCh(string)
GetChOff() string
SetChOff(string)
GetChildNodes() NodeList
GetClassList() DOMTokenList
GetClassName() string
@ -100,7 +106,11 @@ type HTMLTableColElementIFace interface {
ToggleAttribute(args ...interface{}) bool
GetTranslate() bool
SetTranslate(bool)
GetVAlign() string
SetVAlign(string)
WebkitMatchesSelector(args ...interface{}) bool
GetWidth() string
SetWidth(string)
}
type HTMLTableColElement struct {
Value
@ -114,6 +124,27 @@ func JSValueToHTMLTableColElement(val js.Value) HTMLTableColElement {
return HTMLTableColElement{Value: Value{Value: val}}
}
func (v Value) AsHTMLTableColElement() HTMLTableColElement { return HTMLTableColElement{Value: v} }
func (h HTMLTableColElement) GetAlign() string {
val := h.Get("align")
return val.String()
}
func (h HTMLTableColElement) SetAlign(val string) {
h.Set("align", val)
}
func (h HTMLTableColElement) GetCh() string {
val := h.Get("ch")
return val.String()
}
func (h HTMLTableColElement) SetCh(val string) {
h.Set("ch", val)
}
func (h HTMLTableColElement) GetChOff() string {
val := h.Get("chOff")
return val.String()
}
func (h HTMLTableColElement) SetChOff(val string) {
h.Set("chOff", val)
}
func (h HTMLTableColElement) GetSpan() int {
val := h.Get("span")
return val.Int()
@ -121,3 +152,17 @@ func (h HTMLTableColElement) GetSpan() int {
func (h HTMLTableColElement) SetSpan(val int) {
h.Set("span", val)
}
func (h HTMLTableColElement) GetVAlign() string {
val := h.Get("vAlign")
return val.String()
}
func (h HTMLTableColElement) SetVAlign(val string) {
h.Set("vAlign", val)
}
func (h HTMLTableColElement) GetWidth() string {
val := h.Get("width")
return val.String()
}
func (h HTMLTableColElement) SetWidth(val string) {
h.Set("width", val)
}

+ 81
- 0
htmltableelement.go View File

@ -9,14 +9,24 @@ type HTMLTableElementIFace interface {
SetAccessKey(string)
GetAccessKeyLabel() string
AddEventListener(args ...interface{})
GetAlign() string
SetAlign(string)
AppendChild(args ...interface{}) Node
AttachShadow(args ...interface{}) ShadowRoot
GetAttributes() NamedNodeMap
GetAutocapitalize() string
SetAutocapitalize(string)
GetBaseURI() string
GetBgColor() string
SetBgColor(string)
GetBorder() string
SetBorder(string)
GetCaption() HTMLTableCaptionElement
SetCaption(HTMLTableCaptionElement)
GetCellPadding() string
SetCellPadding(string)
GetCellSpacing() string
SetCellSpacing(string)
GetChildNodes() NodeList
GetClassList() DOMTokenList
GetClassName() string
@ -40,6 +50,8 @@ type HTMLTableElementIFace interface {
GetDraggable() bool
SetDraggable(bool)
GetFirstChild() Node
GetFrame() string
SetFrame(string)
GetAttribute(args ...interface{}) string
GetAttributeNS(args ...interface{}) string
GetAttributeNames(args ...interface{})
@ -93,6 +105,8 @@ type HTMLTableElementIFace interface {
RemoveEventListener(args ...interface{})
ReplaceChild(args ...interface{}) Node
GetRows() HTMLCollection
GetRules() string
SetRules(string)
SetAttribute(args ...interface{})
SetAttributeNS(args ...interface{})
SetAttributeNode(args ...interface{}) Attr
@ -102,6 +116,8 @@ type HTMLTableElementIFace interface {
SetSlot(string)
GetSpellcheck() bool
SetSpellcheck(bool)
GetSummary() string
SetSummary(string)
GetTBodies() HTMLCollection
GetTFoot() HTMLTableSectionElement
SetTFoot(HTMLTableSectionElement)
@ -116,6 +132,8 @@ type HTMLTableElementIFace interface {
GetTranslate() bool
SetTranslate(bool)
WebkitMatchesSelector(args ...interface{}) bool
GetWidth() string
SetWidth(string)
}
type HTMLTableElement struct {
Value
@ -129,6 +147,27 @@ func JSValueToHTMLTableElement(val js.Value) HTMLTableElement {
return HTMLTableElement{Value: Value{Value: val}}
}
func (v Value) AsHTMLTableElement() HTMLTableElement { return HTMLTableElement{Value: v} }
func (h HTMLTableElement) GetAlign() string {
val := h.Get("align")
return val.String()
}
func (h HTMLTableElement) SetAlign(val string) {
h.Set("align", val)
}
func (h HTMLTableElement) GetBgColor() string {
val := h.Get("bgColor")
return val.String()
}
func (h HTMLTableElement) SetBgColor(val string) {
h.Set("bgColor", val)
}
func (h HTMLTableElement) GetBorder() string {
val := h.Get("border")
return val.String()
}
func (h HTMLTableElement) SetBorder(val string) {
h.Set("border", val)
}
func (h HTMLTableElement) GetCaption() HTMLTableCaptionElement {
val := h.Get("caption")
return JSValueToHTMLTableCaptionElement(val.JSValue())
@ -136,6 +175,20 @@ func (h HTMLTableElement) GetCaption() HTMLTableCaptionElement {
func (h HTMLTableElement) SetCaption(val HTMLTableCaptionElement) {
h.Set("caption", val)
}
func (h HTMLTableElement) GetCellPadding() string {
val := h.Get("cellPadding")
return val.String()
}
func (h HTMLTableElement) SetCellPadding(val string) {
h.Set("cellPadding", val)
}
func (h HTMLTableElement) GetCellSpacing() string {
val := h.Get("cellSpacing")
return val.String()
}
func (h HTMLTableElement) SetCellSpacing(val string) {
h.Set("cellSpacing", val)
}
func (h HTMLTableElement) CreateCaption(args ...interface{}) HTMLTableCaptionElement {
val := h.Call("createCaption", args...)
return JSValueToHTMLTableCaptionElement(val.JSValue())
@ -164,6 +217,13 @@ func (h HTMLTableElement) DeleteTFoot(args ...interface{}) {
func (h HTMLTableElement) DeleteTHead(args ...interface{}) {
h.Call("deleteTHead", args...)
}
func (h HTMLTableElement) GetFrame() string {
val := h.Get("frame")
return val.String()
}
func (h HTMLTableElement) SetFrame(val string) {
h.Set("frame", val)
}
func (h HTMLTableElement) InsertRow(args ...interface{}) HTMLTableRowElement {
val := h.Call("insertRow", args...)
return JSValueToHTMLTableRowElement(val.JSValue())
@ -172,6 +232,20 @@ func (h HTMLTableElement) GetRows() HTMLCollection {
val := h.Get("rows")
return JSValueToHTMLCollection(val.JSValue())
}
func (h HTMLTableElement) GetRules() string {
val := h.Get("rules")
return val.String()
}
func (h HTMLTableElement) SetRules(val string) {
h.Set("rules", val)
}
func (h HTMLTableElement) GetSummary() string {
val := h.Get("summary")
return val.String()
}
func (h HTMLTableElement) SetSummary(val string) {
h.Set("summary", val)
}
func (h HTMLTableElement) GetTBodies() HTMLCollection {
val := h.Get("tBodies")
return JSValueToHTMLCollection(val.JSValue())
@ -190,3 +264,10 @@ func (h HTMLTableElement) GetTHead() HTMLTableSectionElement {
func (h HTMLTableElement) SetTHead(val HTMLTableSectionElement) {
h.Set("tHead", val)
}
func (h HTMLTableElement) GetWidth() string {
val := h.Get("width")
return val.String()
}
func (h HTMLTableElement) SetWidth(val string) {
h.Set("width", val)
}

+ 45
- 0
htmltablerowelement.go View File

@ -9,13 +9,21 @@ type HTMLTableRowElementIFace interface {
SetAccessKey(string)
GetAccessKeyLabel() string
AddEventListener(args ...interface{})
GetAlign() string
SetAlign(string)
AppendChild(args ...interface{}) Node
AttachShadow(args ...interface{}) ShadowRoot
GetAttributes() NamedNodeMap
GetAutocapitalize() string
SetAutocapitalize(string)
GetBaseURI() string
GetBgColor() string
SetBgColor(string)
GetCells() HTMLCollection
GetCh() string
SetCh(string)
GetChOff() string
SetChOff(string)
GetChildNodes() NodeList
GetClassList() DOMTokenList
GetClassName() string
@ -103,6 +111,8 @@ type HTMLTableRowElementIFace interface {
ToggleAttribute(args ...interface{}) bool
GetTranslate() bool
SetTranslate(bool)
GetVAlign() string
SetVAlign(string)
WebkitMatchesSelector(args ...interface{}) bool
}
type HTMLTableRowElement struct {
@ -117,10 +127,38 @@ func JSValueToHTMLTableRowElement(val js.Value) HTMLTableRowElement {
return HTMLTableRowElement{Value: Value{Value: val}}
}
func (v Value) AsHTMLTableRowElement() HTMLTableRowElement { return HTMLTableRowElement{Value: v} }
func (h HTMLTableRowElement) GetAlign() string {
val := h.Get("align")
return val.String()
}
func (h HTMLTableRowElement) SetAlign(val string) {
h.Set("align", val)
}
func (h HTMLTableRowElement) GetBgColor() string {
val := h.Get("bgColor")
return val.String()
}
func (h HTMLTableRowElement) SetBgColor(val string) {
h.Set("bgColor", val)
}
func (h HTMLTableRowElement) GetCells() HTMLCollection {
val := h.Get("cells")
return JSValueToHTMLCollection(val.JSValue())
}
func (h HTMLTableRowElement) GetCh() string {
val := h.Get("ch")
return val.String()
}
func (h HTMLTableRowElement) SetCh(val string) {
h.Set("ch", val)
}
func (h HTMLTableRowElement) GetChOff() string {
val := h.Get("chOff")
return val.String()
}
func (h HTMLTableRowElement) SetChOff(val string) {
h.Set("chOff", val)
}
func (h HTMLTableRowElement) DeleteCell(args ...interface{}) {
h.Call("deleteCell", args...)
}
@ -136,3 +174,10 @@ func (h HTMLTableRowElement) GetSectionRowIndex() int {
val := h.Get("sectionRowIndex")
return val.Int()
}
func (h HTMLTableRowElement) GetVAlign() string {
val := h.Get("vAlign")
return val.String()
}
func (h HTMLTableRowElement) SetVAlign(val string) {
h.Set("vAlign", val)
}

+ 36
- 0
htmltablesectionelement.go View File

@ -9,12 +9,18 @@ type HTMLTableSectionElementIFace interface {
SetAccessKey(string)
GetAccessKeyLabel() string
AddEventListener(args ...interface{})
GetAlign() string
SetAlign(string)
AppendChild(args ...interface{}) Node
AttachShadow(args ...interface{}) ShadowRoot
GetAttributes() NamedNodeMap
GetAutocapitalize() string
SetAutocapitalize(string)
GetBaseURI() string
GetCh() string
SetCh(string)
GetChOff() string
SetChOff(string)
GetChildNodes() NodeList
GetClassList() DOMTokenList
GetClassName() string
@ -101,6 +107,8 @@ type HTMLTableSectionElementIFace interface {
ToggleAttribute(args ...interface{}) bool
GetTranslate() bool
SetTranslate(bool)
GetVAlign() string
SetVAlign(string)
WebkitMatchesSelector(args ...interface{}) bool
}
type HTMLTableSectionElement struct {
@ -117,6 +125,27 @@ func JSValueToHTMLTableSectionElement(val js.Value) HTMLTableSectionElement {
func (v Value) AsHTMLTableSectionElement() HTMLTableSectionElement {
return HTMLTableSectionElement{Value: v}
}
func (h HTMLTableSectionElement) GetAlign() string {
val := h.Get("align")
return val.String()
}
func (h HTMLTableSectionElement) SetAlign(val string) {
h.Set("align", val)
}
func (h HTMLTableSectionElement) GetCh() string {
val := h.Get("ch")
return val.String()
}
func (h HTMLTableSectionElement) SetCh(val string) {
h.Set("ch", val)
}
func (h HTMLTableSectionElement) GetChOff() string {
val := h.Get("chOff")
return val.String()
}
func (h HTMLTableSectionElement) SetChOff(val string) {
h.Set("chOff", val)
}
func (h HTMLTableSectionElement) DeleteRow(args ...interface{}) {
h.Call("deleteRow", args...)
}
@ -128,3 +157,10 @@ func (h HTMLTableSectionElement) GetRows() HTMLCollection {
val := h.Get("rows")
return JSValueToHTMLCollection(val.JSValue())
}
func (h HTMLTableSectionElement) GetVAlign() string {
val := h.Get("vAlign")
return val.String()
}
func (h HTMLTableSectionElement) SetVAlign(val string) {
h.Set("vAlign", val)
}

+ 18
- 0
htmlulistelement.go View File

@ -22,6 +22,8 @@ type HTMLUListElementIFace interface {
Click(args ...interface{})
CloneNode(args ...interface{}) Node
Closest(args ...interface{}) Element
GetCompact() bool
SetCompact(bool)
CompareDocumentPosition(args ...interface{}) int
Contains(args ...interface{}) bool
GetDir() string
@ -98,6 +100,8 @@ type HTMLUListElementIFace interface {
ToggleAttribute(args ...interface{}) bool
GetTranslate() bool
SetTranslate(bool)
GetType() string
SetType(string)
WebkitMatchesSelector(args ...interface{}) bool
}
type HTMLUListElement struct {
@ -112,3 +116,17 @@ func JSValueToHTMLUListElement(val js.Value) HTMLUListElement {
return HTMLUListElement{Value: Value{Value: val}}
}
func (v Value) AsHTMLUListElement() HTMLUListElement { return HTMLUListElement{Value: v} }
func (h HTMLUListElement) GetCompact() bool {
val := h.Get("compact")
return val.Bool()
}
func (h HTMLUListElement) SetCompact(val bool) {
h.Set("compact", val)
}
func (h HTMLUListElement) GetType() string {
val := h.Get("type")
return val.String()
}
func (h HTMLUListElement) SetType(val string) {
h.Set("type", val)
}

+ 5
- 0
range.go View File

@ -12,6 +12,7 @@ type RangeIFace interface {
GetCommonAncestorContainer() Node
CompareBoundaryPoints(args ...interface{}) int
ComparePoint(args ...interface{}) int
CreateContextualFragment(args ...interface{}) DocumentFragment
DeleteContents(args ...interface{})
Detach(args ...interface{})
GetEndContainer() Node
@ -62,6 +63,10 @@ func (r Range) ComparePoint(args ...interface{}) int {
val := r.Call("comparePoint", args...)
return val.Int()
}
func (r Range) CreateContextualFragment(args ...interface{}) DocumentFragment {
val := r.Call("createContextualFragment", args...)
return JSValueToDocumentFragment(val.JSValue())
}
func (r Range) DeleteContents(args ...interface{}) {
r.Call("deleteContents", args...)
}


+ 19
- 0
supportedtype.go View File

@ -0,0 +1,19 @@
// Code generated DO NOT EDIT
// supportedtype.go
package dom
import "syscall/js"
type SupportedType string
const (
SupportedTypeTextHtml SupportedType = "text/html"
SupportedTypeTextXml SupportedType = "text/xml"
SupportedTypeApplicationXml SupportedType = "application/xml"
SupportedTypeApplicationXhtmlXml SupportedType = "application/xhtml+xml"
SupportedTypeImageSvgXml SupportedType = "image/svg+xml"
)
func JSValueToSupportedType(val js.Value) SupportedType {
return SupportedType(val.String())
}

+ 9
- 0
url.go View File

@ -5,6 +5,7 @@ package dom
import "syscall/js"
type URLIFace interface {
CreateObjectURL(args ...interface{}) string
GetHash() string
SetHash(string)
GetHost() string
@ -22,6 +23,7 @@ type URLIFace interface {
SetPort(string)
GetProtocol() string
SetProtocol(string)
RevokeObjectURL(args ...interface{})
GetSearch() string
SetSearch(string)
GetSearchParams() URLSearchParams
@ -35,6 +37,10 @@ type URL struct {
func JSValueToURL(val js.Value) URL { return URL{Value: Value{Value: val}} }
func (v Value) AsURL() URL { return URL{Value: v} }
func (u URL) CreateObjectURL(args ...interface{}) string {
val := u.Call("createObjectURL", args...)
return val.String()
}
func (u URL) GetHash() string {
val := u.Get("hash")
return val.String()
@ -95,6 +101,9 @@ func (u URL) GetProtocol() string {
func (u URL) SetProtocol(val string) {
u.Set("protocol", val)
}
func (u URL) RevokeObjectURL(args ...interface{}) {
u.Call("revokeObjectURL", args...)
}
func (u URL) GetSearch() string {
val := u.Get("search")
return val.String()


+ 23
- 0
window.go View File

@ -13,6 +13,7 @@ type WindowIFace interface {
Blur(args ...interface{})
Btoa(args ...interface{}) string
CancelAnimationFrame(args ...interface{})
CaptureEvents(args ...interface{})
ClearInterval(args ...interface{})
ClearTimeout(args ...interface{})
Close(args ...interface{})
@ -23,9 +24,12 @@ type WindowIFace interface {
GetCustomElements() CustomElementRegistry
DispatchEvent(args ...interface{}) bool
GetDocument() Document
GetEvent() Value
GetExternal() External
Focus(args ...interface{})
GetFrameElement() Element
GetFrames() WindowProxy
GetComputedStyle(args ...interface{}) CSSStyleDeclaration
GetHistory() History
GetLength() int
GetLocalStorage() Storage
@ -201,6 +205,7 @@ type WindowIFace interface {
Print(args ...interface{})
Prompt(args ...interface{}) string
QueueMicrotask(args ...interface{})
ReleaseEvents(args ...interface{})
RemoveEventListener(args ...interface{})
RequestAnimationFrame(args ...interface{}) int
GetScrollbars() BarProp
@ -247,6 +252,9 @@ func (w Window) Btoa(args ...interface{}) string {
func (w Window) CancelAnimationFrame(args ...interface{}) {
w.Call("cancelAnimationFrame", args...)
}
func (w Window) CaptureEvents(args ...interface{}) {
w.Call("captureEvents", args...)
}
func (w Window) ClearInterval(args ...interface{}) {
w.Call("clearInterval", args...)
}
@ -278,6 +286,14 @@ func (w Window) GetDocument() Document {
val := w.Get("document")
return JSValueToDocument(val.JSValue())
}
func (w Window) GetEvent() Value {
val := w.Get("event")
return val
}
func (w Window) GetExternal() External {
val := w.Get("external")
return JSValueToExternal(val.JSValue())
}
func (w Window) Focus(args ...interface{}) {
w.Call("focus", args...)
}
@ -289,6 +305,10 @@ func (w Window) GetFrames() WindowProxy {
val := w.Get("frames")
return JSValueToWindowProxy(val.JSValue())
}
func (w Window) GetComputedStyle(args ...interface{}) CSSStyleDeclaration {
val := w.Call("getComputedStyle", args...)
return JSValueToCSSStyleDeclaration(val.JSValue())
}
func (w Window) GetHistory() History {
val := w.Get("history")
return JSValueToHistory(val.JSValue())
@ -906,6 +926,9 @@ func (w Window) Prompt(args ...interface{}) string {
func (w Window) QueueMicrotask(args ...interface{}) {
w.Call("queueMicrotask", args...)
}
func (w Window) ReleaseEvents(args ...interface{}) {
w.Call("releaseEvents", args...)
}
func (w Window) RequestAnimationFrame(args ...interface{}) int {
val := w.Call("requestAnimationFrame", args...)
return val.Int()


+ 16
- 0
window/window.go View File

@ -34,6 +34,9 @@ func Btoa(args ...interface{}) string {
func CancelAnimationFrame(args ...interface{}) {
value.Call("cancelAnimationFrame", args...)
}
func CaptureEvents(args ...interface{}) {
value.Call("captureEvents", args...)
}
func ClearInterval(args ...interface{}) {
value.Call("clearInterval", args...)
}
@ -66,6 +69,12 @@ func DispatchEvent(args ...interface{}) bool {
func GetDocument() dom.Document {
return value.GetDocument()
}
func GetEvent() dom.Value {
return value.GetEvent()
}
func GetExternal() dom.External {
return value.GetExternal()
}
func Focus(args ...interface{}) {
value.Call("focus", args...)
}
@ -75,6 +84,10 @@ func GetFrameElement() dom.Element {
func GetFrames() dom.WindowProxy {
return value.GetFrames()
}
func GetComputedStyle(args ...interface{}) dom.CSSStyleDeclaration {
val := value.Call("getComputedStyle", args...)
return dom.JSValueToCSSStyleDeclaration(val.JSValue())
}
func GetHistory() dom.History {
return value.GetHistory()
}
@ -442,6 +455,9 @@ func Prompt(args ...interface{}) string {
func QueueMicrotask(args ...interface{}) {
value.Call("queueMicrotask", args...)
}
func ReleaseEvents(args ...interface{}) {
value.Call("releaseEvents", args...)
}
func RemoveEventListener(args ...interface{}) {
value.Call("removeEventListener", args...)
}


+ 21
- 0
xmlserializer.go View File

@ -0,0 +1,21 @@
// Code generated DO NOT EDIT
// xmlserializer.go
package dom
import "syscall/js"
type XMLSerializerIFace interface {
SerializeToString(args ...interface{}) string
}
type XMLSerializer struct {
Value
}
func JSValueToXMLSerializer(val js.Value) XMLSerializer {
return XMLSerializer{Value: Value{Value: val}}
}
func (v Value) AsXMLSerializer() XMLSerializer { return XMLSerializer{Value: v} }
func (x XMLSerializer) SerializeToString(args ...interface{}) string {
val := x.Call("serializeToString", args...)
return val.String()
}

Loading…
Cancel
Save