github.com/primecitizens/pcz/std@v0.2.1/plat/js/web/apis02_js_wasm.go (about)

     1  // SPDX-License-Identifier: Apache-2.0
     2  // Copyright 2023 The Prime Citizens
     3  
     4  package web
     5  
     6  import (
     7  	"github.com/primecitizens/pcz/std/core/abi"
     8  	"github.com/primecitizens/pcz/std/ffi/js"
     9  	"github.com/primecitizens/pcz/std/plat/js/web/bindings"
    10  )
    11  
    12  type HTMLSlotElement struct {
    13  	HTMLElement
    14  }
    15  
    16  func (this HTMLSlotElement) Once() HTMLSlotElement {
    17  	this.ref.Once()
    18  	return this
    19  }
    20  
    21  func (this HTMLSlotElement) Ref() js.Ref {
    22  	return this.HTMLElement.Ref()
    23  }
    24  
    25  func (this HTMLSlotElement) FromRef(ref js.Ref) HTMLSlotElement {
    26  	this.HTMLElement = this.HTMLElement.FromRef(ref)
    27  	return this
    28  }
    29  
    30  func (this HTMLSlotElement) Free() {
    31  	this.ref.Free()
    32  }
    33  
    34  // Name returns the value of property "HTMLSlotElement.name".
    35  //
    36  // It returns ok=false if there is no such property.
    37  func (this HTMLSlotElement) Name() (ret js.String, ok bool) {
    38  	ok = js.True == bindings.GetHTMLSlotElementName(
    39  		this.ref, js.Pointer(&ret),
    40  	)
    41  	return
    42  }
    43  
    44  // SetName sets the value of property "HTMLSlotElement.name" to val.
    45  //
    46  // It returns false if the property cannot be set.
    47  func (this HTMLSlotElement) SetName(val js.String) bool {
    48  	return js.True == bindings.SetHTMLSlotElementName(
    49  		this.ref,
    50  		val.Ref(),
    51  	)
    52  }
    53  
    54  // HasFuncAssignedNodes returns true if the method "HTMLSlotElement.assignedNodes" exists.
    55  func (this HTMLSlotElement) HasFuncAssignedNodes() bool {
    56  	return js.True == bindings.HasFuncHTMLSlotElementAssignedNodes(
    57  		this.ref,
    58  	)
    59  }
    60  
    61  // FuncAssignedNodes returns the method "HTMLSlotElement.assignedNodes".
    62  func (this HTMLSlotElement) FuncAssignedNodes() (fn js.Func[func(options AssignedNodesOptions) js.Array[Node]]) {
    63  	bindings.FuncHTMLSlotElementAssignedNodes(
    64  		this.ref, js.Pointer(&fn),
    65  	)
    66  	return
    67  }
    68  
    69  // AssignedNodes calls the method "HTMLSlotElement.assignedNodes".
    70  func (this HTMLSlotElement) AssignedNodes(options AssignedNodesOptions) (ret js.Array[Node]) {
    71  	bindings.CallHTMLSlotElementAssignedNodes(
    72  		this.ref, js.Pointer(&ret),
    73  		js.Pointer(&options),
    74  	)
    75  
    76  	return
    77  }
    78  
    79  // TryAssignedNodes calls the method "HTMLSlotElement.assignedNodes"
    80  // in a try/catch block and returns (_, err, ok = false) when it went through
    81  // the catch clause.
    82  func (this HTMLSlotElement) TryAssignedNodes(options AssignedNodesOptions) (ret js.Array[Node], exception js.Any, ok bool) {
    83  	ok = js.True == bindings.TryHTMLSlotElementAssignedNodes(
    84  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
    85  		js.Pointer(&options),
    86  	)
    87  
    88  	return
    89  }
    90  
    91  // HasFuncAssignedNodes1 returns true if the method "HTMLSlotElement.assignedNodes" exists.
    92  func (this HTMLSlotElement) HasFuncAssignedNodes1() bool {
    93  	return js.True == bindings.HasFuncHTMLSlotElementAssignedNodes1(
    94  		this.ref,
    95  	)
    96  }
    97  
    98  // FuncAssignedNodes1 returns the method "HTMLSlotElement.assignedNodes".
    99  func (this HTMLSlotElement) FuncAssignedNodes1() (fn js.Func[func() js.Array[Node]]) {
   100  	bindings.FuncHTMLSlotElementAssignedNodes1(
   101  		this.ref, js.Pointer(&fn),
   102  	)
   103  	return
   104  }
   105  
   106  // AssignedNodes1 calls the method "HTMLSlotElement.assignedNodes".
   107  func (this HTMLSlotElement) AssignedNodes1() (ret js.Array[Node]) {
   108  	bindings.CallHTMLSlotElementAssignedNodes1(
   109  		this.ref, js.Pointer(&ret),
   110  	)
   111  
   112  	return
   113  }
   114  
   115  // TryAssignedNodes1 calls the method "HTMLSlotElement.assignedNodes"
   116  // in a try/catch block and returns (_, err, ok = false) when it went through
   117  // the catch clause.
   118  func (this HTMLSlotElement) TryAssignedNodes1() (ret js.Array[Node], exception js.Any, ok bool) {
   119  	ok = js.True == bindings.TryHTMLSlotElementAssignedNodes1(
   120  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
   121  	)
   122  
   123  	return
   124  }
   125  
   126  // HasFuncAssignedElements returns true if the method "HTMLSlotElement.assignedElements" exists.
   127  func (this HTMLSlotElement) HasFuncAssignedElements() bool {
   128  	return js.True == bindings.HasFuncHTMLSlotElementAssignedElements(
   129  		this.ref,
   130  	)
   131  }
   132  
   133  // FuncAssignedElements returns the method "HTMLSlotElement.assignedElements".
   134  func (this HTMLSlotElement) FuncAssignedElements() (fn js.Func[func(options AssignedNodesOptions) js.Array[Element]]) {
   135  	bindings.FuncHTMLSlotElementAssignedElements(
   136  		this.ref, js.Pointer(&fn),
   137  	)
   138  	return
   139  }
   140  
   141  // AssignedElements calls the method "HTMLSlotElement.assignedElements".
   142  func (this HTMLSlotElement) AssignedElements(options AssignedNodesOptions) (ret js.Array[Element]) {
   143  	bindings.CallHTMLSlotElementAssignedElements(
   144  		this.ref, js.Pointer(&ret),
   145  		js.Pointer(&options),
   146  	)
   147  
   148  	return
   149  }
   150  
   151  // TryAssignedElements calls the method "HTMLSlotElement.assignedElements"
   152  // in a try/catch block and returns (_, err, ok = false) when it went through
   153  // the catch clause.
   154  func (this HTMLSlotElement) TryAssignedElements(options AssignedNodesOptions) (ret js.Array[Element], exception js.Any, ok bool) {
   155  	ok = js.True == bindings.TryHTMLSlotElementAssignedElements(
   156  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
   157  		js.Pointer(&options),
   158  	)
   159  
   160  	return
   161  }
   162  
   163  // HasFuncAssignedElements1 returns true if the method "HTMLSlotElement.assignedElements" exists.
   164  func (this HTMLSlotElement) HasFuncAssignedElements1() bool {
   165  	return js.True == bindings.HasFuncHTMLSlotElementAssignedElements1(
   166  		this.ref,
   167  	)
   168  }
   169  
   170  // FuncAssignedElements1 returns the method "HTMLSlotElement.assignedElements".
   171  func (this HTMLSlotElement) FuncAssignedElements1() (fn js.Func[func() js.Array[Element]]) {
   172  	bindings.FuncHTMLSlotElementAssignedElements1(
   173  		this.ref, js.Pointer(&fn),
   174  	)
   175  	return
   176  }
   177  
   178  // AssignedElements1 calls the method "HTMLSlotElement.assignedElements".
   179  func (this HTMLSlotElement) AssignedElements1() (ret js.Array[Element]) {
   180  	bindings.CallHTMLSlotElementAssignedElements1(
   181  		this.ref, js.Pointer(&ret),
   182  	)
   183  
   184  	return
   185  }
   186  
   187  // TryAssignedElements1 calls the method "HTMLSlotElement.assignedElements"
   188  // in a try/catch block and returns (_, err, ok = false) when it went through
   189  // the catch clause.
   190  func (this HTMLSlotElement) TryAssignedElements1() (ret js.Array[Element], exception js.Any, ok bool) {
   191  	ok = js.True == bindings.TryHTMLSlotElementAssignedElements1(
   192  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
   193  	)
   194  
   195  	return
   196  }
   197  
   198  // HasFuncAssign returns true if the method "HTMLSlotElement.assign" exists.
   199  func (this HTMLSlotElement) HasFuncAssign() bool {
   200  	return js.True == bindings.HasFuncHTMLSlotElementAssign(
   201  		this.ref,
   202  	)
   203  }
   204  
   205  // FuncAssign returns the method "HTMLSlotElement.assign".
   206  func (this HTMLSlotElement) FuncAssign() (fn js.Func[func(nodes ...OneOf_Element_Text)]) {
   207  	bindings.FuncHTMLSlotElementAssign(
   208  		this.ref, js.Pointer(&fn),
   209  	)
   210  	return
   211  }
   212  
   213  // Assign calls the method "HTMLSlotElement.assign".
   214  func (this HTMLSlotElement) Assign(nodes ...OneOf_Element_Text) (ret js.Void) {
   215  	bindings.CallHTMLSlotElementAssign(
   216  		this.ref, js.Pointer(&ret),
   217  		js.SliceData(nodes),
   218  		js.SizeU(len(nodes)),
   219  	)
   220  
   221  	return
   222  }
   223  
   224  // TryAssign calls the method "HTMLSlotElement.assign"
   225  // in a try/catch block and returns (_, err, ok = false) when it went through
   226  // the catch clause.
   227  func (this HTMLSlotElement) TryAssign(nodes ...OneOf_Element_Text) (ret js.Void, exception js.Any, ok bool) {
   228  	ok = js.True == bindings.TryHTMLSlotElementAssign(
   229  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
   230  		js.SliceData(nodes),
   231  		js.SizeU(len(nodes)),
   232  	)
   233  
   234  	return
   235  }
   236  
   237  func NewText(data js.String) (ret Text) {
   238  	ret.ref = bindings.NewTextByText(
   239  		data.Ref())
   240  	return
   241  }
   242  
   243  func NewTextByText1() (ret Text) {
   244  	ret.ref = bindings.NewTextByText1()
   245  	return
   246  }
   247  
   248  type Text struct {
   249  	CharacterData
   250  }
   251  
   252  func (this Text) Once() Text {
   253  	this.ref.Once()
   254  	return this
   255  }
   256  
   257  func (this Text) Ref() js.Ref {
   258  	return this.CharacterData.Ref()
   259  }
   260  
   261  func (this Text) FromRef(ref js.Ref) Text {
   262  	this.CharacterData = this.CharacterData.FromRef(ref)
   263  	return this
   264  }
   265  
   266  func (this Text) Free() {
   267  	this.ref.Free()
   268  }
   269  
   270  // WholeText returns the value of property "Text.wholeText".
   271  //
   272  // It returns ok=false if there is no such property.
   273  func (this Text) WholeText() (ret js.String, ok bool) {
   274  	ok = js.True == bindings.GetTextWholeText(
   275  		this.ref, js.Pointer(&ret),
   276  	)
   277  	return
   278  }
   279  
   280  // AssignedSlot returns the value of property "Text.assignedSlot".
   281  //
   282  // It returns ok=false if there is no such property.
   283  func (this Text) AssignedSlot() (ret HTMLSlotElement, ok bool) {
   284  	ok = js.True == bindings.GetTextAssignedSlot(
   285  		this.ref, js.Pointer(&ret),
   286  	)
   287  	return
   288  }
   289  
   290  // HasFuncSplitText returns true if the method "Text.splitText" exists.
   291  func (this Text) HasFuncSplitText() bool {
   292  	return js.True == bindings.HasFuncTextSplitText(
   293  		this.ref,
   294  	)
   295  }
   296  
   297  // FuncSplitText returns the method "Text.splitText".
   298  func (this Text) FuncSplitText() (fn js.Func[func(offset uint32) Text]) {
   299  	bindings.FuncTextSplitText(
   300  		this.ref, js.Pointer(&fn),
   301  	)
   302  	return
   303  }
   304  
   305  // SplitText calls the method "Text.splitText".
   306  func (this Text) SplitText(offset uint32) (ret Text) {
   307  	bindings.CallTextSplitText(
   308  		this.ref, js.Pointer(&ret),
   309  		uint32(offset),
   310  	)
   311  
   312  	return
   313  }
   314  
   315  // TrySplitText calls the method "Text.splitText"
   316  // in a try/catch block and returns (_, err, ok = false) when it went through
   317  // the catch clause.
   318  func (this Text) TrySplitText(offset uint32) (ret Text, exception js.Any, ok bool) {
   319  	ok = js.True == bindings.TryTextSplitText(
   320  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
   321  		uint32(offset),
   322  	)
   323  
   324  	return
   325  }
   326  
   327  // HasFuncGetBoxQuads returns true if the method "Text.getBoxQuads" exists.
   328  func (this Text) HasFuncGetBoxQuads() bool {
   329  	return js.True == bindings.HasFuncTextGetBoxQuads(
   330  		this.ref,
   331  	)
   332  }
   333  
   334  // FuncGetBoxQuads returns the method "Text.getBoxQuads".
   335  func (this Text) FuncGetBoxQuads() (fn js.Func[func(options BoxQuadOptions) js.Array[DOMQuad]]) {
   336  	bindings.FuncTextGetBoxQuads(
   337  		this.ref, js.Pointer(&fn),
   338  	)
   339  	return
   340  }
   341  
   342  // GetBoxQuads calls the method "Text.getBoxQuads".
   343  func (this Text) GetBoxQuads(options BoxQuadOptions) (ret js.Array[DOMQuad]) {
   344  	bindings.CallTextGetBoxQuads(
   345  		this.ref, js.Pointer(&ret),
   346  		js.Pointer(&options),
   347  	)
   348  
   349  	return
   350  }
   351  
   352  // TryGetBoxQuads calls the method "Text.getBoxQuads"
   353  // in a try/catch block and returns (_, err, ok = false) when it went through
   354  // the catch clause.
   355  func (this Text) TryGetBoxQuads(options BoxQuadOptions) (ret js.Array[DOMQuad], exception js.Any, ok bool) {
   356  	ok = js.True == bindings.TryTextGetBoxQuads(
   357  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
   358  		js.Pointer(&options),
   359  	)
   360  
   361  	return
   362  }
   363  
   364  // HasFuncGetBoxQuads1 returns true if the method "Text.getBoxQuads" exists.
   365  func (this Text) HasFuncGetBoxQuads1() bool {
   366  	return js.True == bindings.HasFuncTextGetBoxQuads1(
   367  		this.ref,
   368  	)
   369  }
   370  
   371  // FuncGetBoxQuads1 returns the method "Text.getBoxQuads".
   372  func (this Text) FuncGetBoxQuads1() (fn js.Func[func() js.Array[DOMQuad]]) {
   373  	bindings.FuncTextGetBoxQuads1(
   374  		this.ref, js.Pointer(&fn),
   375  	)
   376  	return
   377  }
   378  
   379  // GetBoxQuads1 calls the method "Text.getBoxQuads".
   380  func (this Text) GetBoxQuads1() (ret js.Array[DOMQuad]) {
   381  	bindings.CallTextGetBoxQuads1(
   382  		this.ref, js.Pointer(&ret),
   383  	)
   384  
   385  	return
   386  }
   387  
   388  // TryGetBoxQuads1 calls the method "Text.getBoxQuads"
   389  // in a try/catch block and returns (_, err, ok = false) when it went through
   390  // the catch clause.
   391  func (this Text) TryGetBoxQuads1() (ret js.Array[DOMQuad], exception js.Any, ok bool) {
   392  	ok = js.True == bindings.TryTextGetBoxQuads1(
   393  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
   394  	)
   395  
   396  	return
   397  }
   398  
   399  // HasFuncConvertQuadFromNode returns true if the method "Text.convertQuadFromNode" exists.
   400  func (this Text) HasFuncConvertQuadFromNode() bool {
   401  	return js.True == bindings.HasFuncTextConvertQuadFromNode(
   402  		this.ref,
   403  	)
   404  }
   405  
   406  // FuncConvertQuadFromNode returns the method "Text.convertQuadFromNode".
   407  func (this Text) FuncConvertQuadFromNode() (fn js.Func[func(quad DOMQuadInit, from GeometryNode, options ConvertCoordinateOptions) DOMQuad]) {
   408  	bindings.FuncTextConvertQuadFromNode(
   409  		this.ref, js.Pointer(&fn),
   410  	)
   411  	return
   412  }
   413  
   414  // ConvertQuadFromNode calls the method "Text.convertQuadFromNode".
   415  func (this Text) ConvertQuadFromNode(quad DOMQuadInit, from GeometryNode, options ConvertCoordinateOptions) (ret DOMQuad) {
   416  	bindings.CallTextConvertQuadFromNode(
   417  		this.ref, js.Pointer(&ret),
   418  		js.Pointer(&quad),
   419  		from.Ref(),
   420  		js.Pointer(&options),
   421  	)
   422  
   423  	return
   424  }
   425  
   426  // TryConvertQuadFromNode calls the method "Text.convertQuadFromNode"
   427  // in a try/catch block and returns (_, err, ok = false) when it went through
   428  // the catch clause.
   429  func (this Text) TryConvertQuadFromNode(quad DOMQuadInit, from GeometryNode, options ConvertCoordinateOptions) (ret DOMQuad, exception js.Any, ok bool) {
   430  	ok = js.True == bindings.TryTextConvertQuadFromNode(
   431  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
   432  		js.Pointer(&quad),
   433  		from.Ref(),
   434  		js.Pointer(&options),
   435  	)
   436  
   437  	return
   438  }
   439  
   440  // HasFuncConvertQuadFromNode1 returns true if the method "Text.convertQuadFromNode" exists.
   441  func (this Text) HasFuncConvertQuadFromNode1() bool {
   442  	return js.True == bindings.HasFuncTextConvertQuadFromNode1(
   443  		this.ref,
   444  	)
   445  }
   446  
   447  // FuncConvertQuadFromNode1 returns the method "Text.convertQuadFromNode".
   448  func (this Text) FuncConvertQuadFromNode1() (fn js.Func[func(quad DOMQuadInit, from GeometryNode) DOMQuad]) {
   449  	bindings.FuncTextConvertQuadFromNode1(
   450  		this.ref, js.Pointer(&fn),
   451  	)
   452  	return
   453  }
   454  
   455  // ConvertQuadFromNode1 calls the method "Text.convertQuadFromNode".
   456  func (this Text) ConvertQuadFromNode1(quad DOMQuadInit, from GeometryNode) (ret DOMQuad) {
   457  	bindings.CallTextConvertQuadFromNode1(
   458  		this.ref, js.Pointer(&ret),
   459  		js.Pointer(&quad),
   460  		from.Ref(),
   461  	)
   462  
   463  	return
   464  }
   465  
   466  // TryConvertQuadFromNode1 calls the method "Text.convertQuadFromNode"
   467  // in a try/catch block and returns (_, err, ok = false) when it went through
   468  // the catch clause.
   469  func (this Text) TryConvertQuadFromNode1(quad DOMQuadInit, from GeometryNode) (ret DOMQuad, exception js.Any, ok bool) {
   470  	ok = js.True == bindings.TryTextConvertQuadFromNode1(
   471  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
   472  		js.Pointer(&quad),
   473  		from.Ref(),
   474  	)
   475  
   476  	return
   477  }
   478  
   479  // HasFuncConvertRectFromNode returns true if the method "Text.convertRectFromNode" exists.
   480  func (this Text) HasFuncConvertRectFromNode() bool {
   481  	return js.True == bindings.HasFuncTextConvertRectFromNode(
   482  		this.ref,
   483  	)
   484  }
   485  
   486  // FuncConvertRectFromNode returns the method "Text.convertRectFromNode".
   487  func (this Text) FuncConvertRectFromNode() (fn js.Func[func(rect DOMRectReadOnly, from GeometryNode, options ConvertCoordinateOptions) DOMQuad]) {
   488  	bindings.FuncTextConvertRectFromNode(
   489  		this.ref, js.Pointer(&fn),
   490  	)
   491  	return
   492  }
   493  
   494  // ConvertRectFromNode calls the method "Text.convertRectFromNode".
   495  func (this Text) ConvertRectFromNode(rect DOMRectReadOnly, from GeometryNode, options ConvertCoordinateOptions) (ret DOMQuad) {
   496  	bindings.CallTextConvertRectFromNode(
   497  		this.ref, js.Pointer(&ret),
   498  		rect.Ref(),
   499  		from.Ref(),
   500  		js.Pointer(&options),
   501  	)
   502  
   503  	return
   504  }
   505  
   506  // TryConvertRectFromNode calls the method "Text.convertRectFromNode"
   507  // in a try/catch block and returns (_, err, ok = false) when it went through
   508  // the catch clause.
   509  func (this Text) TryConvertRectFromNode(rect DOMRectReadOnly, from GeometryNode, options ConvertCoordinateOptions) (ret DOMQuad, exception js.Any, ok bool) {
   510  	ok = js.True == bindings.TryTextConvertRectFromNode(
   511  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
   512  		rect.Ref(),
   513  		from.Ref(),
   514  		js.Pointer(&options),
   515  	)
   516  
   517  	return
   518  }
   519  
   520  // HasFuncConvertRectFromNode1 returns true if the method "Text.convertRectFromNode" exists.
   521  func (this Text) HasFuncConvertRectFromNode1() bool {
   522  	return js.True == bindings.HasFuncTextConvertRectFromNode1(
   523  		this.ref,
   524  	)
   525  }
   526  
   527  // FuncConvertRectFromNode1 returns the method "Text.convertRectFromNode".
   528  func (this Text) FuncConvertRectFromNode1() (fn js.Func[func(rect DOMRectReadOnly, from GeometryNode) DOMQuad]) {
   529  	bindings.FuncTextConvertRectFromNode1(
   530  		this.ref, js.Pointer(&fn),
   531  	)
   532  	return
   533  }
   534  
   535  // ConvertRectFromNode1 calls the method "Text.convertRectFromNode".
   536  func (this Text) ConvertRectFromNode1(rect DOMRectReadOnly, from GeometryNode) (ret DOMQuad) {
   537  	bindings.CallTextConvertRectFromNode1(
   538  		this.ref, js.Pointer(&ret),
   539  		rect.Ref(),
   540  		from.Ref(),
   541  	)
   542  
   543  	return
   544  }
   545  
   546  // TryConvertRectFromNode1 calls the method "Text.convertRectFromNode"
   547  // in a try/catch block and returns (_, err, ok = false) when it went through
   548  // the catch clause.
   549  func (this Text) TryConvertRectFromNode1(rect DOMRectReadOnly, from GeometryNode) (ret DOMQuad, exception js.Any, ok bool) {
   550  	ok = js.True == bindings.TryTextConvertRectFromNode1(
   551  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
   552  		rect.Ref(),
   553  		from.Ref(),
   554  	)
   555  
   556  	return
   557  }
   558  
   559  // HasFuncConvertPointFromNode returns true if the method "Text.convertPointFromNode" exists.
   560  func (this Text) HasFuncConvertPointFromNode() bool {
   561  	return js.True == bindings.HasFuncTextConvertPointFromNode(
   562  		this.ref,
   563  	)
   564  }
   565  
   566  // FuncConvertPointFromNode returns the method "Text.convertPointFromNode".
   567  func (this Text) FuncConvertPointFromNode() (fn js.Func[func(point DOMPointInit, from GeometryNode, options ConvertCoordinateOptions) DOMPoint]) {
   568  	bindings.FuncTextConvertPointFromNode(
   569  		this.ref, js.Pointer(&fn),
   570  	)
   571  	return
   572  }
   573  
   574  // ConvertPointFromNode calls the method "Text.convertPointFromNode".
   575  func (this Text) ConvertPointFromNode(point DOMPointInit, from GeometryNode, options ConvertCoordinateOptions) (ret DOMPoint) {
   576  	bindings.CallTextConvertPointFromNode(
   577  		this.ref, js.Pointer(&ret),
   578  		js.Pointer(&point),
   579  		from.Ref(),
   580  		js.Pointer(&options),
   581  	)
   582  
   583  	return
   584  }
   585  
   586  // TryConvertPointFromNode calls the method "Text.convertPointFromNode"
   587  // in a try/catch block and returns (_, err, ok = false) when it went through
   588  // the catch clause.
   589  func (this Text) TryConvertPointFromNode(point DOMPointInit, from GeometryNode, options ConvertCoordinateOptions) (ret DOMPoint, exception js.Any, ok bool) {
   590  	ok = js.True == bindings.TryTextConvertPointFromNode(
   591  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
   592  		js.Pointer(&point),
   593  		from.Ref(),
   594  		js.Pointer(&options),
   595  	)
   596  
   597  	return
   598  }
   599  
   600  // HasFuncConvertPointFromNode1 returns true if the method "Text.convertPointFromNode" exists.
   601  func (this Text) HasFuncConvertPointFromNode1() bool {
   602  	return js.True == bindings.HasFuncTextConvertPointFromNode1(
   603  		this.ref,
   604  	)
   605  }
   606  
   607  // FuncConvertPointFromNode1 returns the method "Text.convertPointFromNode".
   608  func (this Text) FuncConvertPointFromNode1() (fn js.Func[func(point DOMPointInit, from GeometryNode) DOMPoint]) {
   609  	bindings.FuncTextConvertPointFromNode1(
   610  		this.ref, js.Pointer(&fn),
   611  	)
   612  	return
   613  }
   614  
   615  // ConvertPointFromNode1 calls the method "Text.convertPointFromNode".
   616  func (this Text) ConvertPointFromNode1(point DOMPointInit, from GeometryNode) (ret DOMPoint) {
   617  	bindings.CallTextConvertPointFromNode1(
   618  		this.ref, js.Pointer(&ret),
   619  		js.Pointer(&point),
   620  		from.Ref(),
   621  	)
   622  
   623  	return
   624  }
   625  
   626  // TryConvertPointFromNode1 calls the method "Text.convertPointFromNode"
   627  // in a try/catch block and returns (_, err, ok = false) when it went through
   628  // the catch clause.
   629  func (this Text) TryConvertPointFromNode1(point DOMPointInit, from GeometryNode) (ret DOMPoint, exception js.Any, ok bool) {
   630  	ok = js.True == bindings.TryTextConvertPointFromNode1(
   631  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
   632  		js.Pointer(&point),
   633  		from.Ref(),
   634  	)
   635  
   636  	return
   637  }
   638  
   639  type OneOf_Text_Element_CSSPseudoElement_Document struct {
   640  	ref js.Ref
   641  }
   642  
   643  func (x OneOf_Text_Element_CSSPseudoElement_Document) Ref() js.Ref {
   644  	return x.ref
   645  }
   646  
   647  func (x OneOf_Text_Element_CSSPseudoElement_Document) Free() {
   648  	x.ref.Free()
   649  }
   650  
   651  func (x OneOf_Text_Element_CSSPseudoElement_Document) FromRef(ref js.Ref) OneOf_Text_Element_CSSPseudoElement_Document {
   652  	return OneOf_Text_Element_CSSPseudoElement_Document{
   653  		ref: ref,
   654  	}
   655  }
   656  
   657  func (x OneOf_Text_Element_CSSPseudoElement_Document) Text() Text {
   658  	return Text{}.FromRef(x.ref)
   659  }
   660  
   661  func (x OneOf_Text_Element_CSSPseudoElement_Document) Element() Element {
   662  	return Element{}.FromRef(x.ref)
   663  }
   664  
   665  func (x OneOf_Text_Element_CSSPseudoElement_Document) CSSPseudoElement() CSSPseudoElement {
   666  	return CSSPseudoElement{}.FromRef(x.ref)
   667  }
   668  
   669  func (x OneOf_Text_Element_CSSPseudoElement_Document) Document() Document {
   670  	return Document{}.FromRef(x.ref)
   671  }
   672  
   673  type GeometryNode = OneOf_Text_Element_CSSPseudoElement_Document
   674  
   675  type BoxQuadOptions struct {
   676  	// Box is "BoxQuadOptions.box"
   677  	//
   678  	// Optional, defaults to "border".
   679  	Box CSSBoxType
   680  	// RelativeTo is "BoxQuadOptions.relativeTo"
   681  	//
   682  	// Optional
   683  	RelativeTo GeometryNode
   684  
   685  	FFI_USE bool
   686  }
   687  
   688  // FromRef calls UpdateFrom and returns a BoxQuadOptions with all fields set.
   689  func (p BoxQuadOptions) FromRef(ref js.Ref) BoxQuadOptions {
   690  	p.UpdateFrom(ref)
   691  	return p
   692  }
   693  
   694  // New creates a new BoxQuadOptions in the application heap.
   695  func (p BoxQuadOptions) New() js.Ref {
   696  	return bindings.BoxQuadOptionsJSLoad(
   697  		js.Pointer(&p), js.True, 0,
   698  	)
   699  }
   700  
   701  // UpdateFrom copies value of all fields of the heap object to p.
   702  func (p *BoxQuadOptions) UpdateFrom(ref js.Ref) {
   703  	bindings.BoxQuadOptionsJSStore(
   704  		js.Pointer(p), ref,
   705  	)
   706  }
   707  
   708  // Update writes all fields of the p to the heap object referenced by ref.
   709  func (p *BoxQuadOptions) Update(ref js.Ref) {
   710  	bindings.BoxQuadOptionsJSLoad(
   711  		js.Pointer(p), js.False, ref,
   712  	)
   713  }
   714  
   715  // FreeMembers frees fields with heap reference, if recursive is true
   716  // free all heap references reachable from p.
   717  func (p *BoxQuadOptions) FreeMembers(recursive bool) {
   718  	js.Free(
   719  		p.RelativeTo.Ref(),
   720  	)
   721  	p.RelativeTo = p.RelativeTo.FromRef(js.Undefined)
   722  }
   723  
   724  type OneOf_Element_CSSPseudoElement struct {
   725  	ref js.Ref
   726  }
   727  
   728  func (x OneOf_Element_CSSPseudoElement) Ref() js.Ref {
   729  	return x.ref
   730  }
   731  
   732  func (x OneOf_Element_CSSPseudoElement) Free() {
   733  	x.ref.Free()
   734  }
   735  
   736  func (x OneOf_Element_CSSPseudoElement) FromRef(ref js.Ref) OneOf_Element_CSSPseudoElement {
   737  	return OneOf_Element_CSSPseudoElement{
   738  		ref: ref,
   739  	}
   740  }
   741  
   742  func (x OneOf_Element_CSSPseudoElement) Element() Element {
   743  	return Element{}.FromRef(x.ref)
   744  }
   745  
   746  func (x OneOf_Element_CSSPseudoElement) CSSPseudoElement() CSSPseudoElement {
   747  	return CSSPseudoElement{}.FromRef(x.ref)
   748  }
   749  
   750  type CSSPseudoElement struct {
   751  	EventTarget
   752  }
   753  
   754  func (this CSSPseudoElement) Once() CSSPseudoElement {
   755  	this.ref.Once()
   756  	return this
   757  }
   758  
   759  func (this CSSPseudoElement) Ref() js.Ref {
   760  	return this.EventTarget.Ref()
   761  }
   762  
   763  func (this CSSPseudoElement) FromRef(ref js.Ref) CSSPseudoElement {
   764  	this.EventTarget = this.EventTarget.FromRef(ref)
   765  	return this
   766  }
   767  
   768  func (this CSSPseudoElement) Free() {
   769  	this.ref.Free()
   770  }
   771  
   772  // Type returns the value of property "CSSPseudoElement.type".
   773  //
   774  // It returns ok=false if there is no such property.
   775  func (this CSSPseudoElement) Type() (ret js.String, ok bool) {
   776  	ok = js.True == bindings.GetCSSPseudoElementType(
   777  		this.ref, js.Pointer(&ret),
   778  	)
   779  	return
   780  }
   781  
   782  // Element returns the value of property "CSSPseudoElement.element".
   783  //
   784  // It returns ok=false if there is no such property.
   785  func (this CSSPseudoElement) Element() (ret Element, ok bool) {
   786  	ok = js.True == bindings.GetCSSPseudoElementElement(
   787  		this.ref, js.Pointer(&ret),
   788  	)
   789  	return
   790  }
   791  
   792  // Parent returns the value of property "CSSPseudoElement.parent".
   793  //
   794  // It returns ok=false if there is no such property.
   795  func (this CSSPseudoElement) Parent() (ret OneOf_Element_CSSPseudoElement, ok bool) {
   796  	ok = js.True == bindings.GetCSSPseudoElementParent(
   797  		this.ref, js.Pointer(&ret),
   798  	)
   799  	return
   800  }
   801  
   802  // HasFuncPseudo returns true if the method "CSSPseudoElement.pseudo" exists.
   803  func (this CSSPseudoElement) HasFuncPseudo() bool {
   804  	return js.True == bindings.HasFuncCSSPseudoElementPseudo(
   805  		this.ref,
   806  	)
   807  }
   808  
   809  // FuncPseudo returns the method "CSSPseudoElement.pseudo".
   810  func (this CSSPseudoElement) FuncPseudo() (fn js.Func[func(typ js.String) CSSPseudoElement]) {
   811  	bindings.FuncCSSPseudoElementPseudo(
   812  		this.ref, js.Pointer(&fn),
   813  	)
   814  	return
   815  }
   816  
   817  // Pseudo calls the method "CSSPseudoElement.pseudo".
   818  func (this CSSPseudoElement) Pseudo(typ js.String) (ret CSSPseudoElement) {
   819  	bindings.CallCSSPseudoElementPseudo(
   820  		this.ref, js.Pointer(&ret),
   821  		typ.Ref(),
   822  	)
   823  
   824  	return
   825  }
   826  
   827  // TryPseudo calls the method "CSSPseudoElement.pseudo"
   828  // in a try/catch block and returns (_, err, ok = false) when it went through
   829  // the catch clause.
   830  func (this CSSPseudoElement) TryPseudo(typ js.String) (ret CSSPseudoElement, exception js.Any, ok bool) {
   831  	ok = js.True == bindings.TryCSSPseudoElementPseudo(
   832  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
   833  		typ.Ref(),
   834  	)
   835  
   836  	return
   837  }
   838  
   839  // HasFuncGetBoxQuads returns true if the method "CSSPseudoElement.getBoxQuads" exists.
   840  func (this CSSPseudoElement) HasFuncGetBoxQuads() bool {
   841  	return js.True == bindings.HasFuncCSSPseudoElementGetBoxQuads(
   842  		this.ref,
   843  	)
   844  }
   845  
   846  // FuncGetBoxQuads returns the method "CSSPseudoElement.getBoxQuads".
   847  func (this CSSPseudoElement) FuncGetBoxQuads() (fn js.Func[func(options BoxQuadOptions) js.Array[DOMQuad]]) {
   848  	bindings.FuncCSSPseudoElementGetBoxQuads(
   849  		this.ref, js.Pointer(&fn),
   850  	)
   851  	return
   852  }
   853  
   854  // GetBoxQuads calls the method "CSSPseudoElement.getBoxQuads".
   855  func (this CSSPseudoElement) GetBoxQuads(options BoxQuadOptions) (ret js.Array[DOMQuad]) {
   856  	bindings.CallCSSPseudoElementGetBoxQuads(
   857  		this.ref, js.Pointer(&ret),
   858  		js.Pointer(&options),
   859  	)
   860  
   861  	return
   862  }
   863  
   864  // TryGetBoxQuads calls the method "CSSPseudoElement.getBoxQuads"
   865  // in a try/catch block and returns (_, err, ok = false) when it went through
   866  // the catch clause.
   867  func (this CSSPseudoElement) TryGetBoxQuads(options BoxQuadOptions) (ret js.Array[DOMQuad], exception js.Any, ok bool) {
   868  	ok = js.True == bindings.TryCSSPseudoElementGetBoxQuads(
   869  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
   870  		js.Pointer(&options),
   871  	)
   872  
   873  	return
   874  }
   875  
   876  // HasFuncGetBoxQuads1 returns true if the method "CSSPseudoElement.getBoxQuads" exists.
   877  func (this CSSPseudoElement) HasFuncGetBoxQuads1() bool {
   878  	return js.True == bindings.HasFuncCSSPseudoElementGetBoxQuads1(
   879  		this.ref,
   880  	)
   881  }
   882  
   883  // FuncGetBoxQuads1 returns the method "CSSPseudoElement.getBoxQuads".
   884  func (this CSSPseudoElement) FuncGetBoxQuads1() (fn js.Func[func() js.Array[DOMQuad]]) {
   885  	bindings.FuncCSSPseudoElementGetBoxQuads1(
   886  		this.ref, js.Pointer(&fn),
   887  	)
   888  	return
   889  }
   890  
   891  // GetBoxQuads1 calls the method "CSSPseudoElement.getBoxQuads".
   892  func (this CSSPseudoElement) GetBoxQuads1() (ret js.Array[DOMQuad]) {
   893  	bindings.CallCSSPseudoElementGetBoxQuads1(
   894  		this.ref, js.Pointer(&ret),
   895  	)
   896  
   897  	return
   898  }
   899  
   900  // TryGetBoxQuads1 calls the method "CSSPseudoElement.getBoxQuads"
   901  // in a try/catch block and returns (_, err, ok = false) when it went through
   902  // the catch clause.
   903  func (this CSSPseudoElement) TryGetBoxQuads1() (ret js.Array[DOMQuad], exception js.Any, ok bool) {
   904  	ok = js.True == bindings.TryCSSPseudoElementGetBoxQuads1(
   905  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
   906  	)
   907  
   908  	return
   909  }
   910  
   911  // HasFuncConvertQuadFromNode returns true if the method "CSSPseudoElement.convertQuadFromNode" exists.
   912  func (this CSSPseudoElement) HasFuncConvertQuadFromNode() bool {
   913  	return js.True == bindings.HasFuncCSSPseudoElementConvertQuadFromNode(
   914  		this.ref,
   915  	)
   916  }
   917  
   918  // FuncConvertQuadFromNode returns the method "CSSPseudoElement.convertQuadFromNode".
   919  func (this CSSPseudoElement) FuncConvertQuadFromNode() (fn js.Func[func(quad DOMQuadInit, from GeometryNode, options ConvertCoordinateOptions) DOMQuad]) {
   920  	bindings.FuncCSSPseudoElementConvertQuadFromNode(
   921  		this.ref, js.Pointer(&fn),
   922  	)
   923  	return
   924  }
   925  
   926  // ConvertQuadFromNode calls the method "CSSPseudoElement.convertQuadFromNode".
   927  func (this CSSPseudoElement) ConvertQuadFromNode(quad DOMQuadInit, from GeometryNode, options ConvertCoordinateOptions) (ret DOMQuad) {
   928  	bindings.CallCSSPseudoElementConvertQuadFromNode(
   929  		this.ref, js.Pointer(&ret),
   930  		js.Pointer(&quad),
   931  		from.Ref(),
   932  		js.Pointer(&options),
   933  	)
   934  
   935  	return
   936  }
   937  
   938  // TryConvertQuadFromNode calls the method "CSSPseudoElement.convertQuadFromNode"
   939  // in a try/catch block and returns (_, err, ok = false) when it went through
   940  // the catch clause.
   941  func (this CSSPseudoElement) TryConvertQuadFromNode(quad DOMQuadInit, from GeometryNode, options ConvertCoordinateOptions) (ret DOMQuad, exception js.Any, ok bool) {
   942  	ok = js.True == bindings.TryCSSPseudoElementConvertQuadFromNode(
   943  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
   944  		js.Pointer(&quad),
   945  		from.Ref(),
   946  		js.Pointer(&options),
   947  	)
   948  
   949  	return
   950  }
   951  
   952  // HasFuncConvertQuadFromNode1 returns true if the method "CSSPseudoElement.convertQuadFromNode" exists.
   953  func (this CSSPseudoElement) HasFuncConvertQuadFromNode1() bool {
   954  	return js.True == bindings.HasFuncCSSPseudoElementConvertQuadFromNode1(
   955  		this.ref,
   956  	)
   957  }
   958  
   959  // FuncConvertQuadFromNode1 returns the method "CSSPseudoElement.convertQuadFromNode".
   960  func (this CSSPseudoElement) FuncConvertQuadFromNode1() (fn js.Func[func(quad DOMQuadInit, from GeometryNode) DOMQuad]) {
   961  	bindings.FuncCSSPseudoElementConvertQuadFromNode1(
   962  		this.ref, js.Pointer(&fn),
   963  	)
   964  	return
   965  }
   966  
   967  // ConvertQuadFromNode1 calls the method "CSSPseudoElement.convertQuadFromNode".
   968  func (this CSSPseudoElement) ConvertQuadFromNode1(quad DOMQuadInit, from GeometryNode) (ret DOMQuad) {
   969  	bindings.CallCSSPseudoElementConvertQuadFromNode1(
   970  		this.ref, js.Pointer(&ret),
   971  		js.Pointer(&quad),
   972  		from.Ref(),
   973  	)
   974  
   975  	return
   976  }
   977  
   978  // TryConvertQuadFromNode1 calls the method "CSSPseudoElement.convertQuadFromNode"
   979  // in a try/catch block and returns (_, err, ok = false) when it went through
   980  // the catch clause.
   981  func (this CSSPseudoElement) TryConvertQuadFromNode1(quad DOMQuadInit, from GeometryNode) (ret DOMQuad, exception js.Any, ok bool) {
   982  	ok = js.True == bindings.TryCSSPseudoElementConvertQuadFromNode1(
   983  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
   984  		js.Pointer(&quad),
   985  		from.Ref(),
   986  	)
   987  
   988  	return
   989  }
   990  
   991  // HasFuncConvertRectFromNode returns true if the method "CSSPseudoElement.convertRectFromNode" exists.
   992  func (this CSSPseudoElement) HasFuncConvertRectFromNode() bool {
   993  	return js.True == bindings.HasFuncCSSPseudoElementConvertRectFromNode(
   994  		this.ref,
   995  	)
   996  }
   997  
   998  // FuncConvertRectFromNode returns the method "CSSPseudoElement.convertRectFromNode".
   999  func (this CSSPseudoElement) FuncConvertRectFromNode() (fn js.Func[func(rect DOMRectReadOnly, from GeometryNode, options ConvertCoordinateOptions) DOMQuad]) {
  1000  	bindings.FuncCSSPseudoElementConvertRectFromNode(
  1001  		this.ref, js.Pointer(&fn),
  1002  	)
  1003  	return
  1004  }
  1005  
  1006  // ConvertRectFromNode calls the method "CSSPseudoElement.convertRectFromNode".
  1007  func (this CSSPseudoElement) ConvertRectFromNode(rect DOMRectReadOnly, from GeometryNode, options ConvertCoordinateOptions) (ret DOMQuad) {
  1008  	bindings.CallCSSPseudoElementConvertRectFromNode(
  1009  		this.ref, js.Pointer(&ret),
  1010  		rect.Ref(),
  1011  		from.Ref(),
  1012  		js.Pointer(&options),
  1013  	)
  1014  
  1015  	return
  1016  }
  1017  
  1018  // TryConvertRectFromNode calls the method "CSSPseudoElement.convertRectFromNode"
  1019  // in a try/catch block and returns (_, err, ok = false) when it went through
  1020  // the catch clause.
  1021  func (this CSSPseudoElement) TryConvertRectFromNode(rect DOMRectReadOnly, from GeometryNode, options ConvertCoordinateOptions) (ret DOMQuad, exception js.Any, ok bool) {
  1022  	ok = js.True == bindings.TryCSSPseudoElementConvertRectFromNode(
  1023  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1024  		rect.Ref(),
  1025  		from.Ref(),
  1026  		js.Pointer(&options),
  1027  	)
  1028  
  1029  	return
  1030  }
  1031  
  1032  // HasFuncConvertRectFromNode1 returns true if the method "CSSPseudoElement.convertRectFromNode" exists.
  1033  func (this CSSPseudoElement) HasFuncConvertRectFromNode1() bool {
  1034  	return js.True == bindings.HasFuncCSSPseudoElementConvertRectFromNode1(
  1035  		this.ref,
  1036  	)
  1037  }
  1038  
  1039  // FuncConvertRectFromNode1 returns the method "CSSPseudoElement.convertRectFromNode".
  1040  func (this CSSPseudoElement) FuncConvertRectFromNode1() (fn js.Func[func(rect DOMRectReadOnly, from GeometryNode) DOMQuad]) {
  1041  	bindings.FuncCSSPseudoElementConvertRectFromNode1(
  1042  		this.ref, js.Pointer(&fn),
  1043  	)
  1044  	return
  1045  }
  1046  
  1047  // ConvertRectFromNode1 calls the method "CSSPseudoElement.convertRectFromNode".
  1048  func (this CSSPseudoElement) ConvertRectFromNode1(rect DOMRectReadOnly, from GeometryNode) (ret DOMQuad) {
  1049  	bindings.CallCSSPseudoElementConvertRectFromNode1(
  1050  		this.ref, js.Pointer(&ret),
  1051  		rect.Ref(),
  1052  		from.Ref(),
  1053  	)
  1054  
  1055  	return
  1056  }
  1057  
  1058  // TryConvertRectFromNode1 calls the method "CSSPseudoElement.convertRectFromNode"
  1059  // in a try/catch block and returns (_, err, ok = false) when it went through
  1060  // the catch clause.
  1061  func (this CSSPseudoElement) TryConvertRectFromNode1(rect DOMRectReadOnly, from GeometryNode) (ret DOMQuad, exception js.Any, ok bool) {
  1062  	ok = js.True == bindings.TryCSSPseudoElementConvertRectFromNode1(
  1063  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1064  		rect.Ref(),
  1065  		from.Ref(),
  1066  	)
  1067  
  1068  	return
  1069  }
  1070  
  1071  // HasFuncConvertPointFromNode returns true if the method "CSSPseudoElement.convertPointFromNode" exists.
  1072  func (this CSSPseudoElement) HasFuncConvertPointFromNode() bool {
  1073  	return js.True == bindings.HasFuncCSSPseudoElementConvertPointFromNode(
  1074  		this.ref,
  1075  	)
  1076  }
  1077  
  1078  // FuncConvertPointFromNode returns the method "CSSPseudoElement.convertPointFromNode".
  1079  func (this CSSPseudoElement) FuncConvertPointFromNode() (fn js.Func[func(point DOMPointInit, from GeometryNode, options ConvertCoordinateOptions) DOMPoint]) {
  1080  	bindings.FuncCSSPseudoElementConvertPointFromNode(
  1081  		this.ref, js.Pointer(&fn),
  1082  	)
  1083  	return
  1084  }
  1085  
  1086  // ConvertPointFromNode calls the method "CSSPseudoElement.convertPointFromNode".
  1087  func (this CSSPseudoElement) ConvertPointFromNode(point DOMPointInit, from GeometryNode, options ConvertCoordinateOptions) (ret DOMPoint) {
  1088  	bindings.CallCSSPseudoElementConvertPointFromNode(
  1089  		this.ref, js.Pointer(&ret),
  1090  		js.Pointer(&point),
  1091  		from.Ref(),
  1092  		js.Pointer(&options),
  1093  	)
  1094  
  1095  	return
  1096  }
  1097  
  1098  // TryConvertPointFromNode calls the method "CSSPseudoElement.convertPointFromNode"
  1099  // in a try/catch block and returns (_, err, ok = false) when it went through
  1100  // the catch clause.
  1101  func (this CSSPseudoElement) TryConvertPointFromNode(point DOMPointInit, from GeometryNode, options ConvertCoordinateOptions) (ret DOMPoint, exception js.Any, ok bool) {
  1102  	ok = js.True == bindings.TryCSSPseudoElementConvertPointFromNode(
  1103  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1104  		js.Pointer(&point),
  1105  		from.Ref(),
  1106  		js.Pointer(&options),
  1107  	)
  1108  
  1109  	return
  1110  }
  1111  
  1112  // HasFuncConvertPointFromNode1 returns true if the method "CSSPseudoElement.convertPointFromNode" exists.
  1113  func (this CSSPseudoElement) HasFuncConvertPointFromNode1() bool {
  1114  	return js.True == bindings.HasFuncCSSPseudoElementConvertPointFromNode1(
  1115  		this.ref,
  1116  	)
  1117  }
  1118  
  1119  // FuncConvertPointFromNode1 returns the method "CSSPseudoElement.convertPointFromNode".
  1120  func (this CSSPseudoElement) FuncConvertPointFromNode1() (fn js.Func[func(point DOMPointInit, from GeometryNode) DOMPoint]) {
  1121  	bindings.FuncCSSPseudoElementConvertPointFromNode1(
  1122  		this.ref, js.Pointer(&fn),
  1123  	)
  1124  	return
  1125  }
  1126  
  1127  // ConvertPointFromNode1 calls the method "CSSPseudoElement.convertPointFromNode".
  1128  func (this CSSPseudoElement) ConvertPointFromNode1(point DOMPointInit, from GeometryNode) (ret DOMPoint) {
  1129  	bindings.CallCSSPseudoElementConvertPointFromNode1(
  1130  		this.ref, js.Pointer(&ret),
  1131  		js.Pointer(&point),
  1132  		from.Ref(),
  1133  	)
  1134  
  1135  	return
  1136  }
  1137  
  1138  // TryConvertPointFromNode1 calls the method "CSSPseudoElement.convertPointFromNode"
  1139  // in a try/catch block and returns (_, err, ok = false) when it went through
  1140  // the catch clause.
  1141  func (this CSSPseudoElement) TryConvertPointFromNode1(point DOMPointInit, from GeometryNode) (ret DOMPoint, exception js.Any, ok bool) {
  1142  	ok = js.True == bindings.TryCSSPseudoElementConvertPointFromNode1(
  1143  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1144  		js.Pointer(&point),
  1145  		from.Ref(),
  1146  	)
  1147  
  1148  	return
  1149  }
  1150  
  1151  type AttributeMatchList = js.Record[js.Array[js.String]]
  1152  
  1153  type SanitizerConfig struct {
  1154  	// AllowElements is "SanitizerConfig.allowElements"
  1155  	//
  1156  	// Optional
  1157  	AllowElements js.Array[js.String]
  1158  	// BlockElements is "SanitizerConfig.blockElements"
  1159  	//
  1160  	// Optional
  1161  	BlockElements js.Array[js.String]
  1162  	// DropElements is "SanitizerConfig.dropElements"
  1163  	//
  1164  	// Optional
  1165  	DropElements js.Array[js.String]
  1166  	// AllowAttributes is "SanitizerConfig.allowAttributes"
  1167  	//
  1168  	// Optional
  1169  	AllowAttributes AttributeMatchList
  1170  	// DropAttributes is "SanitizerConfig.dropAttributes"
  1171  	//
  1172  	// Optional
  1173  	DropAttributes AttributeMatchList
  1174  	// AllowCustomElements is "SanitizerConfig.allowCustomElements"
  1175  	//
  1176  	// Optional
  1177  	//
  1178  	// NOTE: FFI_USE_AllowCustomElements MUST be set to true to make this field effective.
  1179  	AllowCustomElements bool
  1180  	// AllowUnknownMarkup is "SanitizerConfig.allowUnknownMarkup"
  1181  	//
  1182  	// Optional
  1183  	//
  1184  	// NOTE: FFI_USE_AllowUnknownMarkup MUST be set to true to make this field effective.
  1185  	AllowUnknownMarkup bool
  1186  	// AllowComments is "SanitizerConfig.allowComments"
  1187  	//
  1188  	// Optional
  1189  	//
  1190  	// NOTE: FFI_USE_AllowComments MUST be set to true to make this field effective.
  1191  	AllowComments bool
  1192  
  1193  	FFI_USE_AllowCustomElements bool // for AllowCustomElements.
  1194  	FFI_USE_AllowUnknownMarkup  bool // for AllowUnknownMarkup.
  1195  	FFI_USE_AllowComments       bool // for AllowComments.
  1196  
  1197  	FFI_USE bool
  1198  }
  1199  
  1200  // FromRef calls UpdateFrom and returns a SanitizerConfig with all fields set.
  1201  func (p SanitizerConfig) FromRef(ref js.Ref) SanitizerConfig {
  1202  	p.UpdateFrom(ref)
  1203  	return p
  1204  }
  1205  
  1206  // New creates a new SanitizerConfig in the application heap.
  1207  func (p SanitizerConfig) New() js.Ref {
  1208  	return bindings.SanitizerConfigJSLoad(
  1209  		js.Pointer(&p), js.True, 0,
  1210  	)
  1211  }
  1212  
  1213  // UpdateFrom copies value of all fields of the heap object to p.
  1214  func (p *SanitizerConfig) UpdateFrom(ref js.Ref) {
  1215  	bindings.SanitizerConfigJSStore(
  1216  		js.Pointer(p), ref,
  1217  	)
  1218  }
  1219  
  1220  // Update writes all fields of the p to the heap object referenced by ref.
  1221  func (p *SanitizerConfig) Update(ref js.Ref) {
  1222  	bindings.SanitizerConfigJSLoad(
  1223  		js.Pointer(p), js.False, ref,
  1224  	)
  1225  }
  1226  
  1227  // FreeMembers frees fields with heap reference, if recursive is true
  1228  // free all heap references reachable from p.
  1229  func (p *SanitizerConfig) FreeMembers(recursive bool) {
  1230  	js.Free(
  1231  		p.AllowElements.Ref(),
  1232  		p.BlockElements.Ref(),
  1233  		p.DropElements.Ref(),
  1234  		p.AllowAttributes.Ref(),
  1235  		p.DropAttributes.Ref(),
  1236  	)
  1237  	p.AllowElements = p.AllowElements.FromRef(js.Undefined)
  1238  	p.BlockElements = p.BlockElements.FromRef(js.Undefined)
  1239  	p.DropElements = p.DropElements.FromRef(js.Undefined)
  1240  	p.AllowAttributes = p.AllowAttributes.FromRef(js.Undefined)
  1241  	p.DropAttributes = p.DropAttributes.FromRef(js.Undefined)
  1242  }
  1243  
  1244  type OneOf_Node_String struct {
  1245  	ref js.Ref
  1246  }
  1247  
  1248  func (x OneOf_Node_String) Ref() js.Ref {
  1249  	return x.ref
  1250  }
  1251  
  1252  func (x OneOf_Node_String) Free() {
  1253  	x.ref.Free()
  1254  }
  1255  
  1256  func (x OneOf_Node_String) FromRef(ref js.Ref) OneOf_Node_String {
  1257  	return OneOf_Node_String{
  1258  		ref: ref,
  1259  	}
  1260  }
  1261  
  1262  func (x OneOf_Node_String) Node() Node {
  1263  	return Node{}.FromRef(x.ref)
  1264  }
  1265  
  1266  func (x OneOf_Node_String) String() js.String {
  1267  	return js.String{}.FromRef(x.ref)
  1268  }
  1269  
  1270  type NodeList struct {
  1271  	ref js.Ref
  1272  }
  1273  
  1274  func (this NodeList) Once() NodeList {
  1275  	this.ref.Once()
  1276  	return this
  1277  }
  1278  
  1279  func (this NodeList) Ref() js.Ref {
  1280  	return this.ref
  1281  }
  1282  
  1283  func (this NodeList) FromRef(ref js.Ref) NodeList {
  1284  	this.ref = ref
  1285  	return this
  1286  }
  1287  
  1288  func (this NodeList) Free() {
  1289  	this.ref.Free()
  1290  }
  1291  
  1292  // Length returns the value of property "NodeList.length".
  1293  //
  1294  // It returns ok=false if there is no such property.
  1295  func (this NodeList) Length() (ret uint32, ok bool) {
  1296  	ok = js.True == bindings.GetNodeListLength(
  1297  		this.ref, js.Pointer(&ret),
  1298  	)
  1299  	return
  1300  }
  1301  
  1302  // HasFuncItem returns true if the method "NodeList.item" exists.
  1303  func (this NodeList) HasFuncItem() bool {
  1304  	return js.True == bindings.HasFuncNodeListItem(
  1305  		this.ref,
  1306  	)
  1307  }
  1308  
  1309  // FuncItem returns the method "NodeList.item".
  1310  func (this NodeList) FuncItem() (fn js.Func[func(index uint32) Node]) {
  1311  	bindings.FuncNodeListItem(
  1312  		this.ref, js.Pointer(&fn),
  1313  	)
  1314  	return
  1315  }
  1316  
  1317  // Item calls the method "NodeList.item".
  1318  func (this NodeList) Item(index uint32) (ret Node) {
  1319  	bindings.CallNodeListItem(
  1320  		this.ref, js.Pointer(&ret),
  1321  		uint32(index),
  1322  	)
  1323  
  1324  	return
  1325  }
  1326  
  1327  // TryItem calls the method "NodeList.item"
  1328  // in a try/catch block and returns (_, err, ok = false) when it went through
  1329  // the catch clause.
  1330  func (this NodeList) TryItem(index uint32) (ret Node, exception js.Any, ok bool) {
  1331  	ok = js.True == bindings.TryNodeListItem(
  1332  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1333  		uint32(index),
  1334  	)
  1335  
  1336  	return
  1337  }
  1338  
  1339  type DocumentFragment struct {
  1340  	Node
  1341  }
  1342  
  1343  func (this DocumentFragment) Once() DocumentFragment {
  1344  	this.ref.Once()
  1345  	return this
  1346  }
  1347  
  1348  func (this DocumentFragment) Ref() js.Ref {
  1349  	return this.Node.Ref()
  1350  }
  1351  
  1352  func (this DocumentFragment) FromRef(ref js.Ref) DocumentFragment {
  1353  	this.Node = this.Node.FromRef(ref)
  1354  	return this
  1355  }
  1356  
  1357  func (this DocumentFragment) Free() {
  1358  	this.ref.Free()
  1359  }
  1360  
  1361  // Children returns the value of property "DocumentFragment.children".
  1362  //
  1363  // It returns ok=false if there is no such property.
  1364  func (this DocumentFragment) Children() (ret HTMLCollection, ok bool) {
  1365  	ok = js.True == bindings.GetDocumentFragmentChildren(
  1366  		this.ref, js.Pointer(&ret),
  1367  	)
  1368  	return
  1369  }
  1370  
  1371  // FirstElementChild returns the value of property "DocumentFragment.firstElementChild".
  1372  //
  1373  // It returns ok=false if there is no such property.
  1374  func (this DocumentFragment) FirstElementChild() (ret Element, ok bool) {
  1375  	ok = js.True == bindings.GetDocumentFragmentFirstElementChild(
  1376  		this.ref, js.Pointer(&ret),
  1377  	)
  1378  	return
  1379  }
  1380  
  1381  // LastElementChild returns the value of property "DocumentFragment.lastElementChild".
  1382  //
  1383  // It returns ok=false if there is no such property.
  1384  func (this DocumentFragment) LastElementChild() (ret Element, ok bool) {
  1385  	ok = js.True == bindings.GetDocumentFragmentLastElementChild(
  1386  		this.ref, js.Pointer(&ret),
  1387  	)
  1388  	return
  1389  }
  1390  
  1391  // ChildElementCount returns the value of property "DocumentFragment.childElementCount".
  1392  //
  1393  // It returns ok=false if there is no such property.
  1394  func (this DocumentFragment) ChildElementCount() (ret uint32, ok bool) {
  1395  	ok = js.True == bindings.GetDocumentFragmentChildElementCount(
  1396  		this.ref, js.Pointer(&ret),
  1397  	)
  1398  	return
  1399  }
  1400  
  1401  // HasFuncGetElementById returns true if the method "DocumentFragment.getElementById" exists.
  1402  func (this DocumentFragment) HasFuncGetElementById() bool {
  1403  	return js.True == bindings.HasFuncDocumentFragmentGetElementById(
  1404  		this.ref,
  1405  	)
  1406  }
  1407  
  1408  // FuncGetElementById returns the method "DocumentFragment.getElementById".
  1409  func (this DocumentFragment) FuncGetElementById() (fn js.Func[func(elementId js.String) Element]) {
  1410  	bindings.FuncDocumentFragmentGetElementById(
  1411  		this.ref, js.Pointer(&fn),
  1412  	)
  1413  	return
  1414  }
  1415  
  1416  // GetElementById calls the method "DocumentFragment.getElementById".
  1417  func (this DocumentFragment) GetElementById(elementId js.String) (ret Element) {
  1418  	bindings.CallDocumentFragmentGetElementById(
  1419  		this.ref, js.Pointer(&ret),
  1420  		elementId.Ref(),
  1421  	)
  1422  
  1423  	return
  1424  }
  1425  
  1426  // TryGetElementById calls the method "DocumentFragment.getElementById"
  1427  // in a try/catch block and returns (_, err, ok = false) when it went through
  1428  // the catch clause.
  1429  func (this DocumentFragment) TryGetElementById(elementId js.String) (ret Element, exception js.Any, ok bool) {
  1430  	ok = js.True == bindings.TryDocumentFragmentGetElementById(
  1431  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1432  		elementId.Ref(),
  1433  	)
  1434  
  1435  	return
  1436  }
  1437  
  1438  // HasFuncPrepend returns true if the method "DocumentFragment.prepend" exists.
  1439  func (this DocumentFragment) HasFuncPrepend() bool {
  1440  	return js.True == bindings.HasFuncDocumentFragmentPrepend(
  1441  		this.ref,
  1442  	)
  1443  }
  1444  
  1445  // FuncPrepend returns the method "DocumentFragment.prepend".
  1446  func (this DocumentFragment) FuncPrepend() (fn js.Func[func(nodes ...OneOf_Node_String)]) {
  1447  	bindings.FuncDocumentFragmentPrepend(
  1448  		this.ref, js.Pointer(&fn),
  1449  	)
  1450  	return
  1451  }
  1452  
  1453  // Prepend calls the method "DocumentFragment.prepend".
  1454  func (this DocumentFragment) Prepend(nodes ...OneOf_Node_String) (ret js.Void) {
  1455  	bindings.CallDocumentFragmentPrepend(
  1456  		this.ref, js.Pointer(&ret),
  1457  		js.SliceData(nodes),
  1458  		js.SizeU(len(nodes)),
  1459  	)
  1460  
  1461  	return
  1462  }
  1463  
  1464  // TryPrepend calls the method "DocumentFragment.prepend"
  1465  // in a try/catch block and returns (_, err, ok = false) when it went through
  1466  // the catch clause.
  1467  func (this DocumentFragment) TryPrepend(nodes ...OneOf_Node_String) (ret js.Void, exception js.Any, ok bool) {
  1468  	ok = js.True == bindings.TryDocumentFragmentPrepend(
  1469  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1470  		js.SliceData(nodes),
  1471  		js.SizeU(len(nodes)),
  1472  	)
  1473  
  1474  	return
  1475  }
  1476  
  1477  // HasFuncAppend returns true if the method "DocumentFragment.append" exists.
  1478  func (this DocumentFragment) HasFuncAppend() bool {
  1479  	return js.True == bindings.HasFuncDocumentFragmentAppend(
  1480  		this.ref,
  1481  	)
  1482  }
  1483  
  1484  // FuncAppend returns the method "DocumentFragment.append".
  1485  func (this DocumentFragment) FuncAppend() (fn js.Func[func(nodes ...OneOf_Node_String)]) {
  1486  	bindings.FuncDocumentFragmentAppend(
  1487  		this.ref, js.Pointer(&fn),
  1488  	)
  1489  	return
  1490  }
  1491  
  1492  // Append calls the method "DocumentFragment.append".
  1493  func (this DocumentFragment) Append(nodes ...OneOf_Node_String) (ret js.Void) {
  1494  	bindings.CallDocumentFragmentAppend(
  1495  		this.ref, js.Pointer(&ret),
  1496  		js.SliceData(nodes),
  1497  		js.SizeU(len(nodes)),
  1498  	)
  1499  
  1500  	return
  1501  }
  1502  
  1503  // TryAppend calls the method "DocumentFragment.append"
  1504  // in a try/catch block and returns (_, err, ok = false) when it went through
  1505  // the catch clause.
  1506  func (this DocumentFragment) TryAppend(nodes ...OneOf_Node_String) (ret js.Void, exception js.Any, ok bool) {
  1507  	ok = js.True == bindings.TryDocumentFragmentAppend(
  1508  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1509  		js.SliceData(nodes),
  1510  		js.SizeU(len(nodes)),
  1511  	)
  1512  
  1513  	return
  1514  }
  1515  
  1516  // HasFuncReplaceChildren returns true if the method "DocumentFragment.replaceChildren" exists.
  1517  func (this DocumentFragment) HasFuncReplaceChildren() bool {
  1518  	return js.True == bindings.HasFuncDocumentFragmentReplaceChildren(
  1519  		this.ref,
  1520  	)
  1521  }
  1522  
  1523  // FuncReplaceChildren returns the method "DocumentFragment.replaceChildren".
  1524  func (this DocumentFragment) FuncReplaceChildren() (fn js.Func[func(nodes ...OneOf_Node_String)]) {
  1525  	bindings.FuncDocumentFragmentReplaceChildren(
  1526  		this.ref, js.Pointer(&fn),
  1527  	)
  1528  	return
  1529  }
  1530  
  1531  // ReplaceChildren calls the method "DocumentFragment.replaceChildren".
  1532  func (this DocumentFragment) ReplaceChildren(nodes ...OneOf_Node_String) (ret js.Void) {
  1533  	bindings.CallDocumentFragmentReplaceChildren(
  1534  		this.ref, js.Pointer(&ret),
  1535  		js.SliceData(nodes),
  1536  		js.SizeU(len(nodes)),
  1537  	)
  1538  
  1539  	return
  1540  }
  1541  
  1542  // TryReplaceChildren calls the method "DocumentFragment.replaceChildren"
  1543  // in a try/catch block and returns (_, err, ok = false) when it went through
  1544  // the catch clause.
  1545  func (this DocumentFragment) TryReplaceChildren(nodes ...OneOf_Node_String) (ret js.Void, exception js.Any, ok bool) {
  1546  	ok = js.True == bindings.TryDocumentFragmentReplaceChildren(
  1547  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1548  		js.SliceData(nodes),
  1549  		js.SizeU(len(nodes)),
  1550  	)
  1551  
  1552  	return
  1553  }
  1554  
  1555  // HasFuncQuerySelector returns true if the method "DocumentFragment.querySelector" exists.
  1556  func (this DocumentFragment) HasFuncQuerySelector() bool {
  1557  	return js.True == bindings.HasFuncDocumentFragmentQuerySelector(
  1558  		this.ref,
  1559  	)
  1560  }
  1561  
  1562  // FuncQuerySelector returns the method "DocumentFragment.querySelector".
  1563  func (this DocumentFragment) FuncQuerySelector() (fn js.Func[func(selectors js.String) Element]) {
  1564  	bindings.FuncDocumentFragmentQuerySelector(
  1565  		this.ref, js.Pointer(&fn),
  1566  	)
  1567  	return
  1568  }
  1569  
  1570  // QuerySelector calls the method "DocumentFragment.querySelector".
  1571  func (this DocumentFragment) QuerySelector(selectors js.String) (ret Element) {
  1572  	bindings.CallDocumentFragmentQuerySelector(
  1573  		this.ref, js.Pointer(&ret),
  1574  		selectors.Ref(),
  1575  	)
  1576  
  1577  	return
  1578  }
  1579  
  1580  // TryQuerySelector calls the method "DocumentFragment.querySelector"
  1581  // in a try/catch block and returns (_, err, ok = false) when it went through
  1582  // the catch clause.
  1583  func (this DocumentFragment) TryQuerySelector(selectors js.String) (ret Element, exception js.Any, ok bool) {
  1584  	ok = js.True == bindings.TryDocumentFragmentQuerySelector(
  1585  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1586  		selectors.Ref(),
  1587  	)
  1588  
  1589  	return
  1590  }
  1591  
  1592  // HasFuncQuerySelectorAll returns true if the method "DocumentFragment.querySelectorAll" exists.
  1593  func (this DocumentFragment) HasFuncQuerySelectorAll() bool {
  1594  	return js.True == bindings.HasFuncDocumentFragmentQuerySelectorAll(
  1595  		this.ref,
  1596  	)
  1597  }
  1598  
  1599  // FuncQuerySelectorAll returns the method "DocumentFragment.querySelectorAll".
  1600  func (this DocumentFragment) FuncQuerySelectorAll() (fn js.Func[func(selectors js.String) NodeList]) {
  1601  	bindings.FuncDocumentFragmentQuerySelectorAll(
  1602  		this.ref, js.Pointer(&fn),
  1603  	)
  1604  	return
  1605  }
  1606  
  1607  // QuerySelectorAll calls the method "DocumentFragment.querySelectorAll".
  1608  func (this DocumentFragment) QuerySelectorAll(selectors js.String) (ret NodeList) {
  1609  	bindings.CallDocumentFragmentQuerySelectorAll(
  1610  		this.ref, js.Pointer(&ret),
  1611  		selectors.Ref(),
  1612  	)
  1613  
  1614  	return
  1615  }
  1616  
  1617  // TryQuerySelectorAll calls the method "DocumentFragment.querySelectorAll"
  1618  // in a try/catch block and returns (_, err, ok = false) when it went through
  1619  // the catch clause.
  1620  func (this DocumentFragment) TryQuerySelectorAll(selectors js.String) (ret NodeList, exception js.Any, ok bool) {
  1621  	ok = js.True == bindings.TryDocumentFragmentQuerySelectorAll(
  1622  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1623  		selectors.Ref(),
  1624  	)
  1625  
  1626  	return
  1627  }
  1628  
  1629  type OneOf_Document_DocumentFragment struct {
  1630  	ref js.Ref
  1631  }
  1632  
  1633  func (x OneOf_Document_DocumentFragment) Ref() js.Ref {
  1634  	return x.ref
  1635  }
  1636  
  1637  func (x OneOf_Document_DocumentFragment) Free() {
  1638  	x.ref.Free()
  1639  }
  1640  
  1641  func (x OneOf_Document_DocumentFragment) FromRef(ref js.Ref) OneOf_Document_DocumentFragment {
  1642  	return OneOf_Document_DocumentFragment{
  1643  		ref: ref,
  1644  	}
  1645  }
  1646  
  1647  func (x OneOf_Document_DocumentFragment) Document() Document {
  1648  	return Document{}.FromRef(x.ref)
  1649  }
  1650  
  1651  func (x OneOf_Document_DocumentFragment) DocumentFragment() DocumentFragment {
  1652  	return DocumentFragment{}.FromRef(x.ref)
  1653  }
  1654  
  1655  func NewSanitizer(config SanitizerConfig) (ret Sanitizer) {
  1656  	ret.ref = bindings.NewSanitizerBySanitizer(
  1657  		js.Pointer(&config))
  1658  	return
  1659  }
  1660  
  1661  func NewSanitizerBySanitizer1() (ret Sanitizer) {
  1662  	ret.ref = bindings.NewSanitizerBySanitizer1()
  1663  	return
  1664  }
  1665  
  1666  type Sanitizer struct {
  1667  	ref js.Ref
  1668  }
  1669  
  1670  func (this Sanitizer) Once() Sanitizer {
  1671  	this.ref.Once()
  1672  	return this
  1673  }
  1674  
  1675  func (this Sanitizer) Ref() js.Ref {
  1676  	return this.ref
  1677  }
  1678  
  1679  func (this Sanitizer) FromRef(ref js.Ref) Sanitizer {
  1680  	this.ref = ref
  1681  	return this
  1682  }
  1683  
  1684  func (this Sanitizer) Free() {
  1685  	this.ref.Free()
  1686  }
  1687  
  1688  // HasFuncSanitize returns true if the method "Sanitizer.sanitize" exists.
  1689  func (this Sanitizer) HasFuncSanitize() bool {
  1690  	return js.True == bindings.HasFuncSanitizerSanitize(
  1691  		this.ref,
  1692  	)
  1693  }
  1694  
  1695  // FuncSanitize returns the method "Sanitizer.sanitize".
  1696  func (this Sanitizer) FuncSanitize() (fn js.Func[func(input OneOf_Document_DocumentFragment) DocumentFragment]) {
  1697  	bindings.FuncSanitizerSanitize(
  1698  		this.ref, js.Pointer(&fn),
  1699  	)
  1700  	return
  1701  }
  1702  
  1703  // Sanitize calls the method "Sanitizer.sanitize".
  1704  func (this Sanitizer) Sanitize(input OneOf_Document_DocumentFragment) (ret DocumentFragment) {
  1705  	bindings.CallSanitizerSanitize(
  1706  		this.ref, js.Pointer(&ret),
  1707  		input.Ref(),
  1708  	)
  1709  
  1710  	return
  1711  }
  1712  
  1713  // TrySanitize calls the method "Sanitizer.sanitize"
  1714  // in a try/catch block and returns (_, err, ok = false) when it went through
  1715  // the catch clause.
  1716  func (this Sanitizer) TrySanitize(input OneOf_Document_DocumentFragment) (ret DocumentFragment, exception js.Any, ok bool) {
  1717  	ok = js.True == bindings.TrySanitizerSanitize(
  1718  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1719  		input.Ref(),
  1720  	)
  1721  
  1722  	return
  1723  }
  1724  
  1725  // HasFuncSanitizeFor returns true if the method "Sanitizer.sanitizeFor" exists.
  1726  func (this Sanitizer) HasFuncSanitizeFor() bool {
  1727  	return js.True == bindings.HasFuncSanitizerSanitizeFor(
  1728  		this.ref,
  1729  	)
  1730  }
  1731  
  1732  // FuncSanitizeFor returns the method "Sanitizer.sanitizeFor".
  1733  func (this Sanitizer) FuncSanitizeFor() (fn js.Func[func(element js.String, input js.String) Element]) {
  1734  	bindings.FuncSanitizerSanitizeFor(
  1735  		this.ref, js.Pointer(&fn),
  1736  	)
  1737  	return
  1738  }
  1739  
  1740  // SanitizeFor calls the method "Sanitizer.sanitizeFor".
  1741  func (this Sanitizer) SanitizeFor(element js.String, input js.String) (ret Element) {
  1742  	bindings.CallSanitizerSanitizeFor(
  1743  		this.ref, js.Pointer(&ret),
  1744  		element.Ref(),
  1745  		input.Ref(),
  1746  	)
  1747  
  1748  	return
  1749  }
  1750  
  1751  // TrySanitizeFor calls the method "Sanitizer.sanitizeFor"
  1752  // in a try/catch block and returns (_, err, ok = false) when it went through
  1753  // the catch clause.
  1754  func (this Sanitizer) TrySanitizeFor(element js.String, input js.String) (ret Element, exception js.Any, ok bool) {
  1755  	ok = js.True == bindings.TrySanitizerSanitizeFor(
  1756  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1757  		element.Ref(),
  1758  		input.Ref(),
  1759  	)
  1760  
  1761  	return
  1762  }
  1763  
  1764  // HasFuncGetConfiguration returns true if the method "Sanitizer.getConfiguration" exists.
  1765  func (this Sanitizer) HasFuncGetConfiguration() bool {
  1766  	return js.True == bindings.HasFuncSanitizerGetConfiguration(
  1767  		this.ref,
  1768  	)
  1769  }
  1770  
  1771  // FuncGetConfiguration returns the method "Sanitizer.getConfiguration".
  1772  func (this Sanitizer) FuncGetConfiguration() (fn js.Func[func() SanitizerConfig]) {
  1773  	bindings.FuncSanitizerGetConfiguration(
  1774  		this.ref, js.Pointer(&fn),
  1775  	)
  1776  	return
  1777  }
  1778  
  1779  // GetConfiguration calls the method "Sanitizer.getConfiguration".
  1780  func (this Sanitizer) GetConfiguration() (ret SanitizerConfig) {
  1781  	bindings.CallSanitizerGetConfiguration(
  1782  		this.ref, js.Pointer(&ret),
  1783  	)
  1784  
  1785  	return
  1786  }
  1787  
  1788  // TryGetConfiguration calls the method "Sanitizer.getConfiguration"
  1789  // in a try/catch block and returns (_, err, ok = false) when it went through
  1790  // the catch clause.
  1791  func (this Sanitizer) TryGetConfiguration() (ret SanitizerConfig, exception js.Any, ok bool) {
  1792  	ok = js.True == bindings.TrySanitizerGetConfiguration(
  1793  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1794  	)
  1795  
  1796  	return
  1797  }
  1798  
  1799  // HasFuncGetDefaultConfiguration returns true if the static method "Sanitizer.getDefaultConfiguration" exists.
  1800  func (this Sanitizer) HasFuncGetDefaultConfiguration() bool {
  1801  	return js.True == bindings.HasFuncSanitizerGetDefaultConfiguration(
  1802  		this.ref,
  1803  	)
  1804  }
  1805  
  1806  // FuncGetDefaultConfiguration returns the static method "Sanitizer.getDefaultConfiguration".
  1807  func (this Sanitizer) FuncGetDefaultConfiguration() (fn js.Func[func() SanitizerConfig]) {
  1808  	bindings.FuncSanitizerGetDefaultConfiguration(
  1809  		this.ref, js.Pointer(&fn),
  1810  	)
  1811  	return
  1812  }
  1813  
  1814  // GetDefaultConfiguration calls the static method "Sanitizer.getDefaultConfiguration".
  1815  func (this Sanitizer) GetDefaultConfiguration() (ret SanitizerConfig) {
  1816  	bindings.CallSanitizerGetDefaultConfiguration(
  1817  		this.ref, js.Pointer(&ret),
  1818  	)
  1819  
  1820  	return
  1821  }
  1822  
  1823  // TryGetDefaultConfiguration calls the static method "Sanitizer.getDefaultConfiguration"
  1824  // in a try/catch block and returns (_, err, ok = false) when it went through
  1825  // the catch clause.
  1826  func (this Sanitizer) TryGetDefaultConfiguration() (ret SanitizerConfig, exception js.Any, ok bool) {
  1827  	ok = js.True == bindings.TrySanitizerGetDefaultConfiguration(
  1828  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1829  	)
  1830  
  1831  	return
  1832  }
  1833  
  1834  type SetHTMLOptions struct {
  1835  	// Sanitizer is "SetHTMLOptions.sanitizer"
  1836  	//
  1837  	// Optional
  1838  	Sanitizer Sanitizer
  1839  
  1840  	FFI_USE bool
  1841  }
  1842  
  1843  // FromRef calls UpdateFrom and returns a SetHTMLOptions with all fields set.
  1844  func (p SetHTMLOptions) FromRef(ref js.Ref) SetHTMLOptions {
  1845  	p.UpdateFrom(ref)
  1846  	return p
  1847  }
  1848  
  1849  // New creates a new SetHTMLOptions in the application heap.
  1850  func (p SetHTMLOptions) New() js.Ref {
  1851  	return bindings.SetHTMLOptionsJSLoad(
  1852  		js.Pointer(&p), js.True, 0,
  1853  	)
  1854  }
  1855  
  1856  // UpdateFrom copies value of all fields of the heap object to p.
  1857  func (p *SetHTMLOptions) UpdateFrom(ref js.Ref) {
  1858  	bindings.SetHTMLOptionsJSStore(
  1859  		js.Pointer(p), ref,
  1860  	)
  1861  }
  1862  
  1863  // Update writes all fields of the p to the heap object referenced by ref.
  1864  func (p *SetHTMLOptions) Update(ref js.Ref) {
  1865  	bindings.SetHTMLOptionsJSLoad(
  1866  		js.Pointer(p), js.False, ref,
  1867  	)
  1868  }
  1869  
  1870  // FreeMembers frees fields with heap reference, if recursive is true
  1871  // free all heap references reachable from p.
  1872  func (p *SetHTMLOptions) FreeMembers(recursive bool) {
  1873  	js.Free(
  1874  		p.Sanitizer.Ref(),
  1875  	)
  1876  	p.Sanitizer = p.Sanitizer.FromRef(js.Undefined)
  1877  }
  1878  
  1879  type DOMRectList struct {
  1880  	ref js.Ref
  1881  }
  1882  
  1883  func (this DOMRectList) Once() DOMRectList {
  1884  	this.ref.Once()
  1885  	return this
  1886  }
  1887  
  1888  func (this DOMRectList) Ref() js.Ref {
  1889  	return this.ref
  1890  }
  1891  
  1892  func (this DOMRectList) FromRef(ref js.Ref) DOMRectList {
  1893  	this.ref = ref
  1894  	return this
  1895  }
  1896  
  1897  func (this DOMRectList) Free() {
  1898  	this.ref.Free()
  1899  }
  1900  
  1901  // Length returns the value of property "DOMRectList.length".
  1902  //
  1903  // It returns ok=false if there is no such property.
  1904  func (this DOMRectList) Length() (ret uint32, ok bool) {
  1905  	ok = js.True == bindings.GetDOMRectListLength(
  1906  		this.ref, js.Pointer(&ret),
  1907  	)
  1908  	return
  1909  }
  1910  
  1911  // HasFuncItem returns true if the method "DOMRectList.item" exists.
  1912  func (this DOMRectList) HasFuncItem() bool {
  1913  	return js.True == bindings.HasFuncDOMRectListItem(
  1914  		this.ref,
  1915  	)
  1916  }
  1917  
  1918  // FuncItem returns the method "DOMRectList.item".
  1919  func (this DOMRectList) FuncItem() (fn js.Func[func(index uint32) DOMRect]) {
  1920  	bindings.FuncDOMRectListItem(
  1921  		this.ref, js.Pointer(&fn),
  1922  	)
  1923  	return
  1924  }
  1925  
  1926  // Item calls the method "DOMRectList.item".
  1927  func (this DOMRectList) Item(index uint32) (ret DOMRect) {
  1928  	bindings.CallDOMRectListItem(
  1929  		this.ref, js.Pointer(&ret),
  1930  		uint32(index),
  1931  	)
  1932  
  1933  	return
  1934  }
  1935  
  1936  // TryItem calls the method "DOMRectList.item"
  1937  // in a try/catch block and returns (_, err, ok = false) when it went through
  1938  // the catch clause.
  1939  func (this DOMRectList) TryItem(index uint32) (ret DOMRect, exception js.Any, ok bool) {
  1940  	ok = js.True == bindings.TryDOMRectListItem(
  1941  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1942  		uint32(index),
  1943  	)
  1944  
  1945  	return
  1946  }
  1947  
  1948  type CheckVisibilityOptions struct {
  1949  	// CheckOpacity is "CheckVisibilityOptions.checkOpacity"
  1950  	//
  1951  	// Optional, defaults to false.
  1952  	//
  1953  	// NOTE: FFI_USE_CheckOpacity MUST be set to true to make this field effective.
  1954  	CheckOpacity bool
  1955  	// CheckVisibilityCSS is "CheckVisibilityOptions.checkVisibilityCSS"
  1956  	//
  1957  	// Optional, defaults to false.
  1958  	//
  1959  	// NOTE: FFI_USE_CheckVisibilityCSS MUST be set to true to make this field effective.
  1960  	CheckVisibilityCSS bool
  1961  
  1962  	FFI_USE_CheckOpacity       bool // for CheckOpacity.
  1963  	FFI_USE_CheckVisibilityCSS bool // for CheckVisibilityCSS.
  1964  
  1965  	FFI_USE bool
  1966  }
  1967  
  1968  // FromRef calls UpdateFrom and returns a CheckVisibilityOptions with all fields set.
  1969  func (p CheckVisibilityOptions) FromRef(ref js.Ref) CheckVisibilityOptions {
  1970  	p.UpdateFrom(ref)
  1971  	return p
  1972  }
  1973  
  1974  // New creates a new CheckVisibilityOptions in the application heap.
  1975  func (p CheckVisibilityOptions) New() js.Ref {
  1976  	return bindings.CheckVisibilityOptionsJSLoad(
  1977  		js.Pointer(&p), js.True, 0,
  1978  	)
  1979  }
  1980  
  1981  // UpdateFrom copies value of all fields of the heap object to p.
  1982  func (p *CheckVisibilityOptions) UpdateFrom(ref js.Ref) {
  1983  	bindings.CheckVisibilityOptionsJSStore(
  1984  		js.Pointer(p), ref,
  1985  	)
  1986  }
  1987  
  1988  // Update writes all fields of the p to the heap object referenced by ref.
  1989  func (p *CheckVisibilityOptions) Update(ref js.Ref) {
  1990  	bindings.CheckVisibilityOptionsJSLoad(
  1991  		js.Pointer(p), js.False, ref,
  1992  	)
  1993  }
  1994  
  1995  // FreeMembers frees fields with heap reference, if recursive is true
  1996  // free all heap references reachable from p.
  1997  func (p *CheckVisibilityOptions) FreeMembers(recursive bool) {
  1998  }
  1999  
  2000  type ScrollLogicalPosition uint32
  2001  
  2002  const (
  2003  	_ ScrollLogicalPosition = iota
  2004  
  2005  	ScrollLogicalPosition_START
  2006  	ScrollLogicalPosition_CENTER
  2007  	ScrollLogicalPosition_END
  2008  	ScrollLogicalPosition_NEAREST
  2009  )
  2010  
  2011  func (ScrollLogicalPosition) FromRef(str js.Ref) ScrollLogicalPosition {
  2012  	return ScrollLogicalPosition(bindings.ConstOfScrollLogicalPosition(str))
  2013  }
  2014  
  2015  func (x ScrollLogicalPosition) String() (string, bool) {
  2016  	switch x {
  2017  	case ScrollLogicalPosition_START:
  2018  		return "start", true
  2019  	case ScrollLogicalPosition_CENTER:
  2020  		return "center", true
  2021  	case ScrollLogicalPosition_END:
  2022  		return "end", true
  2023  	case ScrollLogicalPosition_NEAREST:
  2024  		return "nearest", true
  2025  	default:
  2026  		return "", false
  2027  	}
  2028  }
  2029  
  2030  type ScrollBehavior uint32
  2031  
  2032  const (
  2033  	_ ScrollBehavior = iota
  2034  
  2035  	ScrollBehavior_AUTO
  2036  	ScrollBehavior_INSTANT
  2037  	ScrollBehavior_SMOOTH
  2038  )
  2039  
  2040  func (ScrollBehavior) FromRef(str js.Ref) ScrollBehavior {
  2041  	return ScrollBehavior(bindings.ConstOfScrollBehavior(str))
  2042  }
  2043  
  2044  func (x ScrollBehavior) String() (string, bool) {
  2045  	switch x {
  2046  	case ScrollBehavior_AUTO:
  2047  		return "auto", true
  2048  	case ScrollBehavior_INSTANT:
  2049  		return "instant", true
  2050  	case ScrollBehavior_SMOOTH:
  2051  		return "smooth", true
  2052  	default:
  2053  		return "", false
  2054  	}
  2055  }
  2056  
  2057  type ScrollIntoViewOptions struct {
  2058  	// Block is "ScrollIntoViewOptions.block"
  2059  	//
  2060  	// Optional, defaults to "start".
  2061  	Block ScrollLogicalPosition
  2062  	// Inline is "ScrollIntoViewOptions.inline"
  2063  	//
  2064  	// Optional, defaults to "nearest".
  2065  	Inline ScrollLogicalPosition
  2066  	// Behavior is "ScrollIntoViewOptions.behavior"
  2067  	//
  2068  	// Optional, defaults to "auto".
  2069  	Behavior ScrollBehavior
  2070  
  2071  	FFI_USE bool
  2072  }
  2073  
  2074  // FromRef calls UpdateFrom and returns a ScrollIntoViewOptions with all fields set.
  2075  func (p ScrollIntoViewOptions) FromRef(ref js.Ref) ScrollIntoViewOptions {
  2076  	p.UpdateFrom(ref)
  2077  	return p
  2078  }
  2079  
  2080  // New creates a new ScrollIntoViewOptions in the application heap.
  2081  func (p ScrollIntoViewOptions) New() js.Ref {
  2082  	return bindings.ScrollIntoViewOptionsJSLoad(
  2083  		js.Pointer(&p), js.True, 0,
  2084  	)
  2085  }
  2086  
  2087  // UpdateFrom copies value of all fields of the heap object to p.
  2088  func (p *ScrollIntoViewOptions) UpdateFrom(ref js.Ref) {
  2089  	bindings.ScrollIntoViewOptionsJSStore(
  2090  		js.Pointer(p), ref,
  2091  	)
  2092  }
  2093  
  2094  // Update writes all fields of the p to the heap object referenced by ref.
  2095  func (p *ScrollIntoViewOptions) Update(ref js.Ref) {
  2096  	bindings.ScrollIntoViewOptionsJSLoad(
  2097  		js.Pointer(p), js.False, ref,
  2098  	)
  2099  }
  2100  
  2101  // FreeMembers frees fields with heap reference, if recursive is true
  2102  // free all heap references reachable from p.
  2103  func (p *ScrollIntoViewOptions) FreeMembers(recursive bool) {
  2104  }
  2105  
  2106  type OneOf_Bool_ScrollIntoViewOptions struct {
  2107  	ref js.Ref
  2108  }
  2109  
  2110  func (x OneOf_Bool_ScrollIntoViewOptions) Ref() js.Ref {
  2111  	return x.ref
  2112  }
  2113  
  2114  func (x OneOf_Bool_ScrollIntoViewOptions) Free() {
  2115  	x.ref.Free()
  2116  }
  2117  
  2118  func (x OneOf_Bool_ScrollIntoViewOptions) FromRef(ref js.Ref) OneOf_Bool_ScrollIntoViewOptions {
  2119  	return OneOf_Bool_ScrollIntoViewOptions{
  2120  		ref: ref,
  2121  	}
  2122  }
  2123  
  2124  func (x OneOf_Bool_ScrollIntoViewOptions) Bool() bool {
  2125  	return x.ref == js.True
  2126  }
  2127  
  2128  func (x OneOf_Bool_ScrollIntoViewOptions) ScrollIntoViewOptions() ScrollIntoViewOptions {
  2129  	var ret ScrollIntoViewOptions
  2130  	ret.UpdateFrom(x.ref)
  2131  	return ret
  2132  }
  2133  
  2134  type ScrollToOptions struct {
  2135  	// Left is "ScrollToOptions.left"
  2136  	//
  2137  	// Optional
  2138  	//
  2139  	// NOTE: FFI_USE_Left MUST be set to true to make this field effective.
  2140  	Left float64
  2141  	// Top is "ScrollToOptions.top"
  2142  	//
  2143  	// Optional
  2144  	//
  2145  	// NOTE: FFI_USE_Top MUST be set to true to make this field effective.
  2146  	Top float64
  2147  	// Behavior is "ScrollToOptions.behavior"
  2148  	//
  2149  	// Optional, defaults to "auto".
  2150  	Behavior ScrollBehavior
  2151  
  2152  	FFI_USE_Left bool // for Left.
  2153  	FFI_USE_Top  bool // for Top.
  2154  
  2155  	FFI_USE bool
  2156  }
  2157  
  2158  // FromRef calls UpdateFrom and returns a ScrollToOptions with all fields set.
  2159  func (p ScrollToOptions) FromRef(ref js.Ref) ScrollToOptions {
  2160  	p.UpdateFrom(ref)
  2161  	return p
  2162  }
  2163  
  2164  // New creates a new ScrollToOptions in the application heap.
  2165  func (p ScrollToOptions) New() js.Ref {
  2166  	return bindings.ScrollToOptionsJSLoad(
  2167  		js.Pointer(&p), js.True, 0,
  2168  	)
  2169  }
  2170  
  2171  // UpdateFrom copies value of all fields of the heap object to p.
  2172  func (p *ScrollToOptions) UpdateFrom(ref js.Ref) {
  2173  	bindings.ScrollToOptionsJSStore(
  2174  		js.Pointer(p), ref,
  2175  	)
  2176  }
  2177  
  2178  // Update writes all fields of the p to the heap object referenced by ref.
  2179  func (p *ScrollToOptions) Update(ref js.Ref) {
  2180  	bindings.ScrollToOptionsJSLoad(
  2181  		js.Pointer(p), js.False, ref,
  2182  	)
  2183  }
  2184  
  2185  // FreeMembers frees fields with heap reference, if recursive is true
  2186  // free all heap references reachable from p.
  2187  func (p *ScrollToOptions) FreeMembers(recursive bool) {
  2188  }
  2189  
  2190  type IterationCompositeOperation uint32
  2191  
  2192  const (
  2193  	_ IterationCompositeOperation = iota
  2194  
  2195  	IterationCompositeOperation_REPLACE
  2196  	IterationCompositeOperation_ACCUMULATE
  2197  )
  2198  
  2199  func (IterationCompositeOperation) FromRef(str js.Ref) IterationCompositeOperation {
  2200  	return IterationCompositeOperation(bindings.ConstOfIterationCompositeOperation(str))
  2201  }
  2202  
  2203  func (x IterationCompositeOperation) String() (string, bool) {
  2204  	switch x {
  2205  	case IterationCompositeOperation_REPLACE:
  2206  		return "replace", true
  2207  	case IterationCompositeOperation_ACCUMULATE:
  2208  		return "accumulate", true
  2209  	default:
  2210  		return "", false
  2211  	}
  2212  }
  2213  
  2214  type TimelineRangeOffset struct {
  2215  	// RangeName is "TimelineRangeOffset.rangeName"
  2216  	//
  2217  	// Optional
  2218  	RangeName js.String
  2219  	// Offset is "TimelineRangeOffset.offset"
  2220  	//
  2221  	// Optional
  2222  	Offset CSSNumericValue
  2223  
  2224  	FFI_USE bool
  2225  }
  2226  
  2227  // FromRef calls UpdateFrom and returns a TimelineRangeOffset with all fields set.
  2228  func (p TimelineRangeOffset) FromRef(ref js.Ref) TimelineRangeOffset {
  2229  	p.UpdateFrom(ref)
  2230  	return p
  2231  }
  2232  
  2233  // New creates a new TimelineRangeOffset in the application heap.
  2234  func (p TimelineRangeOffset) New() js.Ref {
  2235  	return bindings.TimelineRangeOffsetJSLoad(
  2236  		js.Pointer(&p), js.True, 0,
  2237  	)
  2238  }
  2239  
  2240  // UpdateFrom copies value of all fields of the heap object to p.
  2241  func (p *TimelineRangeOffset) UpdateFrom(ref js.Ref) {
  2242  	bindings.TimelineRangeOffsetJSStore(
  2243  		js.Pointer(p), ref,
  2244  	)
  2245  }
  2246  
  2247  // Update writes all fields of the p to the heap object referenced by ref.
  2248  func (p *TimelineRangeOffset) Update(ref js.Ref) {
  2249  	bindings.TimelineRangeOffsetJSLoad(
  2250  		js.Pointer(p), js.False, ref,
  2251  	)
  2252  }
  2253  
  2254  // FreeMembers frees fields with heap reference, if recursive is true
  2255  // free all heap references reachable from p.
  2256  func (p *TimelineRangeOffset) FreeMembers(recursive bool) {
  2257  	js.Free(
  2258  		p.RangeName.Ref(),
  2259  		p.Offset.Ref(),
  2260  	)
  2261  	p.RangeName = p.RangeName.FromRef(js.Undefined)
  2262  	p.Offset = p.Offset.FromRef(js.Undefined)
  2263  }
  2264  
  2265  func NewCSSKeywordValue(value js.String) (ret CSSKeywordValue) {
  2266  	ret.ref = bindings.NewCSSKeywordValueByCSSKeywordValue(
  2267  		value.Ref())
  2268  	return
  2269  }
  2270  
  2271  type CSSKeywordValue struct {
  2272  	CSSStyleValue
  2273  }
  2274  
  2275  func (this CSSKeywordValue) Once() CSSKeywordValue {
  2276  	this.ref.Once()
  2277  	return this
  2278  }
  2279  
  2280  func (this CSSKeywordValue) Ref() js.Ref {
  2281  	return this.CSSStyleValue.Ref()
  2282  }
  2283  
  2284  func (this CSSKeywordValue) FromRef(ref js.Ref) CSSKeywordValue {
  2285  	this.CSSStyleValue = this.CSSStyleValue.FromRef(ref)
  2286  	return this
  2287  }
  2288  
  2289  func (this CSSKeywordValue) Free() {
  2290  	this.ref.Free()
  2291  }
  2292  
  2293  // Value returns the value of property "CSSKeywordValue.value".
  2294  //
  2295  // It returns ok=false if there is no such property.
  2296  func (this CSSKeywordValue) Value() (ret js.String, ok bool) {
  2297  	ok = js.True == bindings.GetCSSKeywordValueValue(
  2298  		this.ref, js.Pointer(&ret),
  2299  	)
  2300  	return
  2301  }
  2302  
  2303  // SetValue sets the value of property "CSSKeywordValue.value" to val.
  2304  //
  2305  // It returns false if the property cannot be set.
  2306  func (this CSSKeywordValue) SetValue(val js.String) bool {
  2307  	return js.True == bindings.SetCSSKeywordValueValue(
  2308  		this.ref,
  2309  		val.Ref(),
  2310  	)
  2311  }
  2312  
  2313  type OneOf_TimelineRangeOffset_CSSNumericValue_CSSKeywordValue_String struct {
  2314  	ref js.Ref
  2315  }
  2316  
  2317  func (x OneOf_TimelineRangeOffset_CSSNumericValue_CSSKeywordValue_String) Ref() js.Ref {
  2318  	return x.ref
  2319  }
  2320  
  2321  func (x OneOf_TimelineRangeOffset_CSSNumericValue_CSSKeywordValue_String) Free() {
  2322  	x.ref.Free()
  2323  }
  2324  
  2325  func (x OneOf_TimelineRangeOffset_CSSNumericValue_CSSKeywordValue_String) FromRef(ref js.Ref) OneOf_TimelineRangeOffset_CSSNumericValue_CSSKeywordValue_String {
  2326  	return OneOf_TimelineRangeOffset_CSSNumericValue_CSSKeywordValue_String{
  2327  		ref: ref,
  2328  	}
  2329  }
  2330  
  2331  func (x OneOf_TimelineRangeOffset_CSSNumericValue_CSSKeywordValue_String) TimelineRangeOffset() TimelineRangeOffset {
  2332  	var ret TimelineRangeOffset
  2333  	ret.UpdateFrom(x.ref)
  2334  	return ret
  2335  }
  2336  
  2337  func (x OneOf_TimelineRangeOffset_CSSNumericValue_CSSKeywordValue_String) CSSNumericValue() CSSNumericValue {
  2338  	return CSSNumericValue{}.FromRef(x.ref)
  2339  }
  2340  
  2341  func (x OneOf_TimelineRangeOffset_CSSNumericValue_CSSKeywordValue_String) CSSKeywordValue() CSSKeywordValue {
  2342  	return CSSKeywordValue{}.FromRef(x.ref)
  2343  }
  2344  
  2345  func (x OneOf_TimelineRangeOffset_CSSNumericValue_CSSKeywordValue_String) String() js.String {
  2346  	return js.String{}.FromRef(x.ref)
  2347  }
  2348  
  2349  type KeyframeAnimationOptions struct {
  2350  	// Id is "KeyframeAnimationOptions.id"
  2351  	//
  2352  	// Optional, defaults to "".
  2353  	Id js.String
  2354  	// Timeline is "KeyframeAnimationOptions.timeline"
  2355  	//
  2356  	// Optional
  2357  	Timeline AnimationTimeline
  2358  	// IterationComposite is "KeyframeAnimationOptions.iterationComposite"
  2359  	//
  2360  	// Optional, defaults to "replace".
  2361  	IterationComposite IterationCompositeOperation
  2362  	// RangeStart is "KeyframeAnimationOptions.rangeStart"
  2363  	//
  2364  	// Optional, defaults to "normal".
  2365  	RangeStart OneOf_TimelineRangeOffset_CSSNumericValue_CSSKeywordValue_String
  2366  	// RangeEnd is "KeyframeAnimationOptions.rangeEnd"
  2367  	//
  2368  	// Optional, defaults to "normal".
  2369  	RangeEnd OneOf_TimelineRangeOffset_CSSNumericValue_CSSKeywordValue_String
  2370  
  2371  	FFI_USE bool
  2372  }
  2373  
  2374  // FromRef calls UpdateFrom and returns a KeyframeAnimationOptions with all fields set.
  2375  func (p KeyframeAnimationOptions) FromRef(ref js.Ref) KeyframeAnimationOptions {
  2376  	p.UpdateFrom(ref)
  2377  	return p
  2378  }
  2379  
  2380  // New creates a new KeyframeAnimationOptions in the application heap.
  2381  func (p KeyframeAnimationOptions) New() js.Ref {
  2382  	return bindings.KeyframeAnimationOptionsJSLoad(
  2383  		js.Pointer(&p), js.True, 0,
  2384  	)
  2385  }
  2386  
  2387  // UpdateFrom copies value of all fields of the heap object to p.
  2388  func (p *KeyframeAnimationOptions) UpdateFrom(ref js.Ref) {
  2389  	bindings.KeyframeAnimationOptionsJSStore(
  2390  		js.Pointer(p), ref,
  2391  	)
  2392  }
  2393  
  2394  // Update writes all fields of the p to the heap object referenced by ref.
  2395  func (p *KeyframeAnimationOptions) Update(ref js.Ref) {
  2396  	bindings.KeyframeAnimationOptionsJSLoad(
  2397  		js.Pointer(p), js.False, ref,
  2398  	)
  2399  }
  2400  
  2401  // FreeMembers frees fields with heap reference, if recursive is true
  2402  // free all heap references reachable from p.
  2403  func (p *KeyframeAnimationOptions) FreeMembers(recursive bool) {
  2404  	js.Free(
  2405  		p.Id.Ref(),
  2406  		p.Timeline.Ref(),
  2407  		p.RangeStart.Ref(),
  2408  		p.RangeEnd.Ref(),
  2409  	)
  2410  	p.Id = p.Id.FromRef(js.Undefined)
  2411  	p.Timeline = p.Timeline.FromRef(js.Undefined)
  2412  	p.RangeStart = p.RangeStart.FromRef(js.Undefined)
  2413  	p.RangeEnd = p.RangeEnd.FromRef(js.Undefined)
  2414  }
  2415  
  2416  type OneOf_Float64_KeyframeAnimationOptions struct {
  2417  	ref js.Ref
  2418  }
  2419  
  2420  func (x OneOf_Float64_KeyframeAnimationOptions) Ref() js.Ref {
  2421  	return x.ref
  2422  }
  2423  
  2424  func (x OneOf_Float64_KeyframeAnimationOptions) Free() {
  2425  	x.ref.Free()
  2426  }
  2427  
  2428  func (x OneOf_Float64_KeyframeAnimationOptions) FromRef(ref js.Ref) OneOf_Float64_KeyframeAnimationOptions {
  2429  	return OneOf_Float64_KeyframeAnimationOptions{
  2430  		ref: ref,
  2431  	}
  2432  }
  2433  
  2434  func (x OneOf_Float64_KeyframeAnimationOptions) Float64() float64 {
  2435  	return js.Number[float64]{}.FromRef(x.ref).Get()
  2436  }
  2437  
  2438  func (x OneOf_Float64_KeyframeAnimationOptions) KeyframeAnimationOptions() KeyframeAnimationOptions {
  2439  	var ret KeyframeAnimationOptions
  2440  	ret.UpdateFrom(x.ref)
  2441  	return ret
  2442  }
  2443  
  2444  type GetAnimationsOptions struct {
  2445  	// Subtree is "GetAnimationsOptions.subtree"
  2446  	//
  2447  	// Optional, defaults to false.
  2448  	//
  2449  	// NOTE: FFI_USE_Subtree MUST be set to true to make this field effective.
  2450  	Subtree bool
  2451  
  2452  	FFI_USE_Subtree bool // for Subtree.
  2453  
  2454  	FFI_USE bool
  2455  }
  2456  
  2457  // FromRef calls UpdateFrom and returns a GetAnimationsOptions with all fields set.
  2458  func (p GetAnimationsOptions) FromRef(ref js.Ref) GetAnimationsOptions {
  2459  	p.UpdateFrom(ref)
  2460  	return p
  2461  }
  2462  
  2463  // New creates a new GetAnimationsOptions in the application heap.
  2464  func (p GetAnimationsOptions) New() js.Ref {
  2465  	return bindings.GetAnimationsOptionsJSLoad(
  2466  		js.Pointer(&p), js.True, 0,
  2467  	)
  2468  }
  2469  
  2470  // UpdateFrom copies value of all fields of the heap object to p.
  2471  func (p *GetAnimationsOptions) UpdateFrom(ref js.Ref) {
  2472  	bindings.GetAnimationsOptionsJSStore(
  2473  		js.Pointer(p), ref,
  2474  	)
  2475  }
  2476  
  2477  // Update writes all fields of the p to the heap object referenced by ref.
  2478  func (p *GetAnimationsOptions) Update(ref js.Ref) {
  2479  	bindings.GetAnimationsOptionsJSLoad(
  2480  		js.Pointer(p), js.False, ref,
  2481  	)
  2482  }
  2483  
  2484  // FreeMembers frees fields with heap reference, if recursive is true
  2485  // free all heap references reachable from p.
  2486  func (p *GetAnimationsOptions) FreeMembers(recursive bool) {
  2487  }
  2488  
  2489  const (
  2490  	Range_START_TO_START uint16 = 0
  2491  	Range_START_TO_END   uint16 = 1
  2492  	Range_END_TO_END     uint16 = 2
  2493  	Range_END_TO_START   uint16 = 3
  2494  )
  2495  
  2496  type Range struct {
  2497  	AbstractRange
  2498  }
  2499  
  2500  func (this Range) Once() Range {
  2501  	this.ref.Once()
  2502  	return this
  2503  }
  2504  
  2505  func (this Range) Ref() js.Ref {
  2506  	return this.AbstractRange.Ref()
  2507  }
  2508  
  2509  func (this Range) FromRef(ref js.Ref) Range {
  2510  	this.AbstractRange = this.AbstractRange.FromRef(ref)
  2511  	return this
  2512  }
  2513  
  2514  func (this Range) Free() {
  2515  	this.ref.Free()
  2516  }
  2517  
  2518  // CommonAncestorContainer returns the value of property "Range.commonAncestorContainer".
  2519  //
  2520  // It returns ok=false if there is no such property.
  2521  func (this Range) CommonAncestorContainer() (ret Node, ok bool) {
  2522  	ok = js.True == bindings.GetRangeCommonAncestorContainer(
  2523  		this.ref, js.Pointer(&ret),
  2524  	)
  2525  	return
  2526  }
  2527  
  2528  // HasFuncSetStart returns true if the method "Range.setStart" exists.
  2529  func (this Range) HasFuncSetStart() bool {
  2530  	return js.True == bindings.HasFuncRangeSetStart(
  2531  		this.ref,
  2532  	)
  2533  }
  2534  
  2535  // FuncSetStart returns the method "Range.setStart".
  2536  func (this Range) FuncSetStart() (fn js.Func[func(node Node, offset uint32)]) {
  2537  	bindings.FuncRangeSetStart(
  2538  		this.ref, js.Pointer(&fn),
  2539  	)
  2540  	return
  2541  }
  2542  
  2543  // SetStart calls the method "Range.setStart".
  2544  func (this Range) SetStart(node Node, offset uint32) (ret js.Void) {
  2545  	bindings.CallRangeSetStart(
  2546  		this.ref, js.Pointer(&ret),
  2547  		node.Ref(),
  2548  		uint32(offset),
  2549  	)
  2550  
  2551  	return
  2552  }
  2553  
  2554  // TrySetStart calls the method "Range.setStart"
  2555  // in a try/catch block and returns (_, err, ok = false) when it went through
  2556  // the catch clause.
  2557  func (this Range) TrySetStart(node Node, offset uint32) (ret js.Void, exception js.Any, ok bool) {
  2558  	ok = js.True == bindings.TryRangeSetStart(
  2559  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  2560  		node.Ref(),
  2561  		uint32(offset),
  2562  	)
  2563  
  2564  	return
  2565  }
  2566  
  2567  // HasFuncSetEnd returns true if the method "Range.setEnd" exists.
  2568  func (this Range) HasFuncSetEnd() bool {
  2569  	return js.True == bindings.HasFuncRangeSetEnd(
  2570  		this.ref,
  2571  	)
  2572  }
  2573  
  2574  // FuncSetEnd returns the method "Range.setEnd".
  2575  func (this Range) FuncSetEnd() (fn js.Func[func(node Node, offset uint32)]) {
  2576  	bindings.FuncRangeSetEnd(
  2577  		this.ref, js.Pointer(&fn),
  2578  	)
  2579  	return
  2580  }
  2581  
  2582  // SetEnd calls the method "Range.setEnd".
  2583  func (this Range) SetEnd(node Node, offset uint32) (ret js.Void) {
  2584  	bindings.CallRangeSetEnd(
  2585  		this.ref, js.Pointer(&ret),
  2586  		node.Ref(),
  2587  		uint32(offset),
  2588  	)
  2589  
  2590  	return
  2591  }
  2592  
  2593  // TrySetEnd calls the method "Range.setEnd"
  2594  // in a try/catch block and returns (_, err, ok = false) when it went through
  2595  // the catch clause.
  2596  func (this Range) TrySetEnd(node Node, offset uint32) (ret js.Void, exception js.Any, ok bool) {
  2597  	ok = js.True == bindings.TryRangeSetEnd(
  2598  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  2599  		node.Ref(),
  2600  		uint32(offset),
  2601  	)
  2602  
  2603  	return
  2604  }
  2605  
  2606  // HasFuncSetStartBefore returns true if the method "Range.setStartBefore" exists.
  2607  func (this Range) HasFuncSetStartBefore() bool {
  2608  	return js.True == bindings.HasFuncRangeSetStartBefore(
  2609  		this.ref,
  2610  	)
  2611  }
  2612  
  2613  // FuncSetStartBefore returns the method "Range.setStartBefore".
  2614  func (this Range) FuncSetStartBefore() (fn js.Func[func(node Node)]) {
  2615  	bindings.FuncRangeSetStartBefore(
  2616  		this.ref, js.Pointer(&fn),
  2617  	)
  2618  	return
  2619  }
  2620  
  2621  // SetStartBefore calls the method "Range.setStartBefore".
  2622  func (this Range) SetStartBefore(node Node) (ret js.Void) {
  2623  	bindings.CallRangeSetStartBefore(
  2624  		this.ref, js.Pointer(&ret),
  2625  		node.Ref(),
  2626  	)
  2627  
  2628  	return
  2629  }
  2630  
  2631  // TrySetStartBefore calls the method "Range.setStartBefore"
  2632  // in a try/catch block and returns (_, err, ok = false) when it went through
  2633  // the catch clause.
  2634  func (this Range) TrySetStartBefore(node Node) (ret js.Void, exception js.Any, ok bool) {
  2635  	ok = js.True == bindings.TryRangeSetStartBefore(
  2636  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  2637  		node.Ref(),
  2638  	)
  2639  
  2640  	return
  2641  }
  2642  
  2643  // HasFuncSetStartAfter returns true if the method "Range.setStartAfter" exists.
  2644  func (this Range) HasFuncSetStartAfter() bool {
  2645  	return js.True == bindings.HasFuncRangeSetStartAfter(
  2646  		this.ref,
  2647  	)
  2648  }
  2649  
  2650  // FuncSetStartAfter returns the method "Range.setStartAfter".
  2651  func (this Range) FuncSetStartAfter() (fn js.Func[func(node Node)]) {
  2652  	bindings.FuncRangeSetStartAfter(
  2653  		this.ref, js.Pointer(&fn),
  2654  	)
  2655  	return
  2656  }
  2657  
  2658  // SetStartAfter calls the method "Range.setStartAfter".
  2659  func (this Range) SetStartAfter(node Node) (ret js.Void) {
  2660  	bindings.CallRangeSetStartAfter(
  2661  		this.ref, js.Pointer(&ret),
  2662  		node.Ref(),
  2663  	)
  2664  
  2665  	return
  2666  }
  2667  
  2668  // TrySetStartAfter calls the method "Range.setStartAfter"
  2669  // in a try/catch block and returns (_, err, ok = false) when it went through
  2670  // the catch clause.
  2671  func (this Range) TrySetStartAfter(node Node) (ret js.Void, exception js.Any, ok bool) {
  2672  	ok = js.True == bindings.TryRangeSetStartAfter(
  2673  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  2674  		node.Ref(),
  2675  	)
  2676  
  2677  	return
  2678  }
  2679  
  2680  // HasFuncSetEndBefore returns true if the method "Range.setEndBefore" exists.
  2681  func (this Range) HasFuncSetEndBefore() bool {
  2682  	return js.True == bindings.HasFuncRangeSetEndBefore(
  2683  		this.ref,
  2684  	)
  2685  }
  2686  
  2687  // FuncSetEndBefore returns the method "Range.setEndBefore".
  2688  func (this Range) FuncSetEndBefore() (fn js.Func[func(node Node)]) {
  2689  	bindings.FuncRangeSetEndBefore(
  2690  		this.ref, js.Pointer(&fn),
  2691  	)
  2692  	return
  2693  }
  2694  
  2695  // SetEndBefore calls the method "Range.setEndBefore".
  2696  func (this Range) SetEndBefore(node Node) (ret js.Void) {
  2697  	bindings.CallRangeSetEndBefore(
  2698  		this.ref, js.Pointer(&ret),
  2699  		node.Ref(),
  2700  	)
  2701  
  2702  	return
  2703  }
  2704  
  2705  // TrySetEndBefore calls the method "Range.setEndBefore"
  2706  // in a try/catch block and returns (_, err, ok = false) when it went through
  2707  // the catch clause.
  2708  func (this Range) TrySetEndBefore(node Node) (ret js.Void, exception js.Any, ok bool) {
  2709  	ok = js.True == bindings.TryRangeSetEndBefore(
  2710  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  2711  		node.Ref(),
  2712  	)
  2713  
  2714  	return
  2715  }
  2716  
  2717  // HasFuncSetEndAfter returns true if the method "Range.setEndAfter" exists.
  2718  func (this Range) HasFuncSetEndAfter() bool {
  2719  	return js.True == bindings.HasFuncRangeSetEndAfter(
  2720  		this.ref,
  2721  	)
  2722  }
  2723  
  2724  // FuncSetEndAfter returns the method "Range.setEndAfter".
  2725  func (this Range) FuncSetEndAfter() (fn js.Func[func(node Node)]) {
  2726  	bindings.FuncRangeSetEndAfter(
  2727  		this.ref, js.Pointer(&fn),
  2728  	)
  2729  	return
  2730  }
  2731  
  2732  // SetEndAfter calls the method "Range.setEndAfter".
  2733  func (this Range) SetEndAfter(node Node) (ret js.Void) {
  2734  	bindings.CallRangeSetEndAfter(
  2735  		this.ref, js.Pointer(&ret),
  2736  		node.Ref(),
  2737  	)
  2738  
  2739  	return
  2740  }
  2741  
  2742  // TrySetEndAfter calls the method "Range.setEndAfter"
  2743  // in a try/catch block and returns (_, err, ok = false) when it went through
  2744  // the catch clause.
  2745  func (this Range) TrySetEndAfter(node Node) (ret js.Void, exception js.Any, ok bool) {
  2746  	ok = js.True == bindings.TryRangeSetEndAfter(
  2747  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  2748  		node.Ref(),
  2749  	)
  2750  
  2751  	return
  2752  }
  2753  
  2754  // HasFuncCollapse returns true if the method "Range.collapse" exists.
  2755  func (this Range) HasFuncCollapse() bool {
  2756  	return js.True == bindings.HasFuncRangeCollapse(
  2757  		this.ref,
  2758  	)
  2759  }
  2760  
  2761  // FuncCollapse returns the method "Range.collapse".
  2762  func (this Range) FuncCollapse() (fn js.Func[func(toStart bool)]) {
  2763  	bindings.FuncRangeCollapse(
  2764  		this.ref, js.Pointer(&fn),
  2765  	)
  2766  	return
  2767  }
  2768  
  2769  // Collapse calls the method "Range.collapse".
  2770  func (this Range) Collapse(toStart bool) (ret js.Void) {
  2771  	bindings.CallRangeCollapse(
  2772  		this.ref, js.Pointer(&ret),
  2773  		js.Bool(bool(toStart)),
  2774  	)
  2775  
  2776  	return
  2777  }
  2778  
  2779  // TryCollapse calls the method "Range.collapse"
  2780  // in a try/catch block and returns (_, err, ok = false) when it went through
  2781  // the catch clause.
  2782  func (this Range) TryCollapse(toStart bool) (ret js.Void, exception js.Any, ok bool) {
  2783  	ok = js.True == bindings.TryRangeCollapse(
  2784  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  2785  		js.Bool(bool(toStart)),
  2786  	)
  2787  
  2788  	return
  2789  }
  2790  
  2791  // HasFuncCollapse1 returns true if the method "Range.collapse" exists.
  2792  func (this Range) HasFuncCollapse1() bool {
  2793  	return js.True == bindings.HasFuncRangeCollapse1(
  2794  		this.ref,
  2795  	)
  2796  }
  2797  
  2798  // FuncCollapse1 returns the method "Range.collapse".
  2799  func (this Range) FuncCollapse1() (fn js.Func[func()]) {
  2800  	bindings.FuncRangeCollapse1(
  2801  		this.ref, js.Pointer(&fn),
  2802  	)
  2803  	return
  2804  }
  2805  
  2806  // Collapse1 calls the method "Range.collapse".
  2807  func (this Range) Collapse1() (ret js.Void) {
  2808  	bindings.CallRangeCollapse1(
  2809  		this.ref, js.Pointer(&ret),
  2810  	)
  2811  
  2812  	return
  2813  }
  2814  
  2815  // TryCollapse1 calls the method "Range.collapse"
  2816  // in a try/catch block and returns (_, err, ok = false) when it went through
  2817  // the catch clause.
  2818  func (this Range) TryCollapse1() (ret js.Void, exception js.Any, ok bool) {
  2819  	ok = js.True == bindings.TryRangeCollapse1(
  2820  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  2821  	)
  2822  
  2823  	return
  2824  }
  2825  
  2826  // HasFuncSelectNode returns true if the method "Range.selectNode" exists.
  2827  func (this Range) HasFuncSelectNode() bool {
  2828  	return js.True == bindings.HasFuncRangeSelectNode(
  2829  		this.ref,
  2830  	)
  2831  }
  2832  
  2833  // FuncSelectNode returns the method "Range.selectNode".
  2834  func (this Range) FuncSelectNode() (fn js.Func[func(node Node)]) {
  2835  	bindings.FuncRangeSelectNode(
  2836  		this.ref, js.Pointer(&fn),
  2837  	)
  2838  	return
  2839  }
  2840  
  2841  // SelectNode calls the method "Range.selectNode".
  2842  func (this Range) SelectNode(node Node) (ret js.Void) {
  2843  	bindings.CallRangeSelectNode(
  2844  		this.ref, js.Pointer(&ret),
  2845  		node.Ref(),
  2846  	)
  2847  
  2848  	return
  2849  }
  2850  
  2851  // TrySelectNode calls the method "Range.selectNode"
  2852  // in a try/catch block and returns (_, err, ok = false) when it went through
  2853  // the catch clause.
  2854  func (this Range) TrySelectNode(node Node) (ret js.Void, exception js.Any, ok bool) {
  2855  	ok = js.True == bindings.TryRangeSelectNode(
  2856  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  2857  		node.Ref(),
  2858  	)
  2859  
  2860  	return
  2861  }
  2862  
  2863  // HasFuncSelectNodeContents returns true if the method "Range.selectNodeContents" exists.
  2864  func (this Range) HasFuncSelectNodeContents() bool {
  2865  	return js.True == bindings.HasFuncRangeSelectNodeContents(
  2866  		this.ref,
  2867  	)
  2868  }
  2869  
  2870  // FuncSelectNodeContents returns the method "Range.selectNodeContents".
  2871  func (this Range) FuncSelectNodeContents() (fn js.Func[func(node Node)]) {
  2872  	bindings.FuncRangeSelectNodeContents(
  2873  		this.ref, js.Pointer(&fn),
  2874  	)
  2875  	return
  2876  }
  2877  
  2878  // SelectNodeContents calls the method "Range.selectNodeContents".
  2879  func (this Range) SelectNodeContents(node Node) (ret js.Void) {
  2880  	bindings.CallRangeSelectNodeContents(
  2881  		this.ref, js.Pointer(&ret),
  2882  		node.Ref(),
  2883  	)
  2884  
  2885  	return
  2886  }
  2887  
  2888  // TrySelectNodeContents calls the method "Range.selectNodeContents"
  2889  // in a try/catch block and returns (_, err, ok = false) when it went through
  2890  // the catch clause.
  2891  func (this Range) TrySelectNodeContents(node Node) (ret js.Void, exception js.Any, ok bool) {
  2892  	ok = js.True == bindings.TryRangeSelectNodeContents(
  2893  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  2894  		node.Ref(),
  2895  	)
  2896  
  2897  	return
  2898  }
  2899  
  2900  // HasFuncCompareBoundaryPoints returns true if the method "Range.compareBoundaryPoints" exists.
  2901  func (this Range) HasFuncCompareBoundaryPoints() bool {
  2902  	return js.True == bindings.HasFuncRangeCompareBoundaryPoints(
  2903  		this.ref,
  2904  	)
  2905  }
  2906  
  2907  // FuncCompareBoundaryPoints returns the method "Range.compareBoundaryPoints".
  2908  func (this Range) FuncCompareBoundaryPoints() (fn js.Func[func(how uint16, sourceRange Range) int16]) {
  2909  	bindings.FuncRangeCompareBoundaryPoints(
  2910  		this.ref, js.Pointer(&fn),
  2911  	)
  2912  	return
  2913  }
  2914  
  2915  // CompareBoundaryPoints calls the method "Range.compareBoundaryPoints".
  2916  func (this Range) CompareBoundaryPoints(how uint16, sourceRange Range) (ret int16) {
  2917  	bindings.CallRangeCompareBoundaryPoints(
  2918  		this.ref, js.Pointer(&ret),
  2919  		uint32(how),
  2920  		sourceRange.Ref(),
  2921  	)
  2922  
  2923  	return
  2924  }
  2925  
  2926  // TryCompareBoundaryPoints calls the method "Range.compareBoundaryPoints"
  2927  // in a try/catch block and returns (_, err, ok = false) when it went through
  2928  // the catch clause.
  2929  func (this Range) TryCompareBoundaryPoints(how uint16, sourceRange Range) (ret int16, exception js.Any, ok bool) {
  2930  	ok = js.True == bindings.TryRangeCompareBoundaryPoints(
  2931  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  2932  		uint32(how),
  2933  		sourceRange.Ref(),
  2934  	)
  2935  
  2936  	return
  2937  }
  2938  
  2939  // HasFuncDeleteContents returns true if the method "Range.deleteContents" exists.
  2940  func (this Range) HasFuncDeleteContents() bool {
  2941  	return js.True == bindings.HasFuncRangeDeleteContents(
  2942  		this.ref,
  2943  	)
  2944  }
  2945  
  2946  // FuncDeleteContents returns the method "Range.deleteContents".
  2947  func (this Range) FuncDeleteContents() (fn js.Func[func()]) {
  2948  	bindings.FuncRangeDeleteContents(
  2949  		this.ref, js.Pointer(&fn),
  2950  	)
  2951  	return
  2952  }
  2953  
  2954  // DeleteContents calls the method "Range.deleteContents".
  2955  func (this Range) DeleteContents() (ret js.Void) {
  2956  	bindings.CallRangeDeleteContents(
  2957  		this.ref, js.Pointer(&ret),
  2958  	)
  2959  
  2960  	return
  2961  }
  2962  
  2963  // TryDeleteContents calls the method "Range.deleteContents"
  2964  // in a try/catch block and returns (_, err, ok = false) when it went through
  2965  // the catch clause.
  2966  func (this Range) TryDeleteContents() (ret js.Void, exception js.Any, ok bool) {
  2967  	ok = js.True == bindings.TryRangeDeleteContents(
  2968  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  2969  	)
  2970  
  2971  	return
  2972  }
  2973  
  2974  // HasFuncExtractContents returns true if the method "Range.extractContents" exists.
  2975  func (this Range) HasFuncExtractContents() bool {
  2976  	return js.True == bindings.HasFuncRangeExtractContents(
  2977  		this.ref,
  2978  	)
  2979  }
  2980  
  2981  // FuncExtractContents returns the method "Range.extractContents".
  2982  func (this Range) FuncExtractContents() (fn js.Func[func() DocumentFragment]) {
  2983  	bindings.FuncRangeExtractContents(
  2984  		this.ref, js.Pointer(&fn),
  2985  	)
  2986  	return
  2987  }
  2988  
  2989  // ExtractContents calls the method "Range.extractContents".
  2990  func (this Range) ExtractContents() (ret DocumentFragment) {
  2991  	bindings.CallRangeExtractContents(
  2992  		this.ref, js.Pointer(&ret),
  2993  	)
  2994  
  2995  	return
  2996  }
  2997  
  2998  // TryExtractContents calls the method "Range.extractContents"
  2999  // in a try/catch block and returns (_, err, ok = false) when it went through
  3000  // the catch clause.
  3001  func (this Range) TryExtractContents() (ret DocumentFragment, exception js.Any, ok bool) {
  3002  	ok = js.True == bindings.TryRangeExtractContents(
  3003  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3004  	)
  3005  
  3006  	return
  3007  }
  3008  
  3009  // HasFuncCloneContents returns true if the method "Range.cloneContents" exists.
  3010  func (this Range) HasFuncCloneContents() bool {
  3011  	return js.True == bindings.HasFuncRangeCloneContents(
  3012  		this.ref,
  3013  	)
  3014  }
  3015  
  3016  // FuncCloneContents returns the method "Range.cloneContents".
  3017  func (this Range) FuncCloneContents() (fn js.Func[func() DocumentFragment]) {
  3018  	bindings.FuncRangeCloneContents(
  3019  		this.ref, js.Pointer(&fn),
  3020  	)
  3021  	return
  3022  }
  3023  
  3024  // CloneContents calls the method "Range.cloneContents".
  3025  func (this Range) CloneContents() (ret DocumentFragment) {
  3026  	bindings.CallRangeCloneContents(
  3027  		this.ref, js.Pointer(&ret),
  3028  	)
  3029  
  3030  	return
  3031  }
  3032  
  3033  // TryCloneContents calls the method "Range.cloneContents"
  3034  // in a try/catch block and returns (_, err, ok = false) when it went through
  3035  // the catch clause.
  3036  func (this Range) TryCloneContents() (ret DocumentFragment, exception js.Any, ok bool) {
  3037  	ok = js.True == bindings.TryRangeCloneContents(
  3038  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3039  	)
  3040  
  3041  	return
  3042  }
  3043  
  3044  // HasFuncInsertNode returns true if the method "Range.insertNode" exists.
  3045  func (this Range) HasFuncInsertNode() bool {
  3046  	return js.True == bindings.HasFuncRangeInsertNode(
  3047  		this.ref,
  3048  	)
  3049  }
  3050  
  3051  // FuncInsertNode returns the method "Range.insertNode".
  3052  func (this Range) FuncInsertNode() (fn js.Func[func(node Node)]) {
  3053  	bindings.FuncRangeInsertNode(
  3054  		this.ref, js.Pointer(&fn),
  3055  	)
  3056  	return
  3057  }
  3058  
  3059  // InsertNode calls the method "Range.insertNode".
  3060  func (this Range) InsertNode(node Node) (ret js.Void) {
  3061  	bindings.CallRangeInsertNode(
  3062  		this.ref, js.Pointer(&ret),
  3063  		node.Ref(),
  3064  	)
  3065  
  3066  	return
  3067  }
  3068  
  3069  // TryInsertNode calls the method "Range.insertNode"
  3070  // in a try/catch block and returns (_, err, ok = false) when it went through
  3071  // the catch clause.
  3072  func (this Range) TryInsertNode(node Node) (ret js.Void, exception js.Any, ok bool) {
  3073  	ok = js.True == bindings.TryRangeInsertNode(
  3074  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3075  		node.Ref(),
  3076  	)
  3077  
  3078  	return
  3079  }
  3080  
  3081  // HasFuncSurroundContents returns true if the method "Range.surroundContents" exists.
  3082  func (this Range) HasFuncSurroundContents() bool {
  3083  	return js.True == bindings.HasFuncRangeSurroundContents(
  3084  		this.ref,
  3085  	)
  3086  }
  3087  
  3088  // FuncSurroundContents returns the method "Range.surroundContents".
  3089  func (this Range) FuncSurroundContents() (fn js.Func[func(newParent Node)]) {
  3090  	bindings.FuncRangeSurroundContents(
  3091  		this.ref, js.Pointer(&fn),
  3092  	)
  3093  	return
  3094  }
  3095  
  3096  // SurroundContents calls the method "Range.surroundContents".
  3097  func (this Range) SurroundContents(newParent Node) (ret js.Void) {
  3098  	bindings.CallRangeSurroundContents(
  3099  		this.ref, js.Pointer(&ret),
  3100  		newParent.Ref(),
  3101  	)
  3102  
  3103  	return
  3104  }
  3105  
  3106  // TrySurroundContents calls the method "Range.surroundContents"
  3107  // in a try/catch block and returns (_, err, ok = false) when it went through
  3108  // the catch clause.
  3109  func (this Range) TrySurroundContents(newParent Node) (ret js.Void, exception js.Any, ok bool) {
  3110  	ok = js.True == bindings.TryRangeSurroundContents(
  3111  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3112  		newParent.Ref(),
  3113  	)
  3114  
  3115  	return
  3116  }
  3117  
  3118  // HasFuncCloneRange returns true if the method "Range.cloneRange" exists.
  3119  func (this Range) HasFuncCloneRange() bool {
  3120  	return js.True == bindings.HasFuncRangeCloneRange(
  3121  		this.ref,
  3122  	)
  3123  }
  3124  
  3125  // FuncCloneRange returns the method "Range.cloneRange".
  3126  func (this Range) FuncCloneRange() (fn js.Func[func() Range]) {
  3127  	bindings.FuncRangeCloneRange(
  3128  		this.ref, js.Pointer(&fn),
  3129  	)
  3130  	return
  3131  }
  3132  
  3133  // CloneRange calls the method "Range.cloneRange".
  3134  func (this Range) CloneRange() (ret Range) {
  3135  	bindings.CallRangeCloneRange(
  3136  		this.ref, js.Pointer(&ret),
  3137  	)
  3138  
  3139  	return
  3140  }
  3141  
  3142  // TryCloneRange calls the method "Range.cloneRange"
  3143  // in a try/catch block and returns (_, err, ok = false) when it went through
  3144  // the catch clause.
  3145  func (this Range) TryCloneRange() (ret Range, exception js.Any, ok bool) {
  3146  	ok = js.True == bindings.TryRangeCloneRange(
  3147  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3148  	)
  3149  
  3150  	return
  3151  }
  3152  
  3153  // HasFuncDetach returns true if the method "Range.detach" exists.
  3154  func (this Range) HasFuncDetach() bool {
  3155  	return js.True == bindings.HasFuncRangeDetach(
  3156  		this.ref,
  3157  	)
  3158  }
  3159  
  3160  // FuncDetach returns the method "Range.detach".
  3161  func (this Range) FuncDetach() (fn js.Func[func()]) {
  3162  	bindings.FuncRangeDetach(
  3163  		this.ref, js.Pointer(&fn),
  3164  	)
  3165  	return
  3166  }
  3167  
  3168  // Detach calls the method "Range.detach".
  3169  func (this Range) Detach() (ret js.Void) {
  3170  	bindings.CallRangeDetach(
  3171  		this.ref, js.Pointer(&ret),
  3172  	)
  3173  
  3174  	return
  3175  }
  3176  
  3177  // TryDetach calls the method "Range.detach"
  3178  // in a try/catch block and returns (_, err, ok = false) when it went through
  3179  // the catch clause.
  3180  func (this Range) TryDetach() (ret js.Void, exception js.Any, ok bool) {
  3181  	ok = js.True == bindings.TryRangeDetach(
  3182  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3183  	)
  3184  
  3185  	return
  3186  }
  3187  
  3188  // HasFuncIsPointInRange returns true if the method "Range.isPointInRange" exists.
  3189  func (this Range) HasFuncIsPointInRange() bool {
  3190  	return js.True == bindings.HasFuncRangeIsPointInRange(
  3191  		this.ref,
  3192  	)
  3193  }
  3194  
  3195  // FuncIsPointInRange returns the method "Range.isPointInRange".
  3196  func (this Range) FuncIsPointInRange() (fn js.Func[func(node Node, offset uint32) bool]) {
  3197  	bindings.FuncRangeIsPointInRange(
  3198  		this.ref, js.Pointer(&fn),
  3199  	)
  3200  	return
  3201  }
  3202  
  3203  // IsPointInRange calls the method "Range.isPointInRange".
  3204  func (this Range) IsPointInRange(node Node, offset uint32) (ret bool) {
  3205  	bindings.CallRangeIsPointInRange(
  3206  		this.ref, js.Pointer(&ret),
  3207  		node.Ref(),
  3208  		uint32(offset),
  3209  	)
  3210  
  3211  	return
  3212  }
  3213  
  3214  // TryIsPointInRange calls the method "Range.isPointInRange"
  3215  // in a try/catch block and returns (_, err, ok = false) when it went through
  3216  // the catch clause.
  3217  func (this Range) TryIsPointInRange(node Node, offset uint32) (ret bool, exception js.Any, ok bool) {
  3218  	ok = js.True == bindings.TryRangeIsPointInRange(
  3219  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3220  		node.Ref(),
  3221  		uint32(offset),
  3222  	)
  3223  
  3224  	return
  3225  }
  3226  
  3227  // HasFuncComparePoint returns true if the method "Range.comparePoint" exists.
  3228  func (this Range) HasFuncComparePoint() bool {
  3229  	return js.True == bindings.HasFuncRangeComparePoint(
  3230  		this.ref,
  3231  	)
  3232  }
  3233  
  3234  // FuncComparePoint returns the method "Range.comparePoint".
  3235  func (this Range) FuncComparePoint() (fn js.Func[func(node Node, offset uint32) int16]) {
  3236  	bindings.FuncRangeComparePoint(
  3237  		this.ref, js.Pointer(&fn),
  3238  	)
  3239  	return
  3240  }
  3241  
  3242  // ComparePoint calls the method "Range.comparePoint".
  3243  func (this Range) ComparePoint(node Node, offset uint32) (ret int16) {
  3244  	bindings.CallRangeComparePoint(
  3245  		this.ref, js.Pointer(&ret),
  3246  		node.Ref(),
  3247  		uint32(offset),
  3248  	)
  3249  
  3250  	return
  3251  }
  3252  
  3253  // TryComparePoint calls the method "Range.comparePoint"
  3254  // in a try/catch block and returns (_, err, ok = false) when it went through
  3255  // the catch clause.
  3256  func (this Range) TryComparePoint(node Node, offset uint32) (ret int16, exception js.Any, ok bool) {
  3257  	ok = js.True == bindings.TryRangeComparePoint(
  3258  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3259  		node.Ref(),
  3260  		uint32(offset),
  3261  	)
  3262  
  3263  	return
  3264  }
  3265  
  3266  // HasFuncIntersectsNode returns true if the method "Range.intersectsNode" exists.
  3267  func (this Range) HasFuncIntersectsNode() bool {
  3268  	return js.True == bindings.HasFuncRangeIntersectsNode(
  3269  		this.ref,
  3270  	)
  3271  }
  3272  
  3273  // FuncIntersectsNode returns the method "Range.intersectsNode".
  3274  func (this Range) FuncIntersectsNode() (fn js.Func[func(node Node) bool]) {
  3275  	bindings.FuncRangeIntersectsNode(
  3276  		this.ref, js.Pointer(&fn),
  3277  	)
  3278  	return
  3279  }
  3280  
  3281  // IntersectsNode calls the method "Range.intersectsNode".
  3282  func (this Range) IntersectsNode(node Node) (ret bool) {
  3283  	bindings.CallRangeIntersectsNode(
  3284  		this.ref, js.Pointer(&ret),
  3285  		node.Ref(),
  3286  	)
  3287  
  3288  	return
  3289  }
  3290  
  3291  // TryIntersectsNode calls the method "Range.intersectsNode"
  3292  // in a try/catch block and returns (_, err, ok = false) when it went through
  3293  // the catch clause.
  3294  func (this Range) TryIntersectsNode(node Node) (ret bool, exception js.Any, ok bool) {
  3295  	ok = js.True == bindings.TryRangeIntersectsNode(
  3296  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3297  		node.Ref(),
  3298  	)
  3299  
  3300  	return
  3301  }
  3302  
  3303  // HasFuncToString returns true if the method "Range.toString" exists.
  3304  func (this Range) HasFuncToString() bool {
  3305  	return js.True == bindings.HasFuncRangeToString(
  3306  		this.ref,
  3307  	)
  3308  }
  3309  
  3310  // FuncToString returns the method "Range.toString".
  3311  func (this Range) FuncToString() (fn js.Func[func() js.String]) {
  3312  	bindings.FuncRangeToString(
  3313  		this.ref, js.Pointer(&fn),
  3314  	)
  3315  	return
  3316  }
  3317  
  3318  // ToString calls the method "Range.toString".
  3319  func (this Range) ToString() (ret js.String) {
  3320  	bindings.CallRangeToString(
  3321  		this.ref, js.Pointer(&ret),
  3322  	)
  3323  
  3324  	return
  3325  }
  3326  
  3327  // TryToString calls the method "Range.toString"
  3328  // in a try/catch block and returns (_, err, ok = false) when it went through
  3329  // the catch clause.
  3330  func (this Range) TryToString() (ret js.String, exception js.Any, ok bool) {
  3331  	ok = js.True == bindings.TryRangeToString(
  3332  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3333  	)
  3334  
  3335  	return
  3336  }
  3337  
  3338  // HasFuncGetClientRects returns true if the method "Range.getClientRects" exists.
  3339  func (this Range) HasFuncGetClientRects() bool {
  3340  	return js.True == bindings.HasFuncRangeGetClientRects(
  3341  		this.ref,
  3342  	)
  3343  }
  3344  
  3345  // FuncGetClientRects returns the method "Range.getClientRects".
  3346  func (this Range) FuncGetClientRects() (fn js.Func[func() DOMRectList]) {
  3347  	bindings.FuncRangeGetClientRects(
  3348  		this.ref, js.Pointer(&fn),
  3349  	)
  3350  	return
  3351  }
  3352  
  3353  // GetClientRects calls the method "Range.getClientRects".
  3354  func (this Range) GetClientRects() (ret DOMRectList) {
  3355  	bindings.CallRangeGetClientRects(
  3356  		this.ref, js.Pointer(&ret),
  3357  	)
  3358  
  3359  	return
  3360  }
  3361  
  3362  // TryGetClientRects calls the method "Range.getClientRects"
  3363  // in a try/catch block and returns (_, err, ok = false) when it went through
  3364  // the catch clause.
  3365  func (this Range) TryGetClientRects() (ret DOMRectList, exception js.Any, ok bool) {
  3366  	ok = js.True == bindings.TryRangeGetClientRects(
  3367  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3368  	)
  3369  
  3370  	return
  3371  }
  3372  
  3373  // HasFuncGetBoundingClientRect returns true if the method "Range.getBoundingClientRect" exists.
  3374  func (this Range) HasFuncGetBoundingClientRect() bool {
  3375  	return js.True == bindings.HasFuncRangeGetBoundingClientRect(
  3376  		this.ref,
  3377  	)
  3378  }
  3379  
  3380  // FuncGetBoundingClientRect returns the method "Range.getBoundingClientRect".
  3381  func (this Range) FuncGetBoundingClientRect() (fn js.Func[func() DOMRect]) {
  3382  	bindings.FuncRangeGetBoundingClientRect(
  3383  		this.ref, js.Pointer(&fn),
  3384  	)
  3385  	return
  3386  }
  3387  
  3388  // GetBoundingClientRect calls the method "Range.getBoundingClientRect".
  3389  func (this Range) GetBoundingClientRect() (ret DOMRect) {
  3390  	bindings.CallRangeGetBoundingClientRect(
  3391  		this.ref, js.Pointer(&ret),
  3392  	)
  3393  
  3394  	return
  3395  }
  3396  
  3397  // TryGetBoundingClientRect calls the method "Range.getBoundingClientRect"
  3398  // in a try/catch block and returns (_, err, ok = false) when it went through
  3399  // the catch clause.
  3400  func (this Range) TryGetBoundingClientRect() (ret DOMRect, exception js.Any, ok bool) {
  3401  	ok = js.True == bindings.TryRangeGetBoundingClientRect(
  3402  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3403  	)
  3404  
  3405  	return
  3406  }
  3407  
  3408  // HasFuncCreateContextualFragment returns true if the method "Range.createContextualFragment" exists.
  3409  func (this Range) HasFuncCreateContextualFragment() bool {
  3410  	return js.True == bindings.HasFuncRangeCreateContextualFragment(
  3411  		this.ref,
  3412  	)
  3413  }
  3414  
  3415  // FuncCreateContextualFragment returns the method "Range.createContextualFragment".
  3416  func (this Range) FuncCreateContextualFragment() (fn js.Func[func(fragment js.String) DocumentFragment]) {
  3417  	bindings.FuncRangeCreateContextualFragment(
  3418  		this.ref, js.Pointer(&fn),
  3419  	)
  3420  	return
  3421  }
  3422  
  3423  // CreateContextualFragment calls the method "Range.createContextualFragment".
  3424  func (this Range) CreateContextualFragment(fragment js.String) (ret DocumentFragment) {
  3425  	bindings.CallRangeCreateContextualFragment(
  3426  		this.ref, js.Pointer(&ret),
  3427  		fragment.Ref(),
  3428  	)
  3429  
  3430  	return
  3431  }
  3432  
  3433  // TryCreateContextualFragment calls the method "Range.createContextualFragment"
  3434  // in a try/catch block and returns (_, err, ok = false) when it went through
  3435  // the catch clause.
  3436  func (this Range) TryCreateContextualFragment(fragment js.String) (ret DocumentFragment, exception js.Any, ok bool) {
  3437  	ok = js.True == bindings.TryRangeCreateContextualFragment(
  3438  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3439  		fragment.Ref(),
  3440  	)
  3441  
  3442  	return
  3443  }
  3444  
  3445  type DOMTokenList struct {
  3446  	ref js.Ref
  3447  }
  3448  
  3449  func (this DOMTokenList) Once() DOMTokenList {
  3450  	this.ref.Once()
  3451  	return this
  3452  }
  3453  
  3454  func (this DOMTokenList) Ref() js.Ref {
  3455  	return this.ref
  3456  }
  3457  
  3458  func (this DOMTokenList) FromRef(ref js.Ref) DOMTokenList {
  3459  	this.ref = ref
  3460  	return this
  3461  }
  3462  
  3463  func (this DOMTokenList) Free() {
  3464  	this.ref.Free()
  3465  }
  3466  
  3467  // Length returns the value of property "DOMTokenList.length".
  3468  //
  3469  // It returns ok=false if there is no such property.
  3470  func (this DOMTokenList) Length() (ret uint32, ok bool) {
  3471  	ok = js.True == bindings.GetDOMTokenListLength(
  3472  		this.ref, js.Pointer(&ret),
  3473  	)
  3474  	return
  3475  }
  3476  
  3477  // Value returns the value of property "DOMTokenList.value".
  3478  //
  3479  // It returns ok=false if there is no such property.
  3480  func (this DOMTokenList) Value() (ret js.String, ok bool) {
  3481  	ok = js.True == bindings.GetDOMTokenListValue(
  3482  		this.ref, js.Pointer(&ret),
  3483  	)
  3484  	return
  3485  }
  3486  
  3487  // SetValue sets the value of property "DOMTokenList.value" to val.
  3488  //
  3489  // It returns false if the property cannot be set.
  3490  func (this DOMTokenList) SetValue(val js.String) bool {
  3491  	return js.True == bindings.SetDOMTokenListValue(
  3492  		this.ref,
  3493  		val.Ref(),
  3494  	)
  3495  }
  3496  
  3497  // HasFuncItem returns true if the method "DOMTokenList.item" exists.
  3498  func (this DOMTokenList) HasFuncItem() bool {
  3499  	return js.True == bindings.HasFuncDOMTokenListItem(
  3500  		this.ref,
  3501  	)
  3502  }
  3503  
  3504  // FuncItem returns the method "DOMTokenList.item".
  3505  func (this DOMTokenList) FuncItem() (fn js.Func[func(index uint32) js.String]) {
  3506  	bindings.FuncDOMTokenListItem(
  3507  		this.ref, js.Pointer(&fn),
  3508  	)
  3509  	return
  3510  }
  3511  
  3512  // Item calls the method "DOMTokenList.item".
  3513  func (this DOMTokenList) Item(index uint32) (ret js.String) {
  3514  	bindings.CallDOMTokenListItem(
  3515  		this.ref, js.Pointer(&ret),
  3516  		uint32(index),
  3517  	)
  3518  
  3519  	return
  3520  }
  3521  
  3522  // TryItem calls the method "DOMTokenList.item"
  3523  // in a try/catch block and returns (_, err, ok = false) when it went through
  3524  // the catch clause.
  3525  func (this DOMTokenList) TryItem(index uint32) (ret js.String, exception js.Any, ok bool) {
  3526  	ok = js.True == bindings.TryDOMTokenListItem(
  3527  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3528  		uint32(index),
  3529  	)
  3530  
  3531  	return
  3532  }
  3533  
  3534  // HasFuncContains returns true if the method "DOMTokenList.contains" exists.
  3535  func (this DOMTokenList) HasFuncContains() bool {
  3536  	return js.True == bindings.HasFuncDOMTokenListContains(
  3537  		this.ref,
  3538  	)
  3539  }
  3540  
  3541  // FuncContains returns the method "DOMTokenList.contains".
  3542  func (this DOMTokenList) FuncContains() (fn js.Func[func(token js.String) bool]) {
  3543  	bindings.FuncDOMTokenListContains(
  3544  		this.ref, js.Pointer(&fn),
  3545  	)
  3546  	return
  3547  }
  3548  
  3549  // Contains calls the method "DOMTokenList.contains".
  3550  func (this DOMTokenList) Contains(token js.String) (ret bool) {
  3551  	bindings.CallDOMTokenListContains(
  3552  		this.ref, js.Pointer(&ret),
  3553  		token.Ref(),
  3554  	)
  3555  
  3556  	return
  3557  }
  3558  
  3559  // TryContains calls the method "DOMTokenList.contains"
  3560  // in a try/catch block and returns (_, err, ok = false) when it went through
  3561  // the catch clause.
  3562  func (this DOMTokenList) TryContains(token js.String) (ret bool, exception js.Any, ok bool) {
  3563  	ok = js.True == bindings.TryDOMTokenListContains(
  3564  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3565  		token.Ref(),
  3566  	)
  3567  
  3568  	return
  3569  }
  3570  
  3571  // HasFuncAdd returns true if the method "DOMTokenList.add" exists.
  3572  func (this DOMTokenList) HasFuncAdd() bool {
  3573  	return js.True == bindings.HasFuncDOMTokenListAdd(
  3574  		this.ref,
  3575  	)
  3576  }
  3577  
  3578  // FuncAdd returns the method "DOMTokenList.add".
  3579  func (this DOMTokenList) FuncAdd() (fn js.Func[func(tokens ...js.String)]) {
  3580  	bindings.FuncDOMTokenListAdd(
  3581  		this.ref, js.Pointer(&fn),
  3582  	)
  3583  	return
  3584  }
  3585  
  3586  // Add calls the method "DOMTokenList.add".
  3587  func (this DOMTokenList) Add(tokens ...js.String) (ret js.Void) {
  3588  	bindings.CallDOMTokenListAdd(
  3589  		this.ref, js.Pointer(&ret),
  3590  		js.SliceData(tokens),
  3591  		js.SizeU(len(tokens)),
  3592  	)
  3593  
  3594  	return
  3595  }
  3596  
  3597  // TryAdd calls the method "DOMTokenList.add"
  3598  // in a try/catch block and returns (_, err, ok = false) when it went through
  3599  // the catch clause.
  3600  func (this DOMTokenList) TryAdd(tokens ...js.String) (ret js.Void, exception js.Any, ok bool) {
  3601  	ok = js.True == bindings.TryDOMTokenListAdd(
  3602  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3603  		js.SliceData(tokens),
  3604  		js.SizeU(len(tokens)),
  3605  	)
  3606  
  3607  	return
  3608  }
  3609  
  3610  // HasFuncRemove returns true if the method "DOMTokenList.remove" exists.
  3611  func (this DOMTokenList) HasFuncRemove() bool {
  3612  	return js.True == bindings.HasFuncDOMTokenListRemove(
  3613  		this.ref,
  3614  	)
  3615  }
  3616  
  3617  // FuncRemove returns the method "DOMTokenList.remove".
  3618  func (this DOMTokenList) FuncRemove() (fn js.Func[func(tokens ...js.String)]) {
  3619  	bindings.FuncDOMTokenListRemove(
  3620  		this.ref, js.Pointer(&fn),
  3621  	)
  3622  	return
  3623  }
  3624  
  3625  // Remove calls the method "DOMTokenList.remove".
  3626  func (this DOMTokenList) Remove(tokens ...js.String) (ret js.Void) {
  3627  	bindings.CallDOMTokenListRemove(
  3628  		this.ref, js.Pointer(&ret),
  3629  		js.SliceData(tokens),
  3630  		js.SizeU(len(tokens)),
  3631  	)
  3632  
  3633  	return
  3634  }
  3635  
  3636  // TryRemove calls the method "DOMTokenList.remove"
  3637  // in a try/catch block and returns (_, err, ok = false) when it went through
  3638  // the catch clause.
  3639  func (this DOMTokenList) TryRemove(tokens ...js.String) (ret js.Void, exception js.Any, ok bool) {
  3640  	ok = js.True == bindings.TryDOMTokenListRemove(
  3641  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3642  		js.SliceData(tokens),
  3643  		js.SizeU(len(tokens)),
  3644  	)
  3645  
  3646  	return
  3647  }
  3648  
  3649  // HasFuncToggle returns true if the method "DOMTokenList.toggle" exists.
  3650  func (this DOMTokenList) HasFuncToggle() bool {
  3651  	return js.True == bindings.HasFuncDOMTokenListToggle(
  3652  		this.ref,
  3653  	)
  3654  }
  3655  
  3656  // FuncToggle returns the method "DOMTokenList.toggle".
  3657  func (this DOMTokenList) FuncToggle() (fn js.Func[func(token js.String, force bool) bool]) {
  3658  	bindings.FuncDOMTokenListToggle(
  3659  		this.ref, js.Pointer(&fn),
  3660  	)
  3661  	return
  3662  }
  3663  
  3664  // Toggle calls the method "DOMTokenList.toggle".
  3665  func (this DOMTokenList) Toggle(token js.String, force bool) (ret bool) {
  3666  	bindings.CallDOMTokenListToggle(
  3667  		this.ref, js.Pointer(&ret),
  3668  		token.Ref(),
  3669  		js.Bool(bool(force)),
  3670  	)
  3671  
  3672  	return
  3673  }
  3674  
  3675  // TryToggle calls the method "DOMTokenList.toggle"
  3676  // in a try/catch block and returns (_, err, ok = false) when it went through
  3677  // the catch clause.
  3678  func (this DOMTokenList) TryToggle(token js.String, force bool) (ret bool, exception js.Any, ok bool) {
  3679  	ok = js.True == bindings.TryDOMTokenListToggle(
  3680  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3681  		token.Ref(),
  3682  		js.Bool(bool(force)),
  3683  	)
  3684  
  3685  	return
  3686  }
  3687  
  3688  // HasFuncToggle1 returns true if the method "DOMTokenList.toggle" exists.
  3689  func (this DOMTokenList) HasFuncToggle1() bool {
  3690  	return js.True == bindings.HasFuncDOMTokenListToggle1(
  3691  		this.ref,
  3692  	)
  3693  }
  3694  
  3695  // FuncToggle1 returns the method "DOMTokenList.toggle".
  3696  func (this DOMTokenList) FuncToggle1() (fn js.Func[func(token js.String) bool]) {
  3697  	bindings.FuncDOMTokenListToggle1(
  3698  		this.ref, js.Pointer(&fn),
  3699  	)
  3700  	return
  3701  }
  3702  
  3703  // Toggle1 calls the method "DOMTokenList.toggle".
  3704  func (this DOMTokenList) Toggle1(token js.String) (ret bool) {
  3705  	bindings.CallDOMTokenListToggle1(
  3706  		this.ref, js.Pointer(&ret),
  3707  		token.Ref(),
  3708  	)
  3709  
  3710  	return
  3711  }
  3712  
  3713  // TryToggle1 calls the method "DOMTokenList.toggle"
  3714  // in a try/catch block and returns (_, err, ok = false) when it went through
  3715  // the catch clause.
  3716  func (this DOMTokenList) TryToggle1(token js.String) (ret bool, exception js.Any, ok bool) {
  3717  	ok = js.True == bindings.TryDOMTokenListToggle1(
  3718  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3719  		token.Ref(),
  3720  	)
  3721  
  3722  	return
  3723  }
  3724  
  3725  // HasFuncReplace returns true if the method "DOMTokenList.replace" exists.
  3726  func (this DOMTokenList) HasFuncReplace() bool {
  3727  	return js.True == bindings.HasFuncDOMTokenListReplace(
  3728  		this.ref,
  3729  	)
  3730  }
  3731  
  3732  // FuncReplace returns the method "DOMTokenList.replace".
  3733  func (this DOMTokenList) FuncReplace() (fn js.Func[func(token js.String, newToken js.String) bool]) {
  3734  	bindings.FuncDOMTokenListReplace(
  3735  		this.ref, js.Pointer(&fn),
  3736  	)
  3737  	return
  3738  }
  3739  
  3740  // Replace calls the method "DOMTokenList.replace".
  3741  func (this DOMTokenList) Replace(token js.String, newToken js.String) (ret bool) {
  3742  	bindings.CallDOMTokenListReplace(
  3743  		this.ref, js.Pointer(&ret),
  3744  		token.Ref(),
  3745  		newToken.Ref(),
  3746  	)
  3747  
  3748  	return
  3749  }
  3750  
  3751  // TryReplace calls the method "DOMTokenList.replace"
  3752  // in a try/catch block and returns (_, err, ok = false) when it went through
  3753  // the catch clause.
  3754  func (this DOMTokenList) TryReplace(token js.String, newToken js.String) (ret bool, exception js.Any, ok bool) {
  3755  	ok = js.True == bindings.TryDOMTokenListReplace(
  3756  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3757  		token.Ref(),
  3758  		newToken.Ref(),
  3759  	)
  3760  
  3761  	return
  3762  }
  3763  
  3764  // HasFuncSupports returns true if the method "DOMTokenList.supports" exists.
  3765  func (this DOMTokenList) HasFuncSupports() bool {
  3766  	return js.True == bindings.HasFuncDOMTokenListSupports(
  3767  		this.ref,
  3768  	)
  3769  }
  3770  
  3771  // FuncSupports returns the method "DOMTokenList.supports".
  3772  func (this DOMTokenList) FuncSupports() (fn js.Func[func(token js.String) bool]) {
  3773  	bindings.FuncDOMTokenListSupports(
  3774  		this.ref, js.Pointer(&fn),
  3775  	)
  3776  	return
  3777  }
  3778  
  3779  // Supports calls the method "DOMTokenList.supports".
  3780  func (this DOMTokenList) Supports(token js.String) (ret bool) {
  3781  	bindings.CallDOMTokenListSupports(
  3782  		this.ref, js.Pointer(&ret),
  3783  		token.Ref(),
  3784  	)
  3785  
  3786  	return
  3787  }
  3788  
  3789  // TrySupports calls the method "DOMTokenList.supports"
  3790  // in a try/catch block and returns (_, err, ok = false) when it went through
  3791  // the catch clause.
  3792  func (this DOMTokenList) TrySupports(token js.String) (ret bool, exception js.Any, ok bool) {
  3793  	ok = js.True == bindings.TryDOMTokenListSupports(
  3794  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3795  		token.Ref(),
  3796  	)
  3797  
  3798  	return
  3799  }
  3800  
  3801  type NamedNodeMap struct {
  3802  	ref js.Ref
  3803  }
  3804  
  3805  func (this NamedNodeMap) Once() NamedNodeMap {
  3806  	this.ref.Once()
  3807  	return this
  3808  }
  3809  
  3810  func (this NamedNodeMap) Ref() js.Ref {
  3811  	return this.ref
  3812  }
  3813  
  3814  func (this NamedNodeMap) FromRef(ref js.Ref) NamedNodeMap {
  3815  	this.ref = ref
  3816  	return this
  3817  }
  3818  
  3819  func (this NamedNodeMap) Free() {
  3820  	this.ref.Free()
  3821  }
  3822  
  3823  // Length returns the value of property "NamedNodeMap.length".
  3824  //
  3825  // It returns ok=false if there is no such property.
  3826  func (this NamedNodeMap) Length() (ret uint32, ok bool) {
  3827  	ok = js.True == bindings.GetNamedNodeMapLength(
  3828  		this.ref, js.Pointer(&ret),
  3829  	)
  3830  	return
  3831  }
  3832  
  3833  // HasFuncItem returns true if the method "NamedNodeMap.item" exists.
  3834  func (this NamedNodeMap) HasFuncItem() bool {
  3835  	return js.True == bindings.HasFuncNamedNodeMapItem(
  3836  		this.ref,
  3837  	)
  3838  }
  3839  
  3840  // FuncItem returns the method "NamedNodeMap.item".
  3841  func (this NamedNodeMap) FuncItem() (fn js.Func[func(index uint32) Attr]) {
  3842  	bindings.FuncNamedNodeMapItem(
  3843  		this.ref, js.Pointer(&fn),
  3844  	)
  3845  	return
  3846  }
  3847  
  3848  // Item calls the method "NamedNodeMap.item".
  3849  func (this NamedNodeMap) Item(index uint32) (ret Attr) {
  3850  	bindings.CallNamedNodeMapItem(
  3851  		this.ref, js.Pointer(&ret),
  3852  		uint32(index),
  3853  	)
  3854  
  3855  	return
  3856  }
  3857  
  3858  // TryItem calls the method "NamedNodeMap.item"
  3859  // in a try/catch block and returns (_, err, ok = false) when it went through
  3860  // the catch clause.
  3861  func (this NamedNodeMap) TryItem(index uint32) (ret Attr, exception js.Any, ok bool) {
  3862  	ok = js.True == bindings.TryNamedNodeMapItem(
  3863  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3864  		uint32(index),
  3865  	)
  3866  
  3867  	return
  3868  }
  3869  
  3870  // HasFuncGetNamedItem returns true if the method "NamedNodeMap.getNamedItem" exists.
  3871  func (this NamedNodeMap) HasFuncGetNamedItem() bool {
  3872  	return js.True == bindings.HasFuncNamedNodeMapGetNamedItem(
  3873  		this.ref,
  3874  	)
  3875  }
  3876  
  3877  // FuncGetNamedItem returns the method "NamedNodeMap.getNamedItem".
  3878  func (this NamedNodeMap) FuncGetNamedItem() (fn js.Func[func(qualifiedName js.String) Attr]) {
  3879  	bindings.FuncNamedNodeMapGetNamedItem(
  3880  		this.ref, js.Pointer(&fn),
  3881  	)
  3882  	return
  3883  }
  3884  
  3885  // GetNamedItem calls the method "NamedNodeMap.getNamedItem".
  3886  func (this NamedNodeMap) GetNamedItem(qualifiedName js.String) (ret Attr) {
  3887  	bindings.CallNamedNodeMapGetNamedItem(
  3888  		this.ref, js.Pointer(&ret),
  3889  		qualifiedName.Ref(),
  3890  	)
  3891  
  3892  	return
  3893  }
  3894  
  3895  // TryGetNamedItem calls the method "NamedNodeMap.getNamedItem"
  3896  // in a try/catch block and returns (_, err, ok = false) when it went through
  3897  // the catch clause.
  3898  func (this NamedNodeMap) TryGetNamedItem(qualifiedName js.String) (ret Attr, exception js.Any, ok bool) {
  3899  	ok = js.True == bindings.TryNamedNodeMapGetNamedItem(
  3900  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3901  		qualifiedName.Ref(),
  3902  	)
  3903  
  3904  	return
  3905  }
  3906  
  3907  // HasFuncGetNamedItemNS returns true if the method "NamedNodeMap.getNamedItemNS" exists.
  3908  func (this NamedNodeMap) HasFuncGetNamedItemNS() bool {
  3909  	return js.True == bindings.HasFuncNamedNodeMapGetNamedItemNS(
  3910  		this.ref,
  3911  	)
  3912  }
  3913  
  3914  // FuncGetNamedItemNS returns the method "NamedNodeMap.getNamedItemNS".
  3915  func (this NamedNodeMap) FuncGetNamedItemNS() (fn js.Func[func(namespace js.String, localName js.String) Attr]) {
  3916  	bindings.FuncNamedNodeMapGetNamedItemNS(
  3917  		this.ref, js.Pointer(&fn),
  3918  	)
  3919  	return
  3920  }
  3921  
  3922  // GetNamedItemNS calls the method "NamedNodeMap.getNamedItemNS".
  3923  func (this NamedNodeMap) GetNamedItemNS(namespace js.String, localName js.String) (ret Attr) {
  3924  	bindings.CallNamedNodeMapGetNamedItemNS(
  3925  		this.ref, js.Pointer(&ret),
  3926  		namespace.Ref(),
  3927  		localName.Ref(),
  3928  	)
  3929  
  3930  	return
  3931  }
  3932  
  3933  // TryGetNamedItemNS calls the method "NamedNodeMap.getNamedItemNS"
  3934  // in a try/catch block and returns (_, err, ok = false) when it went through
  3935  // the catch clause.
  3936  func (this NamedNodeMap) TryGetNamedItemNS(namespace js.String, localName js.String) (ret Attr, exception js.Any, ok bool) {
  3937  	ok = js.True == bindings.TryNamedNodeMapGetNamedItemNS(
  3938  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3939  		namespace.Ref(),
  3940  		localName.Ref(),
  3941  	)
  3942  
  3943  	return
  3944  }
  3945  
  3946  // HasFuncSetNamedItem returns true if the method "NamedNodeMap.setNamedItem" exists.
  3947  func (this NamedNodeMap) HasFuncSetNamedItem() bool {
  3948  	return js.True == bindings.HasFuncNamedNodeMapSetNamedItem(
  3949  		this.ref,
  3950  	)
  3951  }
  3952  
  3953  // FuncSetNamedItem returns the method "NamedNodeMap.setNamedItem".
  3954  func (this NamedNodeMap) FuncSetNamedItem() (fn js.Func[func(attr Attr) Attr]) {
  3955  	bindings.FuncNamedNodeMapSetNamedItem(
  3956  		this.ref, js.Pointer(&fn),
  3957  	)
  3958  	return
  3959  }
  3960  
  3961  // SetNamedItem calls the method "NamedNodeMap.setNamedItem".
  3962  func (this NamedNodeMap) SetNamedItem(attr Attr) (ret Attr) {
  3963  	bindings.CallNamedNodeMapSetNamedItem(
  3964  		this.ref, js.Pointer(&ret),
  3965  		attr.Ref(),
  3966  	)
  3967  
  3968  	return
  3969  }
  3970  
  3971  // TrySetNamedItem calls the method "NamedNodeMap.setNamedItem"
  3972  // in a try/catch block and returns (_, err, ok = false) when it went through
  3973  // the catch clause.
  3974  func (this NamedNodeMap) TrySetNamedItem(attr Attr) (ret Attr, exception js.Any, ok bool) {
  3975  	ok = js.True == bindings.TryNamedNodeMapSetNamedItem(
  3976  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3977  		attr.Ref(),
  3978  	)
  3979  
  3980  	return
  3981  }
  3982  
  3983  // HasFuncSetNamedItemNS returns true if the method "NamedNodeMap.setNamedItemNS" exists.
  3984  func (this NamedNodeMap) HasFuncSetNamedItemNS() bool {
  3985  	return js.True == bindings.HasFuncNamedNodeMapSetNamedItemNS(
  3986  		this.ref,
  3987  	)
  3988  }
  3989  
  3990  // FuncSetNamedItemNS returns the method "NamedNodeMap.setNamedItemNS".
  3991  func (this NamedNodeMap) FuncSetNamedItemNS() (fn js.Func[func(attr Attr) Attr]) {
  3992  	bindings.FuncNamedNodeMapSetNamedItemNS(
  3993  		this.ref, js.Pointer(&fn),
  3994  	)
  3995  	return
  3996  }
  3997  
  3998  // SetNamedItemNS calls the method "NamedNodeMap.setNamedItemNS".
  3999  func (this NamedNodeMap) SetNamedItemNS(attr Attr) (ret Attr) {
  4000  	bindings.CallNamedNodeMapSetNamedItemNS(
  4001  		this.ref, js.Pointer(&ret),
  4002  		attr.Ref(),
  4003  	)
  4004  
  4005  	return
  4006  }
  4007  
  4008  // TrySetNamedItemNS calls the method "NamedNodeMap.setNamedItemNS"
  4009  // in a try/catch block and returns (_, err, ok = false) when it went through
  4010  // the catch clause.
  4011  func (this NamedNodeMap) TrySetNamedItemNS(attr Attr) (ret Attr, exception js.Any, ok bool) {
  4012  	ok = js.True == bindings.TryNamedNodeMapSetNamedItemNS(
  4013  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  4014  		attr.Ref(),
  4015  	)
  4016  
  4017  	return
  4018  }
  4019  
  4020  // HasFuncRemoveNamedItem returns true if the method "NamedNodeMap.removeNamedItem" exists.
  4021  func (this NamedNodeMap) HasFuncRemoveNamedItem() bool {
  4022  	return js.True == bindings.HasFuncNamedNodeMapRemoveNamedItem(
  4023  		this.ref,
  4024  	)
  4025  }
  4026  
  4027  // FuncRemoveNamedItem returns the method "NamedNodeMap.removeNamedItem".
  4028  func (this NamedNodeMap) FuncRemoveNamedItem() (fn js.Func[func(qualifiedName js.String) Attr]) {
  4029  	bindings.FuncNamedNodeMapRemoveNamedItem(
  4030  		this.ref, js.Pointer(&fn),
  4031  	)
  4032  	return
  4033  }
  4034  
  4035  // RemoveNamedItem calls the method "NamedNodeMap.removeNamedItem".
  4036  func (this NamedNodeMap) RemoveNamedItem(qualifiedName js.String) (ret Attr) {
  4037  	bindings.CallNamedNodeMapRemoveNamedItem(
  4038  		this.ref, js.Pointer(&ret),
  4039  		qualifiedName.Ref(),
  4040  	)
  4041  
  4042  	return
  4043  }
  4044  
  4045  // TryRemoveNamedItem calls the method "NamedNodeMap.removeNamedItem"
  4046  // in a try/catch block and returns (_, err, ok = false) when it went through
  4047  // the catch clause.
  4048  func (this NamedNodeMap) TryRemoveNamedItem(qualifiedName js.String) (ret Attr, exception js.Any, ok bool) {
  4049  	ok = js.True == bindings.TryNamedNodeMapRemoveNamedItem(
  4050  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  4051  		qualifiedName.Ref(),
  4052  	)
  4053  
  4054  	return
  4055  }
  4056  
  4057  // HasFuncRemoveNamedItemNS returns true if the method "NamedNodeMap.removeNamedItemNS" exists.
  4058  func (this NamedNodeMap) HasFuncRemoveNamedItemNS() bool {
  4059  	return js.True == bindings.HasFuncNamedNodeMapRemoveNamedItemNS(
  4060  		this.ref,
  4061  	)
  4062  }
  4063  
  4064  // FuncRemoveNamedItemNS returns the method "NamedNodeMap.removeNamedItemNS".
  4065  func (this NamedNodeMap) FuncRemoveNamedItemNS() (fn js.Func[func(namespace js.String, localName js.String) Attr]) {
  4066  	bindings.FuncNamedNodeMapRemoveNamedItemNS(
  4067  		this.ref, js.Pointer(&fn),
  4068  	)
  4069  	return
  4070  }
  4071  
  4072  // RemoveNamedItemNS calls the method "NamedNodeMap.removeNamedItemNS".
  4073  func (this NamedNodeMap) RemoveNamedItemNS(namespace js.String, localName js.String) (ret Attr) {
  4074  	bindings.CallNamedNodeMapRemoveNamedItemNS(
  4075  		this.ref, js.Pointer(&ret),
  4076  		namespace.Ref(),
  4077  		localName.Ref(),
  4078  	)
  4079  
  4080  	return
  4081  }
  4082  
  4083  // TryRemoveNamedItemNS calls the method "NamedNodeMap.removeNamedItemNS"
  4084  // in a try/catch block and returns (_, err, ok = false) when it went through
  4085  // the catch clause.
  4086  func (this NamedNodeMap) TryRemoveNamedItemNS(namespace js.String, localName js.String) (ret Attr, exception js.Any, ok bool) {
  4087  	ok = js.True == bindings.TryNamedNodeMapRemoveNamedItemNS(
  4088  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  4089  		namespace.Ref(),
  4090  		localName.Ref(),
  4091  	)
  4092  
  4093  	return
  4094  }
  4095  
  4096  type Element struct {
  4097  	Node
  4098  }
  4099  
  4100  func (this Element) Once() Element {
  4101  	this.ref.Once()
  4102  	return this
  4103  }
  4104  
  4105  func (this Element) Ref() js.Ref {
  4106  	return this.Node.Ref()
  4107  }
  4108  
  4109  func (this Element) FromRef(ref js.Ref) Element {
  4110  	this.Node = this.Node.FromRef(ref)
  4111  	return this
  4112  }
  4113  
  4114  func (this Element) Free() {
  4115  	this.ref.Free()
  4116  }
  4117  
  4118  // NamespaceURI returns the value of property "Element.namespaceURI".
  4119  //
  4120  // It returns ok=false if there is no such property.
  4121  func (this Element) NamespaceURI() (ret js.String, ok bool) {
  4122  	ok = js.True == bindings.GetElementNamespaceURI(
  4123  		this.ref, js.Pointer(&ret),
  4124  	)
  4125  	return
  4126  }
  4127  
  4128  // Prefix returns the value of property "Element.prefix".
  4129  //
  4130  // It returns ok=false if there is no such property.
  4131  func (this Element) Prefix() (ret js.String, ok bool) {
  4132  	ok = js.True == bindings.GetElementPrefix(
  4133  		this.ref, js.Pointer(&ret),
  4134  	)
  4135  	return
  4136  }
  4137  
  4138  // LocalName returns the value of property "Element.localName".
  4139  //
  4140  // It returns ok=false if there is no such property.
  4141  func (this Element) LocalName() (ret js.String, ok bool) {
  4142  	ok = js.True == bindings.GetElementLocalName(
  4143  		this.ref, js.Pointer(&ret),
  4144  	)
  4145  	return
  4146  }
  4147  
  4148  // TagName returns the value of property "Element.tagName".
  4149  //
  4150  // It returns ok=false if there is no such property.
  4151  func (this Element) TagName() (ret js.String, ok bool) {
  4152  	ok = js.True == bindings.GetElementTagName(
  4153  		this.ref, js.Pointer(&ret),
  4154  	)
  4155  	return
  4156  }
  4157  
  4158  // Id returns the value of property "Element.id".
  4159  //
  4160  // It returns ok=false if there is no such property.
  4161  func (this Element) Id() (ret js.String, ok bool) {
  4162  	ok = js.True == bindings.GetElementId(
  4163  		this.ref, js.Pointer(&ret),
  4164  	)
  4165  	return
  4166  }
  4167  
  4168  // SetId sets the value of property "Element.id" to val.
  4169  //
  4170  // It returns false if the property cannot be set.
  4171  func (this Element) SetId(val js.String) bool {
  4172  	return js.True == bindings.SetElementId(
  4173  		this.ref,
  4174  		val.Ref(),
  4175  	)
  4176  }
  4177  
  4178  // ClassName returns the value of property "Element.className".
  4179  //
  4180  // It returns ok=false if there is no such property.
  4181  func (this Element) ClassName() (ret js.String, ok bool) {
  4182  	ok = js.True == bindings.GetElementClassName(
  4183  		this.ref, js.Pointer(&ret),
  4184  	)
  4185  	return
  4186  }
  4187  
  4188  // SetClassName sets the value of property "Element.className" to val.
  4189  //
  4190  // It returns false if the property cannot be set.
  4191  func (this Element) SetClassName(val js.String) bool {
  4192  	return js.True == bindings.SetElementClassName(
  4193  		this.ref,
  4194  		val.Ref(),
  4195  	)
  4196  }
  4197  
  4198  // ClassList returns the value of property "Element.classList".
  4199  //
  4200  // It returns ok=false if there is no such property.
  4201  func (this Element) ClassList() (ret DOMTokenList, ok bool) {
  4202  	ok = js.True == bindings.GetElementClassList(
  4203  		this.ref, js.Pointer(&ret),
  4204  	)
  4205  	return
  4206  }
  4207  
  4208  // Slot returns the value of property "Element.slot".
  4209  //
  4210  // It returns ok=false if there is no such property.
  4211  func (this Element) Slot() (ret js.String, ok bool) {
  4212  	ok = js.True == bindings.GetElementSlot(
  4213  		this.ref, js.Pointer(&ret),
  4214  	)
  4215  	return
  4216  }
  4217  
  4218  // SetSlot sets the value of property "Element.slot" to val.
  4219  //
  4220  // It returns false if the property cannot be set.
  4221  func (this Element) SetSlot(val js.String) bool {
  4222  	return js.True == bindings.SetElementSlot(
  4223  		this.ref,
  4224  		val.Ref(),
  4225  	)
  4226  }
  4227  
  4228  // Attributes returns the value of property "Element.attributes".
  4229  //
  4230  // It returns ok=false if there is no such property.
  4231  func (this Element) Attributes() (ret NamedNodeMap, ok bool) {
  4232  	ok = js.True == bindings.GetElementAttributes(
  4233  		this.ref, js.Pointer(&ret),
  4234  	)
  4235  	return
  4236  }
  4237  
  4238  // ShadowRoot returns the value of property "Element.shadowRoot".
  4239  //
  4240  // It returns ok=false if there is no such property.
  4241  func (this Element) ShadowRoot() (ret ShadowRoot, ok bool) {
  4242  	ok = js.True == bindings.GetElementShadowRoot(
  4243  		this.ref, js.Pointer(&ret),
  4244  	)
  4245  	return
  4246  }
  4247  
  4248  // ElementTiming returns the value of property "Element.elementTiming".
  4249  //
  4250  // It returns ok=false if there is no such property.
  4251  func (this Element) ElementTiming() (ret js.String, ok bool) {
  4252  	ok = js.True == bindings.GetElementElementTiming(
  4253  		this.ref, js.Pointer(&ret),
  4254  	)
  4255  	return
  4256  }
  4257  
  4258  // SetElementTiming sets the value of property "Element.elementTiming" to val.
  4259  //
  4260  // It returns false if the property cannot be set.
  4261  func (this Element) SetElementTiming(val js.String) bool {
  4262  	return js.True == bindings.SetElementElementTiming(
  4263  		this.ref,
  4264  		val.Ref(),
  4265  	)
  4266  }
  4267  
  4268  // Part returns the value of property "Element.part".
  4269  //
  4270  // It returns ok=false if there is no such property.
  4271  func (this Element) Part() (ret DOMTokenList, ok bool) {
  4272  	ok = js.True == bindings.GetElementPart(
  4273  		this.ref, js.Pointer(&ret),
  4274  	)
  4275  	return
  4276  }
  4277  
  4278  // OuterHTML returns the value of property "Element.outerHTML".
  4279  //
  4280  // It returns ok=false if there is no such property.
  4281  func (this Element) OuterHTML() (ret js.String, ok bool) {
  4282  	ok = js.True == bindings.GetElementOuterHTML(
  4283  		this.ref, js.Pointer(&ret),
  4284  	)
  4285  	return
  4286  }
  4287  
  4288  // SetOuterHTML sets the value of property "Element.outerHTML" to val.
  4289  //
  4290  // It returns false if the property cannot be set.
  4291  func (this Element) SetOuterHTML(val js.String) bool {
  4292  	return js.True == bindings.SetElementOuterHTML(
  4293  		this.ref,
  4294  		val.Ref(),
  4295  	)
  4296  }
  4297  
  4298  // ScrollTop returns the value of property "Element.scrollTop".
  4299  //
  4300  // It returns ok=false if there is no such property.
  4301  func (this Element) ScrollTop() (ret float64, ok bool) {
  4302  	ok = js.True == bindings.GetElementScrollTop(
  4303  		this.ref, js.Pointer(&ret),
  4304  	)
  4305  	return
  4306  }
  4307  
  4308  // SetScrollTop sets the value of property "Element.scrollTop" to val.
  4309  //
  4310  // It returns false if the property cannot be set.
  4311  func (this Element) SetScrollTop(val float64) bool {
  4312  	return js.True == bindings.SetElementScrollTop(
  4313  		this.ref,
  4314  		float64(val),
  4315  	)
  4316  }
  4317  
  4318  // ScrollLeft returns the value of property "Element.scrollLeft".
  4319  //
  4320  // It returns ok=false if there is no such property.
  4321  func (this Element) ScrollLeft() (ret float64, ok bool) {
  4322  	ok = js.True == bindings.GetElementScrollLeft(
  4323  		this.ref, js.Pointer(&ret),
  4324  	)
  4325  	return
  4326  }
  4327  
  4328  // SetScrollLeft sets the value of property "Element.scrollLeft" to val.
  4329  //
  4330  // It returns false if the property cannot be set.
  4331  func (this Element) SetScrollLeft(val float64) bool {
  4332  	return js.True == bindings.SetElementScrollLeft(
  4333  		this.ref,
  4334  		float64(val),
  4335  	)
  4336  }
  4337  
  4338  // ScrollWidth returns the value of property "Element.scrollWidth".
  4339  //
  4340  // It returns ok=false if there is no such property.
  4341  func (this Element) ScrollWidth() (ret int32, ok bool) {
  4342  	ok = js.True == bindings.GetElementScrollWidth(
  4343  		this.ref, js.Pointer(&ret),
  4344  	)
  4345  	return
  4346  }
  4347  
  4348  // ScrollHeight returns the value of property "Element.scrollHeight".
  4349  //
  4350  // It returns ok=false if there is no such property.
  4351  func (this Element) ScrollHeight() (ret int32, ok bool) {
  4352  	ok = js.True == bindings.GetElementScrollHeight(
  4353  		this.ref, js.Pointer(&ret),
  4354  	)
  4355  	return
  4356  }
  4357  
  4358  // ClientTop returns the value of property "Element.clientTop".
  4359  //
  4360  // It returns ok=false if there is no such property.
  4361  func (this Element) ClientTop() (ret int32, ok bool) {
  4362  	ok = js.True == bindings.GetElementClientTop(
  4363  		this.ref, js.Pointer(&ret),
  4364  	)
  4365  	return
  4366  }
  4367  
  4368  // ClientLeft returns the value of property "Element.clientLeft".
  4369  //
  4370  // It returns ok=false if there is no such property.
  4371  func (this Element) ClientLeft() (ret int32, ok bool) {
  4372  	ok = js.True == bindings.GetElementClientLeft(
  4373  		this.ref, js.Pointer(&ret),
  4374  	)
  4375  	return
  4376  }
  4377  
  4378  // ClientWidth returns the value of property "Element.clientWidth".
  4379  //
  4380  // It returns ok=false if there is no such property.
  4381  func (this Element) ClientWidth() (ret int32, ok bool) {
  4382  	ok = js.True == bindings.GetElementClientWidth(
  4383  		this.ref, js.Pointer(&ret),
  4384  	)
  4385  	return
  4386  }
  4387  
  4388  // ClientHeight returns the value of property "Element.clientHeight".
  4389  //
  4390  // It returns ok=false if there is no such property.
  4391  func (this Element) ClientHeight() (ret int32, ok bool) {
  4392  	ok = js.True == bindings.GetElementClientHeight(
  4393  		this.ref, js.Pointer(&ret),
  4394  	)
  4395  	return
  4396  }
  4397  
  4398  // Role returns the value of property "Element.role".
  4399  //
  4400  // It returns ok=false if there is no such property.
  4401  func (this Element) Role() (ret js.String, ok bool) {
  4402  	ok = js.True == bindings.GetElementRole(
  4403  		this.ref, js.Pointer(&ret),
  4404  	)
  4405  	return
  4406  }
  4407  
  4408  // SetRole sets the value of property "Element.role" to val.
  4409  //
  4410  // It returns false if the property cannot be set.
  4411  func (this Element) SetRole(val js.String) bool {
  4412  	return js.True == bindings.SetElementRole(
  4413  		this.ref,
  4414  		val.Ref(),
  4415  	)
  4416  }
  4417  
  4418  // AriaActiveDescendantElement returns the value of property "Element.ariaActiveDescendantElement".
  4419  //
  4420  // It returns ok=false if there is no such property.
  4421  func (this Element) AriaActiveDescendantElement() (ret Element, ok bool) {
  4422  	ok = js.True == bindings.GetElementAriaActiveDescendantElement(
  4423  		this.ref, js.Pointer(&ret),
  4424  	)
  4425  	return
  4426  }
  4427  
  4428  // SetAriaActiveDescendantElement sets the value of property "Element.ariaActiveDescendantElement" to val.
  4429  //
  4430  // It returns false if the property cannot be set.
  4431  func (this Element) SetAriaActiveDescendantElement(val Element) bool {
  4432  	return js.True == bindings.SetElementAriaActiveDescendantElement(
  4433  		this.ref,
  4434  		val.Ref(),
  4435  	)
  4436  }
  4437  
  4438  // AriaAtomic returns the value of property "Element.ariaAtomic".
  4439  //
  4440  // It returns ok=false if there is no such property.
  4441  func (this Element) AriaAtomic() (ret js.String, ok bool) {
  4442  	ok = js.True == bindings.GetElementAriaAtomic(
  4443  		this.ref, js.Pointer(&ret),
  4444  	)
  4445  	return
  4446  }
  4447  
  4448  // SetAriaAtomic sets the value of property "Element.ariaAtomic" to val.
  4449  //
  4450  // It returns false if the property cannot be set.
  4451  func (this Element) SetAriaAtomic(val js.String) bool {
  4452  	return js.True == bindings.SetElementAriaAtomic(
  4453  		this.ref,
  4454  		val.Ref(),
  4455  	)
  4456  }
  4457  
  4458  // AriaAutoComplete returns the value of property "Element.ariaAutoComplete".
  4459  //
  4460  // It returns ok=false if there is no such property.
  4461  func (this Element) AriaAutoComplete() (ret js.String, ok bool) {
  4462  	ok = js.True == bindings.GetElementAriaAutoComplete(
  4463  		this.ref, js.Pointer(&ret),
  4464  	)
  4465  	return
  4466  }
  4467  
  4468  // SetAriaAutoComplete sets the value of property "Element.ariaAutoComplete" to val.
  4469  //
  4470  // It returns false if the property cannot be set.
  4471  func (this Element) SetAriaAutoComplete(val js.String) bool {
  4472  	return js.True == bindings.SetElementAriaAutoComplete(
  4473  		this.ref,
  4474  		val.Ref(),
  4475  	)
  4476  }
  4477  
  4478  // AriaBusy returns the value of property "Element.ariaBusy".
  4479  //
  4480  // It returns ok=false if there is no such property.
  4481  func (this Element) AriaBusy() (ret js.String, ok bool) {
  4482  	ok = js.True == bindings.GetElementAriaBusy(
  4483  		this.ref, js.Pointer(&ret),
  4484  	)
  4485  	return
  4486  }
  4487  
  4488  // SetAriaBusy sets the value of property "Element.ariaBusy" to val.
  4489  //
  4490  // It returns false if the property cannot be set.
  4491  func (this Element) SetAriaBusy(val js.String) bool {
  4492  	return js.True == bindings.SetElementAriaBusy(
  4493  		this.ref,
  4494  		val.Ref(),
  4495  	)
  4496  }
  4497  
  4498  // AriaChecked returns the value of property "Element.ariaChecked".
  4499  //
  4500  // It returns ok=false if there is no such property.
  4501  func (this Element) AriaChecked() (ret js.String, ok bool) {
  4502  	ok = js.True == bindings.GetElementAriaChecked(
  4503  		this.ref, js.Pointer(&ret),
  4504  	)
  4505  	return
  4506  }
  4507  
  4508  // SetAriaChecked sets the value of property "Element.ariaChecked" to val.
  4509  //
  4510  // It returns false if the property cannot be set.
  4511  func (this Element) SetAriaChecked(val js.String) bool {
  4512  	return js.True == bindings.SetElementAriaChecked(
  4513  		this.ref,
  4514  		val.Ref(),
  4515  	)
  4516  }
  4517  
  4518  // AriaColCount returns the value of property "Element.ariaColCount".
  4519  //
  4520  // It returns ok=false if there is no such property.
  4521  func (this Element) AriaColCount() (ret js.String, ok bool) {
  4522  	ok = js.True == bindings.GetElementAriaColCount(
  4523  		this.ref, js.Pointer(&ret),
  4524  	)
  4525  	return
  4526  }
  4527  
  4528  // SetAriaColCount sets the value of property "Element.ariaColCount" to val.
  4529  //
  4530  // It returns false if the property cannot be set.
  4531  func (this Element) SetAriaColCount(val js.String) bool {
  4532  	return js.True == bindings.SetElementAriaColCount(
  4533  		this.ref,
  4534  		val.Ref(),
  4535  	)
  4536  }
  4537  
  4538  // AriaColIndex returns the value of property "Element.ariaColIndex".
  4539  //
  4540  // It returns ok=false if there is no such property.
  4541  func (this Element) AriaColIndex() (ret js.String, ok bool) {
  4542  	ok = js.True == bindings.GetElementAriaColIndex(
  4543  		this.ref, js.Pointer(&ret),
  4544  	)
  4545  	return
  4546  }
  4547  
  4548  // SetAriaColIndex sets the value of property "Element.ariaColIndex" to val.
  4549  //
  4550  // It returns false if the property cannot be set.
  4551  func (this Element) SetAriaColIndex(val js.String) bool {
  4552  	return js.True == bindings.SetElementAriaColIndex(
  4553  		this.ref,
  4554  		val.Ref(),
  4555  	)
  4556  }
  4557  
  4558  // AriaColIndexText returns the value of property "Element.ariaColIndexText".
  4559  //
  4560  // It returns ok=false if there is no such property.
  4561  func (this Element) AriaColIndexText() (ret js.String, ok bool) {
  4562  	ok = js.True == bindings.GetElementAriaColIndexText(
  4563  		this.ref, js.Pointer(&ret),
  4564  	)
  4565  	return
  4566  }
  4567  
  4568  // SetAriaColIndexText sets the value of property "Element.ariaColIndexText" to val.
  4569  //
  4570  // It returns false if the property cannot be set.
  4571  func (this Element) SetAriaColIndexText(val js.String) bool {
  4572  	return js.True == bindings.SetElementAriaColIndexText(
  4573  		this.ref,
  4574  		val.Ref(),
  4575  	)
  4576  }
  4577  
  4578  // AriaColSpan returns the value of property "Element.ariaColSpan".
  4579  //
  4580  // It returns ok=false if there is no such property.
  4581  func (this Element) AriaColSpan() (ret js.String, ok bool) {
  4582  	ok = js.True == bindings.GetElementAriaColSpan(
  4583  		this.ref, js.Pointer(&ret),
  4584  	)
  4585  	return
  4586  }
  4587  
  4588  // SetAriaColSpan sets the value of property "Element.ariaColSpan" to val.
  4589  //
  4590  // It returns false if the property cannot be set.
  4591  func (this Element) SetAriaColSpan(val js.String) bool {
  4592  	return js.True == bindings.SetElementAriaColSpan(
  4593  		this.ref,
  4594  		val.Ref(),
  4595  	)
  4596  }
  4597  
  4598  // AriaControlsElements returns the value of property "Element.ariaControlsElements".
  4599  //
  4600  // It returns ok=false if there is no such property.
  4601  func (this Element) AriaControlsElements() (ret js.FrozenArray[Element], ok bool) {
  4602  	ok = js.True == bindings.GetElementAriaControlsElements(
  4603  		this.ref, js.Pointer(&ret),
  4604  	)
  4605  	return
  4606  }
  4607  
  4608  // SetAriaControlsElements sets the value of property "Element.ariaControlsElements" to val.
  4609  //
  4610  // It returns false if the property cannot be set.
  4611  func (this Element) SetAriaControlsElements(val js.FrozenArray[Element]) bool {
  4612  	return js.True == bindings.SetElementAriaControlsElements(
  4613  		this.ref,
  4614  		val.Ref(),
  4615  	)
  4616  }
  4617  
  4618  // AriaCurrent returns the value of property "Element.ariaCurrent".
  4619  //
  4620  // It returns ok=false if there is no such property.
  4621  func (this Element) AriaCurrent() (ret js.String, ok bool) {
  4622  	ok = js.True == bindings.GetElementAriaCurrent(
  4623  		this.ref, js.Pointer(&ret),
  4624  	)
  4625  	return
  4626  }
  4627  
  4628  // SetAriaCurrent sets the value of property "Element.ariaCurrent" to val.
  4629  //
  4630  // It returns false if the property cannot be set.
  4631  func (this Element) SetAriaCurrent(val js.String) bool {
  4632  	return js.True == bindings.SetElementAriaCurrent(
  4633  		this.ref,
  4634  		val.Ref(),
  4635  	)
  4636  }
  4637  
  4638  // AriaDescribedByElements returns the value of property "Element.ariaDescribedByElements".
  4639  //
  4640  // It returns ok=false if there is no such property.
  4641  func (this Element) AriaDescribedByElements() (ret js.FrozenArray[Element], ok bool) {
  4642  	ok = js.True == bindings.GetElementAriaDescribedByElements(
  4643  		this.ref, js.Pointer(&ret),
  4644  	)
  4645  	return
  4646  }
  4647  
  4648  // SetAriaDescribedByElements sets the value of property "Element.ariaDescribedByElements" to val.
  4649  //
  4650  // It returns false if the property cannot be set.
  4651  func (this Element) SetAriaDescribedByElements(val js.FrozenArray[Element]) bool {
  4652  	return js.True == bindings.SetElementAriaDescribedByElements(
  4653  		this.ref,
  4654  		val.Ref(),
  4655  	)
  4656  }
  4657  
  4658  // AriaDescription returns the value of property "Element.ariaDescription".
  4659  //
  4660  // It returns ok=false if there is no such property.
  4661  func (this Element) AriaDescription() (ret js.String, ok bool) {
  4662  	ok = js.True == bindings.GetElementAriaDescription(
  4663  		this.ref, js.Pointer(&ret),
  4664  	)
  4665  	return
  4666  }
  4667  
  4668  // SetAriaDescription sets the value of property "Element.ariaDescription" to val.
  4669  //
  4670  // It returns false if the property cannot be set.
  4671  func (this Element) SetAriaDescription(val js.String) bool {
  4672  	return js.True == bindings.SetElementAriaDescription(
  4673  		this.ref,
  4674  		val.Ref(),
  4675  	)
  4676  }
  4677  
  4678  // AriaDetailsElements returns the value of property "Element.ariaDetailsElements".
  4679  //
  4680  // It returns ok=false if there is no such property.
  4681  func (this Element) AriaDetailsElements() (ret js.FrozenArray[Element], ok bool) {
  4682  	ok = js.True == bindings.GetElementAriaDetailsElements(
  4683  		this.ref, js.Pointer(&ret),
  4684  	)
  4685  	return
  4686  }
  4687  
  4688  // SetAriaDetailsElements sets the value of property "Element.ariaDetailsElements" to val.
  4689  //
  4690  // It returns false if the property cannot be set.
  4691  func (this Element) SetAriaDetailsElements(val js.FrozenArray[Element]) bool {
  4692  	return js.True == bindings.SetElementAriaDetailsElements(
  4693  		this.ref,
  4694  		val.Ref(),
  4695  	)
  4696  }
  4697  
  4698  // AriaDisabled returns the value of property "Element.ariaDisabled".
  4699  //
  4700  // It returns ok=false if there is no such property.
  4701  func (this Element) AriaDisabled() (ret js.String, ok bool) {
  4702  	ok = js.True == bindings.GetElementAriaDisabled(
  4703  		this.ref, js.Pointer(&ret),
  4704  	)
  4705  	return
  4706  }
  4707  
  4708  // SetAriaDisabled sets the value of property "Element.ariaDisabled" to val.
  4709  //
  4710  // It returns false if the property cannot be set.
  4711  func (this Element) SetAriaDisabled(val js.String) bool {
  4712  	return js.True == bindings.SetElementAriaDisabled(
  4713  		this.ref,
  4714  		val.Ref(),
  4715  	)
  4716  }
  4717  
  4718  // AriaErrorMessageElements returns the value of property "Element.ariaErrorMessageElements".
  4719  //
  4720  // It returns ok=false if there is no such property.
  4721  func (this Element) AriaErrorMessageElements() (ret js.FrozenArray[Element], ok bool) {
  4722  	ok = js.True == bindings.GetElementAriaErrorMessageElements(
  4723  		this.ref, js.Pointer(&ret),
  4724  	)
  4725  	return
  4726  }
  4727  
  4728  // SetAriaErrorMessageElements sets the value of property "Element.ariaErrorMessageElements" to val.
  4729  //
  4730  // It returns false if the property cannot be set.
  4731  func (this Element) SetAriaErrorMessageElements(val js.FrozenArray[Element]) bool {
  4732  	return js.True == bindings.SetElementAriaErrorMessageElements(
  4733  		this.ref,
  4734  		val.Ref(),
  4735  	)
  4736  }
  4737  
  4738  // AriaExpanded returns the value of property "Element.ariaExpanded".
  4739  //
  4740  // It returns ok=false if there is no such property.
  4741  func (this Element) AriaExpanded() (ret js.String, ok bool) {
  4742  	ok = js.True == bindings.GetElementAriaExpanded(
  4743  		this.ref, js.Pointer(&ret),
  4744  	)
  4745  	return
  4746  }
  4747  
  4748  // SetAriaExpanded sets the value of property "Element.ariaExpanded" to val.
  4749  //
  4750  // It returns false if the property cannot be set.
  4751  func (this Element) SetAriaExpanded(val js.String) bool {
  4752  	return js.True == bindings.SetElementAriaExpanded(
  4753  		this.ref,
  4754  		val.Ref(),
  4755  	)
  4756  }
  4757  
  4758  // AriaFlowToElements returns the value of property "Element.ariaFlowToElements".
  4759  //
  4760  // It returns ok=false if there is no such property.
  4761  func (this Element) AriaFlowToElements() (ret js.FrozenArray[Element], ok bool) {
  4762  	ok = js.True == bindings.GetElementAriaFlowToElements(
  4763  		this.ref, js.Pointer(&ret),
  4764  	)
  4765  	return
  4766  }
  4767  
  4768  // SetAriaFlowToElements sets the value of property "Element.ariaFlowToElements" to val.
  4769  //
  4770  // It returns false if the property cannot be set.
  4771  func (this Element) SetAriaFlowToElements(val js.FrozenArray[Element]) bool {
  4772  	return js.True == bindings.SetElementAriaFlowToElements(
  4773  		this.ref,
  4774  		val.Ref(),
  4775  	)
  4776  }
  4777  
  4778  // AriaHasPopup returns the value of property "Element.ariaHasPopup".
  4779  //
  4780  // It returns ok=false if there is no such property.
  4781  func (this Element) AriaHasPopup() (ret js.String, ok bool) {
  4782  	ok = js.True == bindings.GetElementAriaHasPopup(
  4783  		this.ref, js.Pointer(&ret),
  4784  	)
  4785  	return
  4786  }
  4787  
  4788  // SetAriaHasPopup sets the value of property "Element.ariaHasPopup" to val.
  4789  //
  4790  // It returns false if the property cannot be set.
  4791  func (this Element) SetAriaHasPopup(val js.String) bool {
  4792  	return js.True == bindings.SetElementAriaHasPopup(
  4793  		this.ref,
  4794  		val.Ref(),
  4795  	)
  4796  }
  4797  
  4798  // AriaHidden returns the value of property "Element.ariaHidden".
  4799  //
  4800  // It returns ok=false if there is no such property.
  4801  func (this Element) AriaHidden() (ret js.String, ok bool) {
  4802  	ok = js.True == bindings.GetElementAriaHidden(
  4803  		this.ref, js.Pointer(&ret),
  4804  	)
  4805  	return
  4806  }
  4807  
  4808  // SetAriaHidden sets the value of property "Element.ariaHidden" to val.
  4809  //
  4810  // It returns false if the property cannot be set.
  4811  func (this Element) SetAriaHidden(val js.String) bool {
  4812  	return js.True == bindings.SetElementAriaHidden(
  4813  		this.ref,
  4814  		val.Ref(),
  4815  	)
  4816  }
  4817  
  4818  // AriaInvalid returns the value of property "Element.ariaInvalid".
  4819  //
  4820  // It returns ok=false if there is no such property.
  4821  func (this Element) AriaInvalid() (ret js.String, ok bool) {
  4822  	ok = js.True == bindings.GetElementAriaInvalid(
  4823  		this.ref, js.Pointer(&ret),
  4824  	)
  4825  	return
  4826  }
  4827  
  4828  // SetAriaInvalid sets the value of property "Element.ariaInvalid" to val.
  4829  //
  4830  // It returns false if the property cannot be set.
  4831  func (this Element) SetAriaInvalid(val js.String) bool {
  4832  	return js.True == bindings.SetElementAriaInvalid(
  4833  		this.ref,
  4834  		val.Ref(),
  4835  	)
  4836  }
  4837  
  4838  // AriaKeyShortcuts returns the value of property "Element.ariaKeyShortcuts".
  4839  //
  4840  // It returns ok=false if there is no such property.
  4841  func (this Element) AriaKeyShortcuts() (ret js.String, ok bool) {
  4842  	ok = js.True == bindings.GetElementAriaKeyShortcuts(
  4843  		this.ref, js.Pointer(&ret),
  4844  	)
  4845  	return
  4846  }
  4847  
  4848  // SetAriaKeyShortcuts sets the value of property "Element.ariaKeyShortcuts" to val.
  4849  //
  4850  // It returns false if the property cannot be set.
  4851  func (this Element) SetAriaKeyShortcuts(val js.String) bool {
  4852  	return js.True == bindings.SetElementAriaKeyShortcuts(
  4853  		this.ref,
  4854  		val.Ref(),
  4855  	)
  4856  }
  4857  
  4858  // AriaLabel returns the value of property "Element.ariaLabel".
  4859  //
  4860  // It returns ok=false if there is no such property.
  4861  func (this Element) AriaLabel() (ret js.String, ok bool) {
  4862  	ok = js.True == bindings.GetElementAriaLabel(
  4863  		this.ref, js.Pointer(&ret),
  4864  	)
  4865  	return
  4866  }
  4867  
  4868  // SetAriaLabel sets the value of property "Element.ariaLabel" to val.
  4869  //
  4870  // It returns false if the property cannot be set.
  4871  func (this Element) SetAriaLabel(val js.String) bool {
  4872  	return js.True == bindings.SetElementAriaLabel(
  4873  		this.ref,
  4874  		val.Ref(),
  4875  	)
  4876  }
  4877  
  4878  // AriaLabelledByElements returns the value of property "Element.ariaLabelledByElements".
  4879  //
  4880  // It returns ok=false if there is no such property.
  4881  func (this Element) AriaLabelledByElements() (ret js.FrozenArray[Element], ok bool) {
  4882  	ok = js.True == bindings.GetElementAriaLabelledByElements(
  4883  		this.ref, js.Pointer(&ret),
  4884  	)
  4885  	return
  4886  }
  4887  
  4888  // SetAriaLabelledByElements sets the value of property "Element.ariaLabelledByElements" to val.
  4889  //
  4890  // It returns false if the property cannot be set.
  4891  func (this Element) SetAriaLabelledByElements(val js.FrozenArray[Element]) bool {
  4892  	return js.True == bindings.SetElementAriaLabelledByElements(
  4893  		this.ref,
  4894  		val.Ref(),
  4895  	)
  4896  }
  4897  
  4898  // AriaLevel returns the value of property "Element.ariaLevel".
  4899  //
  4900  // It returns ok=false if there is no such property.
  4901  func (this Element) AriaLevel() (ret js.String, ok bool) {
  4902  	ok = js.True == bindings.GetElementAriaLevel(
  4903  		this.ref, js.Pointer(&ret),
  4904  	)
  4905  	return
  4906  }
  4907  
  4908  // SetAriaLevel sets the value of property "Element.ariaLevel" to val.
  4909  //
  4910  // It returns false if the property cannot be set.
  4911  func (this Element) SetAriaLevel(val js.String) bool {
  4912  	return js.True == bindings.SetElementAriaLevel(
  4913  		this.ref,
  4914  		val.Ref(),
  4915  	)
  4916  }
  4917  
  4918  // AriaLive returns the value of property "Element.ariaLive".
  4919  //
  4920  // It returns ok=false if there is no such property.
  4921  func (this Element) AriaLive() (ret js.String, ok bool) {
  4922  	ok = js.True == bindings.GetElementAriaLive(
  4923  		this.ref, js.Pointer(&ret),
  4924  	)
  4925  	return
  4926  }
  4927  
  4928  // SetAriaLive sets the value of property "Element.ariaLive" to val.
  4929  //
  4930  // It returns false if the property cannot be set.
  4931  func (this Element) SetAriaLive(val js.String) bool {
  4932  	return js.True == bindings.SetElementAriaLive(
  4933  		this.ref,
  4934  		val.Ref(),
  4935  	)
  4936  }
  4937  
  4938  // AriaModal returns the value of property "Element.ariaModal".
  4939  //
  4940  // It returns ok=false if there is no such property.
  4941  func (this Element) AriaModal() (ret js.String, ok bool) {
  4942  	ok = js.True == bindings.GetElementAriaModal(
  4943  		this.ref, js.Pointer(&ret),
  4944  	)
  4945  	return
  4946  }
  4947  
  4948  // SetAriaModal sets the value of property "Element.ariaModal" to val.
  4949  //
  4950  // It returns false if the property cannot be set.
  4951  func (this Element) SetAriaModal(val js.String) bool {
  4952  	return js.True == bindings.SetElementAriaModal(
  4953  		this.ref,
  4954  		val.Ref(),
  4955  	)
  4956  }
  4957  
  4958  // AriaMultiLine returns the value of property "Element.ariaMultiLine".
  4959  //
  4960  // It returns ok=false if there is no such property.
  4961  func (this Element) AriaMultiLine() (ret js.String, ok bool) {
  4962  	ok = js.True == bindings.GetElementAriaMultiLine(
  4963  		this.ref, js.Pointer(&ret),
  4964  	)
  4965  	return
  4966  }
  4967  
  4968  // SetAriaMultiLine sets the value of property "Element.ariaMultiLine" to val.
  4969  //
  4970  // It returns false if the property cannot be set.
  4971  func (this Element) SetAriaMultiLine(val js.String) bool {
  4972  	return js.True == bindings.SetElementAriaMultiLine(
  4973  		this.ref,
  4974  		val.Ref(),
  4975  	)
  4976  }
  4977  
  4978  // AriaMultiSelectable returns the value of property "Element.ariaMultiSelectable".
  4979  //
  4980  // It returns ok=false if there is no such property.
  4981  func (this Element) AriaMultiSelectable() (ret js.String, ok bool) {
  4982  	ok = js.True == bindings.GetElementAriaMultiSelectable(
  4983  		this.ref, js.Pointer(&ret),
  4984  	)
  4985  	return
  4986  }
  4987  
  4988  // SetAriaMultiSelectable sets the value of property "Element.ariaMultiSelectable" to val.
  4989  //
  4990  // It returns false if the property cannot be set.
  4991  func (this Element) SetAriaMultiSelectable(val js.String) bool {
  4992  	return js.True == bindings.SetElementAriaMultiSelectable(
  4993  		this.ref,
  4994  		val.Ref(),
  4995  	)
  4996  }
  4997  
  4998  // AriaOrientation returns the value of property "Element.ariaOrientation".
  4999  //
  5000  // It returns ok=false if there is no such property.
  5001  func (this Element) AriaOrientation() (ret js.String, ok bool) {
  5002  	ok = js.True == bindings.GetElementAriaOrientation(
  5003  		this.ref, js.Pointer(&ret),
  5004  	)
  5005  	return
  5006  }
  5007  
  5008  // SetAriaOrientation sets the value of property "Element.ariaOrientation" to val.
  5009  //
  5010  // It returns false if the property cannot be set.
  5011  func (this Element) SetAriaOrientation(val js.String) bool {
  5012  	return js.True == bindings.SetElementAriaOrientation(
  5013  		this.ref,
  5014  		val.Ref(),
  5015  	)
  5016  }
  5017  
  5018  // AriaOwnsElements returns the value of property "Element.ariaOwnsElements".
  5019  //
  5020  // It returns ok=false if there is no such property.
  5021  func (this Element) AriaOwnsElements() (ret js.FrozenArray[Element], ok bool) {
  5022  	ok = js.True == bindings.GetElementAriaOwnsElements(
  5023  		this.ref, js.Pointer(&ret),
  5024  	)
  5025  	return
  5026  }
  5027  
  5028  // SetAriaOwnsElements sets the value of property "Element.ariaOwnsElements" to val.
  5029  //
  5030  // It returns false if the property cannot be set.
  5031  func (this Element) SetAriaOwnsElements(val js.FrozenArray[Element]) bool {
  5032  	return js.True == bindings.SetElementAriaOwnsElements(
  5033  		this.ref,
  5034  		val.Ref(),
  5035  	)
  5036  }
  5037  
  5038  // AriaPlaceholder returns the value of property "Element.ariaPlaceholder".
  5039  //
  5040  // It returns ok=false if there is no such property.
  5041  func (this Element) AriaPlaceholder() (ret js.String, ok bool) {
  5042  	ok = js.True == bindings.GetElementAriaPlaceholder(
  5043  		this.ref, js.Pointer(&ret),
  5044  	)
  5045  	return
  5046  }
  5047  
  5048  // SetAriaPlaceholder sets the value of property "Element.ariaPlaceholder" to val.
  5049  //
  5050  // It returns false if the property cannot be set.
  5051  func (this Element) SetAriaPlaceholder(val js.String) bool {
  5052  	return js.True == bindings.SetElementAriaPlaceholder(
  5053  		this.ref,
  5054  		val.Ref(),
  5055  	)
  5056  }
  5057  
  5058  // AriaPosInSet returns the value of property "Element.ariaPosInSet".
  5059  //
  5060  // It returns ok=false if there is no such property.
  5061  func (this Element) AriaPosInSet() (ret js.String, ok bool) {
  5062  	ok = js.True == bindings.GetElementAriaPosInSet(
  5063  		this.ref, js.Pointer(&ret),
  5064  	)
  5065  	return
  5066  }
  5067  
  5068  // SetAriaPosInSet sets the value of property "Element.ariaPosInSet" to val.
  5069  //
  5070  // It returns false if the property cannot be set.
  5071  func (this Element) SetAriaPosInSet(val js.String) bool {
  5072  	return js.True == bindings.SetElementAriaPosInSet(
  5073  		this.ref,
  5074  		val.Ref(),
  5075  	)
  5076  }
  5077  
  5078  // AriaPressed returns the value of property "Element.ariaPressed".
  5079  //
  5080  // It returns ok=false if there is no such property.
  5081  func (this Element) AriaPressed() (ret js.String, ok bool) {
  5082  	ok = js.True == bindings.GetElementAriaPressed(
  5083  		this.ref, js.Pointer(&ret),
  5084  	)
  5085  	return
  5086  }
  5087  
  5088  // SetAriaPressed sets the value of property "Element.ariaPressed" to val.
  5089  //
  5090  // It returns false if the property cannot be set.
  5091  func (this Element) SetAriaPressed(val js.String) bool {
  5092  	return js.True == bindings.SetElementAriaPressed(
  5093  		this.ref,
  5094  		val.Ref(),
  5095  	)
  5096  }
  5097  
  5098  // AriaReadOnly returns the value of property "Element.ariaReadOnly".
  5099  //
  5100  // It returns ok=false if there is no such property.
  5101  func (this Element) AriaReadOnly() (ret js.String, ok bool) {
  5102  	ok = js.True == bindings.GetElementAriaReadOnly(
  5103  		this.ref, js.Pointer(&ret),
  5104  	)
  5105  	return
  5106  }
  5107  
  5108  // SetAriaReadOnly sets the value of property "Element.ariaReadOnly" to val.
  5109  //
  5110  // It returns false if the property cannot be set.
  5111  func (this Element) SetAriaReadOnly(val js.String) bool {
  5112  	return js.True == bindings.SetElementAriaReadOnly(
  5113  		this.ref,
  5114  		val.Ref(),
  5115  	)
  5116  }
  5117  
  5118  // AriaRequired returns the value of property "Element.ariaRequired".
  5119  //
  5120  // It returns ok=false if there is no such property.
  5121  func (this Element) AriaRequired() (ret js.String, ok bool) {
  5122  	ok = js.True == bindings.GetElementAriaRequired(
  5123  		this.ref, js.Pointer(&ret),
  5124  	)
  5125  	return
  5126  }
  5127  
  5128  // SetAriaRequired sets the value of property "Element.ariaRequired" to val.
  5129  //
  5130  // It returns false if the property cannot be set.
  5131  func (this Element) SetAriaRequired(val js.String) bool {
  5132  	return js.True == bindings.SetElementAriaRequired(
  5133  		this.ref,
  5134  		val.Ref(),
  5135  	)
  5136  }
  5137  
  5138  // AriaRoleDescription returns the value of property "Element.ariaRoleDescription".
  5139  //
  5140  // It returns ok=false if there is no such property.
  5141  func (this Element) AriaRoleDescription() (ret js.String, ok bool) {
  5142  	ok = js.True == bindings.GetElementAriaRoleDescription(
  5143  		this.ref, js.Pointer(&ret),
  5144  	)
  5145  	return
  5146  }
  5147  
  5148  // SetAriaRoleDescription sets the value of property "Element.ariaRoleDescription" to val.
  5149  //
  5150  // It returns false if the property cannot be set.
  5151  func (this Element) SetAriaRoleDescription(val js.String) bool {
  5152  	return js.True == bindings.SetElementAriaRoleDescription(
  5153  		this.ref,
  5154  		val.Ref(),
  5155  	)
  5156  }
  5157  
  5158  // AriaRowCount returns the value of property "Element.ariaRowCount".
  5159  //
  5160  // It returns ok=false if there is no such property.
  5161  func (this Element) AriaRowCount() (ret js.String, ok bool) {
  5162  	ok = js.True == bindings.GetElementAriaRowCount(
  5163  		this.ref, js.Pointer(&ret),
  5164  	)
  5165  	return
  5166  }
  5167  
  5168  // SetAriaRowCount sets the value of property "Element.ariaRowCount" to val.
  5169  //
  5170  // It returns false if the property cannot be set.
  5171  func (this Element) SetAriaRowCount(val js.String) bool {
  5172  	return js.True == bindings.SetElementAriaRowCount(
  5173  		this.ref,
  5174  		val.Ref(),
  5175  	)
  5176  }
  5177  
  5178  // AriaRowIndex returns the value of property "Element.ariaRowIndex".
  5179  //
  5180  // It returns ok=false if there is no such property.
  5181  func (this Element) AriaRowIndex() (ret js.String, ok bool) {
  5182  	ok = js.True == bindings.GetElementAriaRowIndex(
  5183  		this.ref, js.Pointer(&ret),
  5184  	)
  5185  	return
  5186  }
  5187  
  5188  // SetAriaRowIndex sets the value of property "Element.ariaRowIndex" to val.
  5189  //
  5190  // It returns false if the property cannot be set.
  5191  func (this Element) SetAriaRowIndex(val js.String) bool {
  5192  	return js.True == bindings.SetElementAriaRowIndex(
  5193  		this.ref,
  5194  		val.Ref(),
  5195  	)
  5196  }
  5197  
  5198  // AriaRowIndexText returns the value of property "Element.ariaRowIndexText".
  5199  //
  5200  // It returns ok=false if there is no such property.
  5201  func (this Element) AriaRowIndexText() (ret js.String, ok bool) {
  5202  	ok = js.True == bindings.GetElementAriaRowIndexText(
  5203  		this.ref, js.Pointer(&ret),
  5204  	)
  5205  	return
  5206  }
  5207  
  5208  // SetAriaRowIndexText sets the value of property "Element.ariaRowIndexText" to val.
  5209  //
  5210  // It returns false if the property cannot be set.
  5211  func (this Element) SetAriaRowIndexText(val js.String) bool {
  5212  	return js.True == bindings.SetElementAriaRowIndexText(
  5213  		this.ref,
  5214  		val.Ref(),
  5215  	)
  5216  }
  5217  
  5218  // AriaRowSpan returns the value of property "Element.ariaRowSpan".
  5219  //
  5220  // It returns ok=false if there is no such property.
  5221  func (this Element) AriaRowSpan() (ret js.String, ok bool) {
  5222  	ok = js.True == bindings.GetElementAriaRowSpan(
  5223  		this.ref, js.Pointer(&ret),
  5224  	)
  5225  	return
  5226  }
  5227  
  5228  // SetAriaRowSpan sets the value of property "Element.ariaRowSpan" to val.
  5229  //
  5230  // It returns false if the property cannot be set.
  5231  func (this Element) SetAriaRowSpan(val js.String) bool {
  5232  	return js.True == bindings.SetElementAriaRowSpan(
  5233  		this.ref,
  5234  		val.Ref(),
  5235  	)
  5236  }
  5237  
  5238  // AriaSelected returns the value of property "Element.ariaSelected".
  5239  //
  5240  // It returns ok=false if there is no such property.
  5241  func (this Element) AriaSelected() (ret js.String, ok bool) {
  5242  	ok = js.True == bindings.GetElementAriaSelected(
  5243  		this.ref, js.Pointer(&ret),
  5244  	)
  5245  	return
  5246  }
  5247  
  5248  // SetAriaSelected sets the value of property "Element.ariaSelected" to val.
  5249  //
  5250  // It returns false if the property cannot be set.
  5251  func (this Element) SetAriaSelected(val js.String) bool {
  5252  	return js.True == bindings.SetElementAriaSelected(
  5253  		this.ref,
  5254  		val.Ref(),
  5255  	)
  5256  }
  5257  
  5258  // AriaSetSize returns the value of property "Element.ariaSetSize".
  5259  //
  5260  // It returns ok=false if there is no such property.
  5261  func (this Element) AriaSetSize() (ret js.String, ok bool) {
  5262  	ok = js.True == bindings.GetElementAriaSetSize(
  5263  		this.ref, js.Pointer(&ret),
  5264  	)
  5265  	return
  5266  }
  5267  
  5268  // SetAriaSetSize sets the value of property "Element.ariaSetSize" to val.
  5269  //
  5270  // It returns false if the property cannot be set.
  5271  func (this Element) SetAriaSetSize(val js.String) bool {
  5272  	return js.True == bindings.SetElementAriaSetSize(
  5273  		this.ref,
  5274  		val.Ref(),
  5275  	)
  5276  }
  5277  
  5278  // AriaSort returns the value of property "Element.ariaSort".
  5279  //
  5280  // It returns ok=false if there is no such property.
  5281  func (this Element) AriaSort() (ret js.String, ok bool) {
  5282  	ok = js.True == bindings.GetElementAriaSort(
  5283  		this.ref, js.Pointer(&ret),
  5284  	)
  5285  	return
  5286  }
  5287  
  5288  // SetAriaSort sets the value of property "Element.ariaSort" to val.
  5289  //
  5290  // It returns false if the property cannot be set.
  5291  func (this Element) SetAriaSort(val js.String) bool {
  5292  	return js.True == bindings.SetElementAriaSort(
  5293  		this.ref,
  5294  		val.Ref(),
  5295  	)
  5296  }
  5297  
  5298  // AriaValueMax returns the value of property "Element.ariaValueMax".
  5299  //
  5300  // It returns ok=false if there is no such property.
  5301  func (this Element) AriaValueMax() (ret js.String, ok bool) {
  5302  	ok = js.True == bindings.GetElementAriaValueMax(
  5303  		this.ref, js.Pointer(&ret),
  5304  	)
  5305  	return
  5306  }
  5307  
  5308  // SetAriaValueMax sets the value of property "Element.ariaValueMax" to val.
  5309  //
  5310  // It returns false if the property cannot be set.
  5311  func (this Element) SetAriaValueMax(val js.String) bool {
  5312  	return js.True == bindings.SetElementAriaValueMax(
  5313  		this.ref,
  5314  		val.Ref(),
  5315  	)
  5316  }
  5317  
  5318  // AriaValueMin returns the value of property "Element.ariaValueMin".
  5319  //
  5320  // It returns ok=false if there is no such property.
  5321  func (this Element) AriaValueMin() (ret js.String, ok bool) {
  5322  	ok = js.True == bindings.GetElementAriaValueMin(
  5323  		this.ref, js.Pointer(&ret),
  5324  	)
  5325  	return
  5326  }
  5327  
  5328  // SetAriaValueMin sets the value of property "Element.ariaValueMin" to val.
  5329  //
  5330  // It returns false if the property cannot be set.
  5331  func (this Element) SetAriaValueMin(val js.String) bool {
  5332  	return js.True == bindings.SetElementAriaValueMin(
  5333  		this.ref,
  5334  		val.Ref(),
  5335  	)
  5336  }
  5337  
  5338  // AriaValueNow returns the value of property "Element.ariaValueNow".
  5339  //
  5340  // It returns ok=false if there is no such property.
  5341  func (this Element) AriaValueNow() (ret js.String, ok bool) {
  5342  	ok = js.True == bindings.GetElementAriaValueNow(
  5343  		this.ref, js.Pointer(&ret),
  5344  	)
  5345  	return
  5346  }
  5347  
  5348  // SetAriaValueNow sets the value of property "Element.ariaValueNow" to val.
  5349  //
  5350  // It returns false if the property cannot be set.
  5351  func (this Element) SetAriaValueNow(val js.String) bool {
  5352  	return js.True == bindings.SetElementAriaValueNow(
  5353  		this.ref,
  5354  		val.Ref(),
  5355  	)
  5356  }
  5357  
  5358  // AriaValueText returns the value of property "Element.ariaValueText".
  5359  //
  5360  // It returns ok=false if there is no such property.
  5361  func (this Element) AriaValueText() (ret js.String, ok bool) {
  5362  	ok = js.True == bindings.GetElementAriaValueText(
  5363  		this.ref, js.Pointer(&ret),
  5364  	)
  5365  	return
  5366  }
  5367  
  5368  // SetAriaValueText sets the value of property "Element.ariaValueText" to val.
  5369  //
  5370  // It returns false if the property cannot be set.
  5371  func (this Element) SetAriaValueText(val js.String) bool {
  5372  	return js.True == bindings.SetElementAriaValueText(
  5373  		this.ref,
  5374  		val.Ref(),
  5375  	)
  5376  }
  5377  
  5378  // InnerHTML returns the value of property "Element.innerHTML".
  5379  //
  5380  // It returns ok=false if there is no such property.
  5381  func (this Element) InnerHTML() (ret js.String, ok bool) {
  5382  	ok = js.True == bindings.GetElementInnerHTML(
  5383  		this.ref, js.Pointer(&ret),
  5384  	)
  5385  	return
  5386  }
  5387  
  5388  // SetInnerHTML sets the value of property "Element.innerHTML" to val.
  5389  //
  5390  // It returns false if the property cannot be set.
  5391  func (this Element) SetInnerHTML(val js.String) bool {
  5392  	return js.True == bindings.SetElementInnerHTML(
  5393  		this.ref,
  5394  		val.Ref(),
  5395  	)
  5396  }
  5397  
  5398  // Children returns the value of property "Element.children".
  5399  //
  5400  // It returns ok=false if there is no such property.
  5401  func (this Element) Children() (ret HTMLCollection, ok bool) {
  5402  	ok = js.True == bindings.GetElementChildren(
  5403  		this.ref, js.Pointer(&ret),
  5404  	)
  5405  	return
  5406  }
  5407  
  5408  // FirstElementChild returns the value of property "Element.firstElementChild".
  5409  //
  5410  // It returns ok=false if there is no such property.
  5411  func (this Element) FirstElementChild() (ret Element, ok bool) {
  5412  	ok = js.True == bindings.GetElementFirstElementChild(
  5413  		this.ref, js.Pointer(&ret),
  5414  	)
  5415  	return
  5416  }
  5417  
  5418  // LastElementChild returns the value of property "Element.lastElementChild".
  5419  //
  5420  // It returns ok=false if there is no such property.
  5421  func (this Element) LastElementChild() (ret Element, ok bool) {
  5422  	ok = js.True == bindings.GetElementLastElementChild(
  5423  		this.ref, js.Pointer(&ret),
  5424  	)
  5425  	return
  5426  }
  5427  
  5428  // ChildElementCount returns the value of property "Element.childElementCount".
  5429  //
  5430  // It returns ok=false if there is no such property.
  5431  func (this Element) ChildElementCount() (ret uint32, ok bool) {
  5432  	ok = js.True == bindings.GetElementChildElementCount(
  5433  		this.ref, js.Pointer(&ret),
  5434  	)
  5435  	return
  5436  }
  5437  
  5438  // PreviousElementSibling returns the value of property "Element.previousElementSibling".
  5439  //
  5440  // It returns ok=false if there is no such property.
  5441  func (this Element) PreviousElementSibling() (ret Element, ok bool) {
  5442  	ok = js.True == bindings.GetElementPreviousElementSibling(
  5443  		this.ref, js.Pointer(&ret),
  5444  	)
  5445  	return
  5446  }
  5447  
  5448  // NextElementSibling returns the value of property "Element.nextElementSibling".
  5449  //
  5450  // It returns ok=false if there is no such property.
  5451  func (this Element) NextElementSibling() (ret Element, ok bool) {
  5452  	ok = js.True == bindings.GetElementNextElementSibling(
  5453  		this.ref, js.Pointer(&ret),
  5454  	)
  5455  	return
  5456  }
  5457  
  5458  // AssignedSlot returns the value of property "Element.assignedSlot".
  5459  //
  5460  // It returns ok=false if there is no such property.
  5461  func (this Element) AssignedSlot() (ret HTMLSlotElement, ok bool) {
  5462  	ok = js.True == bindings.GetElementAssignedSlot(
  5463  		this.ref, js.Pointer(&ret),
  5464  	)
  5465  	return
  5466  }
  5467  
  5468  // RegionOverset returns the value of property "Element.regionOverset".
  5469  //
  5470  // It returns ok=false if there is no such property.
  5471  func (this Element) RegionOverset() (ret js.String, ok bool) {
  5472  	ok = js.True == bindings.GetElementRegionOverset(
  5473  		this.ref, js.Pointer(&ret),
  5474  	)
  5475  	return
  5476  }
  5477  
  5478  // HasFuncHasAttributes returns true if the method "Element.hasAttributes" exists.
  5479  func (this Element) HasFuncHasAttributes() bool {
  5480  	return js.True == bindings.HasFuncElementHasAttributes(
  5481  		this.ref,
  5482  	)
  5483  }
  5484  
  5485  // FuncHasAttributes returns the method "Element.hasAttributes".
  5486  func (this Element) FuncHasAttributes() (fn js.Func[func() bool]) {
  5487  	bindings.FuncElementHasAttributes(
  5488  		this.ref, js.Pointer(&fn),
  5489  	)
  5490  	return
  5491  }
  5492  
  5493  // HasAttributes calls the method "Element.hasAttributes".
  5494  func (this Element) HasAttributes() (ret bool) {
  5495  	bindings.CallElementHasAttributes(
  5496  		this.ref, js.Pointer(&ret),
  5497  	)
  5498  
  5499  	return
  5500  }
  5501  
  5502  // TryHasAttributes calls the method "Element.hasAttributes"
  5503  // in a try/catch block and returns (_, err, ok = false) when it went through
  5504  // the catch clause.
  5505  func (this Element) TryHasAttributes() (ret bool, exception js.Any, ok bool) {
  5506  	ok = js.True == bindings.TryElementHasAttributes(
  5507  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  5508  	)
  5509  
  5510  	return
  5511  }
  5512  
  5513  // HasFuncGetAttributeNames returns true if the method "Element.getAttributeNames" exists.
  5514  func (this Element) HasFuncGetAttributeNames() bool {
  5515  	return js.True == bindings.HasFuncElementGetAttributeNames(
  5516  		this.ref,
  5517  	)
  5518  }
  5519  
  5520  // FuncGetAttributeNames returns the method "Element.getAttributeNames".
  5521  func (this Element) FuncGetAttributeNames() (fn js.Func[func() js.Array[js.String]]) {
  5522  	bindings.FuncElementGetAttributeNames(
  5523  		this.ref, js.Pointer(&fn),
  5524  	)
  5525  	return
  5526  }
  5527  
  5528  // GetAttributeNames calls the method "Element.getAttributeNames".
  5529  func (this Element) GetAttributeNames() (ret js.Array[js.String]) {
  5530  	bindings.CallElementGetAttributeNames(
  5531  		this.ref, js.Pointer(&ret),
  5532  	)
  5533  
  5534  	return
  5535  }
  5536  
  5537  // TryGetAttributeNames calls the method "Element.getAttributeNames"
  5538  // in a try/catch block and returns (_, err, ok = false) when it went through
  5539  // the catch clause.
  5540  func (this Element) TryGetAttributeNames() (ret js.Array[js.String], exception js.Any, ok bool) {
  5541  	ok = js.True == bindings.TryElementGetAttributeNames(
  5542  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  5543  	)
  5544  
  5545  	return
  5546  }
  5547  
  5548  // HasFuncGetAttribute returns true if the method "Element.getAttribute" exists.
  5549  func (this Element) HasFuncGetAttribute() bool {
  5550  	return js.True == bindings.HasFuncElementGetAttribute(
  5551  		this.ref,
  5552  	)
  5553  }
  5554  
  5555  // FuncGetAttribute returns the method "Element.getAttribute".
  5556  func (this Element) FuncGetAttribute() (fn js.Func[func(qualifiedName js.String) js.String]) {
  5557  	bindings.FuncElementGetAttribute(
  5558  		this.ref, js.Pointer(&fn),
  5559  	)
  5560  	return
  5561  }
  5562  
  5563  // GetAttribute calls the method "Element.getAttribute".
  5564  func (this Element) GetAttribute(qualifiedName js.String) (ret js.String) {
  5565  	bindings.CallElementGetAttribute(
  5566  		this.ref, js.Pointer(&ret),
  5567  		qualifiedName.Ref(),
  5568  	)
  5569  
  5570  	return
  5571  }
  5572  
  5573  // TryGetAttribute calls the method "Element.getAttribute"
  5574  // in a try/catch block and returns (_, err, ok = false) when it went through
  5575  // the catch clause.
  5576  func (this Element) TryGetAttribute(qualifiedName js.String) (ret js.String, exception js.Any, ok bool) {
  5577  	ok = js.True == bindings.TryElementGetAttribute(
  5578  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  5579  		qualifiedName.Ref(),
  5580  	)
  5581  
  5582  	return
  5583  }
  5584  
  5585  // HasFuncGetAttributeNS returns true if the method "Element.getAttributeNS" exists.
  5586  func (this Element) HasFuncGetAttributeNS() bool {
  5587  	return js.True == bindings.HasFuncElementGetAttributeNS(
  5588  		this.ref,
  5589  	)
  5590  }
  5591  
  5592  // FuncGetAttributeNS returns the method "Element.getAttributeNS".
  5593  func (this Element) FuncGetAttributeNS() (fn js.Func[func(namespace js.String, localName js.String) js.String]) {
  5594  	bindings.FuncElementGetAttributeNS(
  5595  		this.ref, js.Pointer(&fn),
  5596  	)
  5597  	return
  5598  }
  5599  
  5600  // GetAttributeNS calls the method "Element.getAttributeNS".
  5601  func (this Element) GetAttributeNS(namespace js.String, localName js.String) (ret js.String) {
  5602  	bindings.CallElementGetAttributeNS(
  5603  		this.ref, js.Pointer(&ret),
  5604  		namespace.Ref(),
  5605  		localName.Ref(),
  5606  	)
  5607  
  5608  	return
  5609  }
  5610  
  5611  // TryGetAttributeNS calls the method "Element.getAttributeNS"
  5612  // in a try/catch block and returns (_, err, ok = false) when it went through
  5613  // the catch clause.
  5614  func (this Element) TryGetAttributeNS(namespace js.String, localName js.String) (ret js.String, exception js.Any, ok bool) {
  5615  	ok = js.True == bindings.TryElementGetAttributeNS(
  5616  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  5617  		namespace.Ref(),
  5618  		localName.Ref(),
  5619  	)
  5620  
  5621  	return
  5622  }
  5623  
  5624  // HasFuncSetAttribute returns true if the method "Element.setAttribute" exists.
  5625  func (this Element) HasFuncSetAttribute() bool {
  5626  	return js.True == bindings.HasFuncElementSetAttribute(
  5627  		this.ref,
  5628  	)
  5629  }
  5630  
  5631  // FuncSetAttribute returns the method "Element.setAttribute".
  5632  func (this Element) FuncSetAttribute() (fn js.Func[func(qualifiedName js.String, value js.String)]) {
  5633  	bindings.FuncElementSetAttribute(
  5634  		this.ref, js.Pointer(&fn),
  5635  	)
  5636  	return
  5637  }
  5638  
  5639  // SetAttribute calls the method "Element.setAttribute".
  5640  func (this Element) SetAttribute(qualifiedName js.String, value js.String) (ret js.Void) {
  5641  	bindings.CallElementSetAttribute(
  5642  		this.ref, js.Pointer(&ret),
  5643  		qualifiedName.Ref(),
  5644  		value.Ref(),
  5645  	)
  5646  
  5647  	return
  5648  }
  5649  
  5650  // TrySetAttribute calls the method "Element.setAttribute"
  5651  // in a try/catch block and returns (_, err, ok = false) when it went through
  5652  // the catch clause.
  5653  func (this Element) TrySetAttribute(qualifiedName js.String, value js.String) (ret js.Void, exception js.Any, ok bool) {
  5654  	ok = js.True == bindings.TryElementSetAttribute(
  5655  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  5656  		qualifiedName.Ref(),
  5657  		value.Ref(),
  5658  	)
  5659  
  5660  	return
  5661  }
  5662  
  5663  // HasFuncSetAttributeNS returns true if the method "Element.setAttributeNS" exists.
  5664  func (this Element) HasFuncSetAttributeNS() bool {
  5665  	return js.True == bindings.HasFuncElementSetAttributeNS(
  5666  		this.ref,
  5667  	)
  5668  }
  5669  
  5670  // FuncSetAttributeNS returns the method "Element.setAttributeNS".
  5671  func (this Element) FuncSetAttributeNS() (fn js.Func[func(namespace js.String, qualifiedName js.String, value js.String)]) {
  5672  	bindings.FuncElementSetAttributeNS(
  5673  		this.ref, js.Pointer(&fn),
  5674  	)
  5675  	return
  5676  }
  5677  
  5678  // SetAttributeNS calls the method "Element.setAttributeNS".
  5679  func (this Element) SetAttributeNS(namespace js.String, qualifiedName js.String, value js.String) (ret js.Void) {
  5680  	bindings.CallElementSetAttributeNS(
  5681  		this.ref, js.Pointer(&ret),
  5682  		namespace.Ref(),
  5683  		qualifiedName.Ref(),
  5684  		value.Ref(),
  5685  	)
  5686  
  5687  	return
  5688  }
  5689  
  5690  // TrySetAttributeNS calls the method "Element.setAttributeNS"
  5691  // in a try/catch block and returns (_, err, ok = false) when it went through
  5692  // the catch clause.
  5693  func (this Element) TrySetAttributeNS(namespace js.String, qualifiedName js.String, value js.String) (ret js.Void, exception js.Any, ok bool) {
  5694  	ok = js.True == bindings.TryElementSetAttributeNS(
  5695  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  5696  		namespace.Ref(),
  5697  		qualifiedName.Ref(),
  5698  		value.Ref(),
  5699  	)
  5700  
  5701  	return
  5702  }
  5703  
  5704  // HasFuncRemoveAttribute returns true if the method "Element.removeAttribute" exists.
  5705  func (this Element) HasFuncRemoveAttribute() bool {
  5706  	return js.True == bindings.HasFuncElementRemoveAttribute(
  5707  		this.ref,
  5708  	)
  5709  }
  5710  
  5711  // FuncRemoveAttribute returns the method "Element.removeAttribute".
  5712  func (this Element) FuncRemoveAttribute() (fn js.Func[func(qualifiedName js.String)]) {
  5713  	bindings.FuncElementRemoveAttribute(
  5714  		this.ref, js.Pointer(&fn),
  5715  	)
  5716  	return
  5717  }
  5718  
  5719  // RemoveAttribute calls the method "Element.removeAttribute".
  5720  func (this Element) RemoveAttribute(qualifiedName js.String) (ret js.Void) {
  5721  	bindings.CallElementRemoveAttribute(
  5722  		this.ref, js.Pointer(&ret),
  5723  		qualifiedName.Ref(),
  5724  	)
  5725  
  5726  	return
  5727  }
  5728  
  5729  // TryRemoveAttribute calls the method "Element.removeAttribute"
  5730  // in a try/catch block and returns (_, err, ok = false) when it went through
  5731  // the catch clause.
  5732  func (this Element) TryRemoveAttribute(qualifiedName js.String) (ret js.Void, exception js.Any, ok bool) {
  5733  	ok = js.True == bindings.TryElementRemoveAttribute(
  5734  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  5735  		qualifiedName.Ref(),
  5736  	)
  5737  
  5738  	return
  5739  }
  5740  
  5741  // HasFuncRemoveAttributeNS returns true if the method "Element.removeAttributeNS" exists.
  5742  func (this Element) HasFuncRemoveAttributeNS() bool {
  5743  	return js.True == bindings.HasFuncElementRemoveAttributeNS(
  5744  		this.ref,
  5745  	)
  5746  }
  5747  
  5748  // FuncRemoveAttributeNS returns the method "Element.removeAttributeNS".
  5749  func (this Element) FuncRemoveAttributeNS() (fn js.Func[func(namespace js.String, localName js.String)]) {
  5750  	bindings.FuncElementRemoveAttributeNS(
  5751  		this.ref, js.Pointer(&fn),
  5752  	)
  5753  	return
  5754  }
  5755  
  5756  // RemoveAttributeNS calls the method "Element.removeAttributeNS".
  5757  func (this Element) RemoveAttributeNS(namespace js.String, localName js.String) (ret js.Void) {
  5758  	bindings.CallElementRemoveAttributeNS(
  5759  		this.ref, js.Pointer(&ret),
  5760  		namespace.Ref(),
  5761  		localName.Ref(),
  5762  	)
  5763  
  5764  	return
  5765  }
  5766  
  5767  // TryRemoveAttributeNS calls the method "Element.removeAttributeNS"
  5768  // in a try/catch block and returns (_, err, ok = false) when it went through
  5769  // the catch clause.
  5770  func (this Element) TryRemoveAttributeNS(namespace js.String, localName js.String) (ret js.Void, exception js.Any, ok bool) {
  5771  	ok = js.True == bindings.TryElementRemoveAttributeNS(
  5772  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  5773  		namespace.Ref(),
  5774  		localName.Ref(),
  5775  	)
  5776  
  5777  	return
  5778  }
  5779  
  5780  // HasFuncToggleAttribute returns true if the method "Element.toggleAttribute" exists.
  5781  func (this Element) HasFuncToggleAttribute() bool {
  5782  	return js.True == bindings.HasFuncElementToggleAttribute(
  5783  		this.ref,
  5784  	)
  5785  }
  5786  
  5787  // FuncToggleAttribute returns the method "Element.toggleAttribute".
  5788  func (this Element) FuncToggleAttribute() (fn js.Func[func(qualifiedName js.String, force bool) bool]) {
  5789  	bindings.FuncElementToggleAttribute(
  5790  		this.ref, js.Pointer(&fn),
  5791  	)
  5792  	return
  5793  }
  5794  
  5795  // ToggleAttribute calls the method "Element.toggleAttribute".
  5796  func (this Element) ToggleAttribute(qualifiedName js.String, force bool) (ret bool) {
  5797  	bindings.CallElementToggleAttribute(
  5798  		this.ref, js.Pointer(&ret),
  5799  		qualifiedName.Ref(),
  5800  		js.Bool(bool(force)),
  5801  	)
  5802  
  5803  	return
  5804  }
  5805  
  5806  // TryToggleAttribute calls the method "Element.toggleAttribute"
  5807  // in a try/catch block and returns (_, err, ok = false) when it went through
  5808  // the catch clause.
  5809  func (this Element) TryToggleAttribute(qualifiedName js.String, force bool) (ret bool, exception js.Any, ok bool) {
  5810  	ok = js.True == bindings.TryElementToggleAttribute(
  5811  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  5812  		qualifiedName.Ref(),
  5813  		js.Bool(bool(force)),
  5814  	)
  5815  
  5816  	return
  5817  }
  5818  
  5819  // HasFuncToggleAttribute1 returns true if the method "Element.toggleAttribute" exists.
  5820  func (this Element) HasFuncToggleAttribute1() bool {
  5821  	return js.True == bindings.HasFuncElementToggleAttribute1(
  5822  		this.ref,
  5823  	)
  5824  }
  5825  
  5826  // FuncToggleAttribute1 returns the method "Element.toggleAttribute".
  5827  func (this Element) FuncToggleAttribute1() (fn js.Func[func(qualifiedName js.String) bool]) {
  5828  	bindings.FuncElementToggleAttribute1(
  5829  		this.ref, js.Pointer(&fn),
  5830  	)
  5831  	return
  5832  }
  5833  
  5834  // ToggleAttribute1 calls the method "Element.toggleAttribute".
  5835  func (this Element) ToggleAttribute1(qualifiedName js.String) (ret bool) {
  5836  	bindings.CallElementToggleAttribute1(
  5837  		this.ref, js.Pointer(&ret),
  5838  		qualifiedName.Ref(),
  5839  	)
  5840  
  5841  	return
  5842  }
  5843  
  5844  // TryToggleAttribute1 calls the method "Element.toggleAttribute"
  5845  // in a try/catch block and returns (_, err, ok = false) when it went through
  5846  // the catch clause.
  5847  func (this Element) TryToggleAttribute1(qualifiedName js.String) (ret bool, exception js.Any, ok bool) {
  5848  	ok = js.True == bindings.TryElementToggleAttribute1(
  5849  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  5850  		qualifiedName.Ref(),
  5851  	)
  5852  
  5853  	return
  5854  }
  5855  
  5856  // HasFuncHasAttribute returns true if the method "Element.hasAttribute" exists.
  5857  func (this Element) HasFuncHasAttribute() bool {
  5858  	return js.True == bindings.HasFuncElementHasAttribute(
  5859  		this.ref,
  5860  	)
  5861  }
  5862  
  5863  // FuncHasAttribute returns the method "Element.hasAttribute".
  5864  func (this Element) FuncHasAttribute() (fn js.Func[func(qualifiedName js.String) bool]) {
  5865  	bindings.FuncElementHasAttribute(
  5866  		this.ref, js.Pointer(&fn),
  5867  	)
  5868  	return
  5869  }
  5870  
  5871  // HasAttribute calls the method "Element.hasAttribute".
  5872  func (this Element) HasAttribute(qualifiedName js.String) (ret bool) {
  5873  	bindings.CallElementHasAttribute(
  5874  		this.ref, js.Pointer(&ret),
  5875  		qualifiedName.Ref(),
  5876  	)
  5877  
  5878  	return
  5879  }
  5880  
  5881  // TryHasAttribute calls the method "Element.hasAttribute"
  5882  // in a try/catch block and returns (_, err, ok = false) when it went through
  5883  // the catch clause.
  5884  func (this Element) TryHasAttribute(qualifiedName js.String) (ret bool, exception js.Any, ok bool) {
  5885  	ok = js.True == bindings.TryElementHasAttribute(
  5886  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  5887  		qualifiedName.Ref(),
  5888  	)
  5889  
  5890  	return
  5891  }
  5892  
  5893  // HasFuncHasAttributeNS returns true if the method "Element.hasAttributeNS" exists.
  5894  func (this Element) HasFuncHasAttributeNS() bool {
  5895  	return js.True == bindings.HasFuncElementHasAttributeNS(
  5896  		this.ref,
  5897  	)
  5898  }
  5899  
  5900  // FuncHasAttributeNS returns the method "Element.hasAttributeNS".
  5901  func (this Element) FuncHasAttributeNS() (fn js.Func[func(namespace js.String, localName js.String) bool]) {
  5902  	bindings.FuncElementHasAttributeNS(
  5903  		this.ref, js.Pointer(&fn),
  5904  	)
  5905  	return
  5906  }
  5907  
  5908  // HasAttributeNS calls the method "Element.hasAttributeNS".
  5909  func (this Element) HasAttributeNS(namespace js.String, localName js.String) (ret bool) {
  5910  	bindings.CallElementHasAttributeNS(
  5911  		this.ref, js.Pointer(&ret),
  5912  		namespace.Ref(),
  5913  		localName.Ref(),
  5914  	)
  5915  
  5916  	return
  5917  }
  5918  
  5919  // TryHasAttributeNS calls the method "Element.hasAttributeNS"
  5920  // in a try/catch block and returns (_, err, ok = false) when it went through
  5921  // the catch clause.
  5922  func (this Element) TryHasAttributeNS(namespace js.String, localName js.String) (ret bool, exception js.Any, ok bool) {
  5923  	ok = js.True == bindings.TryElementHasAttributeNS(
  5924  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  5925  		namespace.Ref(),
  5926  		localName.Ref(),
  5927  	)
  5928  
  5929  	return
  5930  }
  5931  
  5932  // HasFuncGetAttributeNode returns true if the method "Element.getAttributeNode" exists.
  5933  func (this Element) HasFuncGetAttributeNode() bool {
  5934  	return js.True == bindings.HasFuncElementGetAttributeNode(
  5935  		this.ref,
  5936  	)
  5937  }
  5938  
  5939  // FuncGetAttributeNode returns the method "Element.getAttributeNode".
  5940  func (this Element) FuncGetAttributeNode() (fn js.Func[func(qualifiedName js.String) Attr]) {
  5941  	bindings.FuncElementGetAttributeNode(
  5942  		this.ref, js.Pointer(&fn),
  5943  	)
  5944  	return
  5945  }
  5946  
  5947  // GetAttributeNode calls the method "Element.getAttributeNode".
  5948  func (this Element) GetAttributeNode(qualifiedName js.String) (ret Attr) {
  5949  	bindings.CallElementGetAttributeNode(
  5950  		this.ref, js.Pointer(&ret),
  5951  		qualifiedName.Ref(),
  5952  	)
  5953  
  5954  	return
  5955  }
  5956  
  5957  // TryGetAttributeNode calls the method "Element.getAttributeNode"
  5958  // in a try/catch block and returns (_, err, ok = false) when it went through
  5959  // the catch clause.
  5960  func (this Element) TryGetAttributeNode(qualifiedName js.String) (ret Attr, exception js.Any, ok bool) {
  5961  	ok = js.True == bindings.TryElementGetAttributeNode(
  5962  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  5963  		qualifiedName.Ref(),
  5964  	)
  5965  
  5966  	return
  5967  }
  5968  
  5969  // HasFuncGetAttributeNodeNS returns true if the method "Element.getAttributeNodeNS" exists.
  5970  func (this Element) HasFuncGetAttributeNodeNS() bool {
  5971  	return js.True == bindings.HasFuncElementGetAttributeNodeNS(
  5972  		this.ref,
  5973  	)
  5974  }
  5975  
  5976  // FuncGetAttributeNodeNS returns the method "Element.getAttributeNodeNS".
  5977  func (this Element) FuncGetAttributeNodeNS() (fn js.Func[func(namespace js.String, localName js.String) Attr]) {
  5978  	bindings.FuncElementGetAttributeNodeNS(
  5979  		this.ref, js.Pointer(&fn),
  5980  	)
  5981  	return
  5982  }
  5983  
  5984  // GetAttributeNodeNS calls the method "Element.getAttributeNodeNS".
  5985  func (this Element) GetAttributeNodeNS(namespace js.String, localName js.String) (ret Attr) {
  5986  	bindings.CallElementGetAttributeNodeNS(
  5987  		this.ref, js.Pointer(&ret),
  5988  		namespace.Ref(),
  5989  		localName.Ref(),
  5990  	)
  5991  
  5992  	return
  5993  }
  5994  
  5995  // TryGetAttributeNodeNS calls the method "Element.getAttributeNodeNS"
  5996  // in a try/catch block and returns (_, err, ok = false) when it went through
  5997  // the catch clause.
  5998  func (this Element) TryGetAttributeNodeNS(namespace js.String, localName js.String) (ret Attr, exception js.Any, ok bool) {
  5999  	ok = js.True == bindings.TryElementGetAttributeNodeNS(
  6000  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  6001  		namespace.Ref(),
  6002  		localName.Ref(),
  6003  	)
  6004  
  6005  	return
  6006  }
  6007  
  6008  // HasFuncSetAttributeNode returns true if the method "Element.setAttributeNode" exists.
  6009  func (this Element) HasFuncSetAttributeNode() bool {
  6010  	return js.True == bindings.HasFuncElementSetAttributeNode(
  6011  		this.ref,
  6012  	)
  6013  }
  6014  
  6015  // FuncSetAttributeNode returns the method "Element.setAttributeNode".
  6016  func (this Element) FuncSetAttributeNode() (fn js.Func[func(attr Attr) Attr]) {
  6017  	bindings.FuncElementSetAttributeNode(
  6018  		this.ref, js.Pointer(&fn),
  6019  	)
  6020  	return
  6021  }
  6022  
  6023  // SetAttributeNode calls the method "Element.setAttributeNode".
  6024  func (this Element) SetAttributeNode(attr Attr) (ret Attr) {
  6025  	bindings.CallElementSetAttributeNode(
  6026  		this.ref, js.Pointer(&ret),
  6027  		attr.Ref(),
  6028  	)
  6029  
  6030  	return
  6031  }
  6032  
  6033  // TrySetAttributeNode calls the method "Element.setAttributeNode"
  6034  // in a try/catch block and returns (_, err, ok = false) when it went through
  6035  // the catch clause.
  6036  func (this Element) TrySetAttributeNode(attr Attr) (ret Attr, exception js.Any, ok bool) {
  6037  	ok = js.True == bindings.TryElementSetAttributeNode(
  6038  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  6039  		attr.Ref(),
  6040  	)
  6041  
  6042  	return
  6043  }
  6044  
  6045  // HasFuncSetAttributeNodeNS returns true if the method "Element.setAttributeNodeNS" exists.
  6046  func (this Element) HasFuncSetAttributeNodeNS() bool {
  6047  	return js.True == bindings.HasFuncElementSetAttributeNodeNS(
  6048  		this.ref,
  6049  	)
  6050  }
  6051  
  6052  // FuncSetAttributeNodeNS returns the method "Element.setAttributeNodeNS".
  6053  func (this Element) FuncSetAttributeNodeNS() (fn js.Func[func(attr Attr) Attr]) {
  6054  	bindings.FuncElementSetAttributeNodeNS(
  6055  		this.ref, js.Pointer(&fn),
  6056  	)
  6057  	return
  6058  }
  6059  
  6060  // SetAttributeNodeNS calls the method "Element.setAttributeNodeNS".
  6061  func (this Element) SetAttributeNodeNS(attr Attr) (ret Attr) {
  6062  	bindings.CallElementSetAttributeNodeNS(
  6063  		this.ref, js.Pointer(&ret),
  6064  		attr.Ref(),
  6065  	)
  6066  
  6067  	return
  6068  }
  6069  
  6070  // TrySetAttributeNodeNS calls the method "Element.setAttributeNodeNS"
  6071  // in a try/catch block and returns (_, err, ok = false) when it went through
  6072  // the catch clause.
  6073  func (this Element) TrySetAttributeNodeNS(attr Attr) (ret Attr, exception js.Any, ok bool) {
  6074  	ok = js.True == bindings.TryElementSetAttributeNodeNS(
  6075  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  6076  		attr.Ref(),
  6077  	)
  6078  
  6079  	return
  6080  }
  6081  
  6082  // HasFuncRemoveAttributeNode returns true if the method "Element.removeAttributeNode" exists.
  6083  func (this Element) HasFuncRemoveAttributeNode() bool {
  6084  	return js.True == bindings.HasFuncElementRemoveAttributeNode(
  6085  		this.ref,
  6086  	)
  6087  }
  6088  
  6089  // FuncRemoveAttributeNode returns the method "Element.removeAttributeNode".
  6090  func (this Element) FuncRemoveAttributeNode() (fn js.Func[func(attr Attr) Attr]) {
  6091  	bindings.FuncElementRemoveAttributeNode(
  6092  		this.ref, js.Pointer(&fn),
  6093  	)
  6094  	return
  6095  }
  6096  
  6097  // RemoveAttributeNode calls the method "Element.removeAttributeNode".
  6098  func (this Element) RemoveAttributeNode(attr Attr) (ret Attr) {
  6099  	bindings.CallElementRemoveAttributeNode(
  6100  		this.ref, js.Pointer(&ret),
  6101  		attr.Ref(),
  6102  	)
  6103  
  6104  	return
  6105  }
  6106  
  6107  // TryRemoveAttributeNode calls the method "Element.removeAttributeNode"
  6108  // in a try/catch block and returns (_, err, ok = false) when it went through
  6109  // the catch clause.
  6110  func (this Element) TryRemoveAttributeNode(attr Attr) (ret Attr, exception js.Any, ok bool) {
  6111  	ok = js.True == bindings.TryElementRemoveAttributeNode(
  6112  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  6113  		attr.Ref(),
  6114  	)
  6115  
  6116  	return
  6117  }
  6118  
  6119  // HasFuncAttachShadow returns true if the method "Element.attachShadow" exists.
  6120  func (this Element) HasFuncAttachShadow() bool {
  6121  	return js.True == bindings.HasFuncElementAttachShadow(
  6122  		this.ref,
  6123  	)
  6124  }
  6125  
  6126  // FuncAttachShadow returns the method "Element.attachShadow".
  6127  func (this Element) FuncAttachShadow() (fn js.Func[func(init ShadowRootInit) ShadowRoot]) {
  6128  	bindings.FuncElementAttachShadow(
  6129  		this.ref, js.Pointer(&fn),
  6130  	)
  6131  	return
  6132  }
  6133  
  6134  // AttachShadow calls the method "Element.attachShadow".
  6135  func (this Element) AttachShadow(init ShadowRootInit) (ret ShadowRoot) {
  6136  	bindings.CallElementAttachShadow(
  6137  		this.ref, js.Pointer(&ret),
  6138  		js.Pointer(&init),
  6139  	)
  6140  
  6141  	return
  6142  }
  6143  
  6144  // TryAttachShadow calls the method "Element.attachShadow"
  6145  // in a try/catch block and returns (_, err, ok = false) when it went through
  6146  // the catch clause.
  6147  func (this Element) TryAttachShadow(init ShadowRootInit) (ret ShadowRoot, exception js.Any, ok bool) {
  6148  	ok = js.True == bindings.TryElementAttachShadow(
  6149  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  6150  		js.Pointer(&init),
  6151  	)
  6152  
  6153  	return
  6154  }
  6155  
  6156  // HasFuncClosest returns true if the method "Element.closest" exists.
  6157  func (this Element) HasFuncClosest() bool {
  6158  	return js.True == bindings.HasFuncElementClosest(
  6159  		this.ref,
  6160  	)
  6161  }
  6162  
  6163  // FuncClosest returns the method "Element.closest".
  6164  func (this Element) FuncClosest() (fn js.Func[func(selectors js.String) Element]) {
  6165  	bindings.FuncElementClosest(
  6166  		this.ref, js.Pointer(&fn),
  6167  	)
  6168  	return
  6169  }
  6170  
  6171  // Closest calls the method "Element.closest".
  6172  func (this Element) Closest(selectors js.String) (ret Element) {
  6173  	bindings.CallElementClosest(
  6174  		this.ref, js.Pointer(&ret),
  6175  		selectors.Ref(),
  6176  	)
  6177  
  6178  	return
  6179  }
  6180  
  6181  // TryClosest calls the method "Element.closest"
  6182  // in a try/catch block and returns (_, err, ok = false) when it went through
  6183  // the catch clause.
  6184  func (this Element) TryClosest(selectors js.String) (ret Element, exception js.Any, ok bool) {
  6185  	ok = js.True == bindings.TryElementClosest(
  6186  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  6187  		selectors.Ref(),
  6188  	)
  6189  
  6190  	return
  6191  }
  6192  
  6193  // HasFuncMatches returns true if the method "Element.matches" exists.
  6194  func (this Element) HasFuncMatches() bool {
  6195  	return js.True == bindings.HasFuncElementMatches(
  6196  		this.ref,
  6197  	)
  6198  }
  6199  
  6200  // FuncMatches returns the method "Element.matches".
  6201  func (this Element) FuncMatches() (fn js.Func[func(selectors js.String) bool]) {
  6202  	bindings.FuncElementMatches(
  6203  		this.ref, js.Pointer(&fn),
  6204  	)
  6205  	return
  6206  }
  6207  
  6208  // Matches calls the method "Element.matches".
  6209  func (this Element) Matches(selectors js.String) (ret bool) {
  6210  	bindings.CallElementMatches(
  6211  		this.ref, js.Pointer(&ret),
  6212  		selectors.Ref(),
  6213  	)
  6214  
  6215  	return
  6216  }
  6217  
  6218  // TryMatches calls the method "Element.matches"
  6219  // in a try/catch block and returns (_, err, ok = false) when it went through
  6220  // the catch clause.
  6221  func (this Element) TryMatches(selectors js.String) (ret bool, exception js.Any, ok bool) {
  6222  	ok = js.True == bindings.TryElementMatches(
  6223  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  6224  		selectors.Ref(),
  6225  	)
  6226  
  6227  	return
  6228  }
  6229  
  6230  // HasFuncWebkitMatchesSelector returns true if the method "Element.webkitMatchesSelector" exists.
  6231  func (this Element) HasFuncWebkitMatchesSelector() bool {
  6232  	return js.True == bindings.HasFuncElementWebkitMatchesSelector(
  6233  		this.ref,
  6234  	)
  6235  }
  6236  
  6237  // FuncWebkitMatchesSelector returns the method "Element.webkitMatchesSelector".
  6238  func (this Element) FuncWebkitMatchesSelector() (fn js.Func[func(selectors js.String) bool]) {
  6239  	bindings.FuncElementWebkitMatchesSelector(
  6240  		this.ref, js.Pointer(&fn),
  6241  	)
  6242  	return
  6243  }
  6244  
  6245  // WebkitMatchesSelector calls the method "Element.webkitMatchesSelector".
  6246  func (this Element) WebkitMatchesSelector(selectors js.String) (ret bool) {
  6247  	bindings.CallElementWebkitMatchesSelector(
  6248  		this.ref, js.Pointer(&ret),
  6249  		selectors.Ref(),
  6250  	)
  6251  
  6252  	return
  6253  }
  6254  
  6255  // TryWebkitMatchesSelector calls the method "Element.webkitMatchesSelector"
  6256  // in a try/catch block and returns (_, err, ok = false) when it went through
  6257  // the catch clause.
  6258  func (this Element) TryWebkitMatchesSelector(selectors js.String) (ret bool, exception js.Any, ok bool) {
  6259  	ok = js.True == bindings.TryElementWebkitMatchesSelector(
  6260  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  6261  		selectors.Ref(),
  6262  	)
  6263  
  6264  	return
  6265  }
  6266  
  6267  // HasFuncGetElementsByTagName returns true if the method "Element.getElementsByTagName" exists.
  6268  func (this Element) HasFuncGetElementsByTagName() bool {
  6269  	return js.True == bindings.HasFuncElementGetElementsByTagName(
  6270  		this.ref,
  6271  	)
  6272  }
  6273  
  6274  // FuncGetElementsByTagName returns the method "Element.getElementsByTagName".
  6275  func (this Element) FuncGetElementsByTagName() (fn js.Func[func(qualifiedName js.String) HTMLCollection]) {
  6276  	bindings.FuncElementGetElementsByTagName(
  6277  		this.ref, js.Pointer(&fn),
  6278  	)
  6279  	return
  6280  }
  6281  
  6282  // GetElementsByTagName calls the method "Element.getElementsByTagName".
  6283  func (this Element) GetElementsByTagName(qualifiedName js.String) (ret HTMLCollection) {
  6284  	bindings.CallElementGetElementsByTagName(
  6285  		this.ref, js.Pointer(&ret),
  6286  		qualifiedName.Ref(),
  6287  	)
  6288  
  6289  	return
  6290  }
  6291  
  6292  // TryGetElementsByTagName calls the method "Element.getElementsByTagName"
  6293  // in a try/catch block and returns (_, err, ok = false) when it went through
  6294  // the catch clause.
  6295  func (this Element) TryGetElementsByTagName(qualifiedName js.String) (ret HTMLCollection, exception js.Any, ok bool) {
  6296  	ok = js.True == bindings.TryElementGetElementsByTagName(
  6297  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  6298  		qualifiedName.Ref(),
  6299  	)
  6300  
  6301  	return
  6302  }
  6303  
  6304  // HasFuncGetElementsByTagNameNS returns true if the method "Element.getElementsByTagNameNS" exists.
  6305  func (this Element) HasFuncGetElementsByTagNameNS() bool {
  6306  	return js.True == bindings.HasFuncElementGetElementsByTagNameNS(
  6307  		this.ref,
  6308  	)
  6309  }
  6310  
  6311  // FuncGetElementsByTagNameNS returns the method "Element.getElementsByTagNameNS".
  6312  func (this Element) FuncGetElementsByTagNameNS() (fn js.Func[func(namespace js.String, localName js.String) HTMLCollection]) {
  6313  	bindings.FuncElementGetElementsByTagNameNS(
  6314  		this.ref, js.Pointer(&fn),
  6315  	)
  6316  	return
  6317  }
  6318  
  6319  // GetElementsByTagNameNS calls the method "Element.getElementsByTagNameNS".
  6320  func (this Element) GetElementsByTagNameNS(namespace js.String, localName js.String) (ret HTMLCollection) {
  6321  	bindings.CallElementGetElementsByTagNameNS(
  6322  		this.ref, js.Pointer(&ret),
  6323  		namespace.Ref(),
  6324  		localName.Ref(),
  6325  	)
  6326  
  6327  	return
  6328  }
  6329  
  6330  // TryGetElementsByTagNameNS calls the method "Element.getElementsByTagNameNS"
  6331  // in a try/catch block and returns (_, err, ok = false) when it went through
  6332  // the catch clause.
  6333  func (this Element) TryGetElementsByTagNameNS(namespace js.String, localName js.String) (ret HTMLCollection, exception js.Any, ok bool) {
  6334  	ok = js.True == bindings.TryElementGetElementsByTagNameNS(
  6335  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  6336  		namespace.Ref(),
  6337  		localName.Ref(),
  6338  	)
  6339  
  6340  	return
  6341  }
  6342  
  6343  // HasFuncGetElementsByClassName returns true if the method "Element.getElementsByClassName" exists.
  6344  func (this Element) HasFuncGetElementsByClassName() bool {
  6345  	return js.True == bindings.HasFuncElementGetElementsByClassName(
  6346  		this.ref,
  6347  	)
  6348  }
  6349  
  6350  // FuncGetElementsByClassName returns the method "Element.getElementsByClassName".
  6351  func (this Element) FuncGetElementsByClassName() (fn js.Func[func(classNames js.String) HTMLCollection]) {
  6352  	bindings.FuncElementGetElementsByClassName(
  6353  		this.ref, js.Pointer(&fn),
  6354  	)
  6355  	return
  6356  }
  6357  
  6358  // GetElementsByClassName calls the method "Element.getElementsByClassName".
  6359  func (this Element) GetElementsByClassName(classNames js.String) (ret HTMLCollection) {
  6360  	bindings.CallElementGetElementsByClassName(
  6361  		this.ref, js.Pointer(&ret),
  6362  		classNames.Ref(),
  6363  	)
  6364  
  6365  	return
  6366  }
  6367  
  6368  // TryGetElementsByClassName calls the method "Element.getElementsByClassName"
  6369  // in a try/catch block and returns (_, err, ok = false) when it went through
  6370  // the catch clause.
  6371  func (this Element) TryGetElementsByClassName(classNames js.String) (ret HTMLCollection, exception js.Any, ok bool) {
  6372  	ok = js.True == bindings.TryElementGetElementsByClassName(
  6373  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  6374  		classNames.Ref(),
  6375  	)
  6376  
  6377  	return
  6378  }
  6379  
  6380  // HasFuncInsertAdjacentElement returns true if the method "Element.insertAdjacentElement" exists.
  6381  func (this Element) HasFuncInsertAdjacentElement() bool {
  6382  	return js.True == bindings.HasFuncElementInsertAdjacentElement(
  6383  		this.ref,
  6384  	)
  6385  }
  6386  
  6387  // FuncInsertAdjacentElement returns the method "Element.insertAdjacentElement".
  6388  func (this Element) FuncInsertAdjacentElement() (fn js.Func[func(where js.String, element Element) Element]) {
  6389  	bindings.FuncElementInsertAdjacentElement(
  6390  		this.ref, js.Pointer(&fn),
  6391  	)
  6392  	return
  6393  }
  6394  
  6395  // InsertAdjacentElement calls the method "Element.insertAdjacentElement".
  6396  func (this Element) InsertAdjacentElement(where js.String, element Element) (ret Element) {
  6397  	bindings.CallElementInsertAdjacentElement(
  6398  		this.ref, js.Pointer(&ret),
  6399  		where.Ref(),
  6400  		element.Ref(),
  6401  	)
  6402  
  6403  	return
  6404  }
  6405  
  6406  // TryInsertAdjacentElement calls the method "Element.insertAdjacentElement"
  6407  // in a try/catch block and returns (_, err, ok = false) when it went through
  6408  // the catch clause.
  6409  func (this Element) TryInsertAdjacentElement(where js.String, element Element) (ret Element, exception js.Any, ok bool) {
  6410  	ok = js.True == bindings.TryElementInsertAdjacentElement(
  6411  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  6412  		where.Ref(),
  6413  		element.Ref(),
  6414  	)
  6415  
  6416  	return
  6417  }
  6418  
  6419  // HasFuncInsertAdjacentText returns true if the method "Element.insertAdjacentText" exists.
  6420  func (this Element) HasFuncInsertAdjacentText() bool {
  6421  	return js.True == bindings.HasFuncElementInsertAdjacentText(
  6422  		this.ref,
  6423  	)
  6424  }
  6425  
  6426  // FuncInsertAdjacentText returns the method "Element.insertAdjacentText".
  6427  func (this Element) FuncInsertAdjacentText() (fn js.Func[func(where js.String, data js.String)]) {
  6428  	bindings.FuncElementInsertAdjacentText(
  6429  		this.ref, js.Pointer(&fn),
  6430  	)
  6431  	return
  6432  }
  6433  
  6434  // InsertAdjacentText calls the method "Element.insertAdjacentText".
  6435  func (this Element) InsertAdjacentText(where js.String, data js.String) (ret js.Void) {
  6436  	bindings.CallElementInsertAdjacentText(
  6437  		this.ref, js.Pointer(&ret),
  6438  		where.Ref(),
  6439  		data.Ref(),
  6440  	)
  6441  
  6442  	return
  6443  }
  6444  
  6445  // TryInsertAdjacentText calls the method "Element.insertAdjacentText"
  6446  // in a try/catch block and returns (_, err, ok = false) when it went through
  6447  // the catch clause.
  6448  func (this Element) TryInsertAdjacentText(where js.String, data js.String) (ret js.Void, exception js.Any, ok bool) {
  6449  	ok = js.True == bindings.TryElementInsertAdjacentText(
  6450  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  6451  		where.Ref(),
  6452  		data.Ref(),
  6453  	)
  6454  
  6455  	return
  6456  }
  6457  
  6458  // HasFuncRequestFullscreen returns true if the method "Element.requestFullscreen" exists.
  6459  func (this Element) HasFuncRequestFullscreen() bool {
  6460  	return js.True == bindings.HasFuncElementRequestFullscreen(
  6461  		this.ref,
  6462  	)
  6463  }
  6464  
  6465  // FuncRequestFullscreen returns the method "Element.requestFullscreen".
  6466  func (this Element) FuncRequestFullscreen() (fn js.Func[func(options FullscreenOptions) js.Promise[js.Void]]) {
  6467  	bindings.FuncElementRequestFullscreen(
  6468  		this.ref, js.Pointer(&fn),
  6469  	)
  6470  	return
  6471  }
  6472  
  6473  // RequestFullscreen calls the method "Element.requestFullscreen".
  6474  func (this Element) RequestFullscreen(options FullscreenOptions) (ret js.Promise[js.Void]) {
  6475  	bindings.CallElementRequestFullscreen(
  6476  		this.ref, js.Pointer(&ret),
  6477  		js.Pointer(&options),
  6478  	)
  6479  
  6480  	return
  6481  }
  6482  
  6483  // TryRequestFullscreen calls the method "Element.requestFullscreen"
  6484  // in a try/catch block and returns (_, err, ok = false) when it went through
  6485  // the catch clause.
  6486  func (this Element) TryRequestFullscreen(options FullscreenOptions) (ret js.Promise[js.Void], exception js.Any, ok bool) {
  6487  	ok = js.True == bindings.TryElementRequestFullscreen(
  6488  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  6489  		js.Pointer(&options),
  6490  	)
  6491  
  6492  	return
  6493  }
  6494  
  6495  // HasFuncRequestFullscreen1 returns true if the method "Element.requestFullscreen" exists.
  6496  func (this Element) HasFuncRequestFullscreen1() bool {
  6497  	return js.True == bindings.HasFuncElementRequestFullscreen1(
  6498  		this.ref,
  6499  	)
  6500  }
  6501  
  6502  // FuncRequestFullscreen1 returns the method "Element.requestFullscreen".
  6503  func (this Element) FuncRequestFullscreen1() (fn js.Func[func() js.Promise[js.Void]]) {
  6504  	bindings.FuncElementRequestFullscreen1(
  6505  		this.ref, js.Pointer(&fn),
  6506  	)
  6507  	return
  6508  }
  6509  
  6510  // RequestFullscreen1 calls the method "Element.requestFullscreen".
  6511  func (this Element) RequestFullscreen1() (ret js.Promise[js.Void]) {
  6512  	bindings.CallElementRequestFullscreen1(
  6513  		this.ref, js.Pointer(&ret),
  6514  	)
  6515  
  6516  	return
  6517  }
  6518  
  6519  // TryRequestFullscreen1 calls the method "Element.requestFullscreen"
  6520  // in a try/catch block and returns (_, err, ok = false) when it went through
  6521  // the catch clause.
  6522  func (this Element) TryRequestFullscreen1() (ret js.Promise[js.Void], exception js.Any, ok bool) {
  6523  	ok = js.True == bindings.TryElementRequestFullscreen1(
  6524  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  6525  	)
  6526  
  6527  	return
  6528  }
  6529  
  6530  // HasFuncRequestPointerLock returns true if the method "Element.requestPointerLock" exists.
  6531  func (this Element) HasFuncRequestPointerLock() bool {
  6532  	return js.True == bindings.HasFuncElementRequestPointerLock(
  6533  		this.ref,
  6534  	)
  6535  }
  6536  
  6537  // FuncRequestPointerLock returns the method "Element.requestPointerLock".
  6538  func (this Element) FuncRequestPointerLock() (fn js.Func[func()]) {
  6539  	bindings.FuncElementRequestPointerLock(
  6540  		this.ref, js.Pointer(&fn),
  6541  	)
  6542  	return
  6543  }
  6544  
  6545  // RequestPointerLock calls the method "Element.requestPointerLock".
  6546  func (this Element) RequestPointerLock() (ret js.Void) {
  6547  	bindings.CallElementRequestPointerLock(
  6548  		this.ref, js.Pointer(&ret),
  6549  	)
  6550  
  6551  	return
  6552  }
  6553  
  6554  // TryRequestPointerLock calls the method "Element.requestPointerLock"
  6555  // in a try/catch block and returns (_, err, ok = false) when it went through
  6556  // the catch clause.
  6557  func (this Element) TryRequestPointerLock() (ret js.Void, exception js.Any, ok bool) {
  6558  	ok = js.True == bindings.TryElementRequestPointerLock(
  6559  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  6560  	)
  6561  
  6562  	return
  6563  }
  6564  
  6565  // HasFuncComputedStyleMap returns true if the method "Element.computedStyleMap" exists.
  6566  func (this Element) HasFuncComputedStyleMap() bool {
  6567  	return js.True == bindings.HasFuncElementComputedStyleMap(
  6568  		this.ref,
  6569  	)
  6570  }
  6571  
  6572  // FuncComputedStyleMap returns the method "Element.computedStyleMap".
  6573  func (this Element) FuncComputedStyleMap() (fn js.Func[func() StylePropertyMapReadOnly]) {
  6574  	bindings.FuncElementComputedStyleMap(
  6575  		this.ref, js.Pointer(&fn),
  6576  	)
  6577  	return
  6578  }
  6579  
  6580  // ComputedStyleMap calls the method "Element.computedStyleMap".
  6581  func (this Element) ComputedStyleMap() (ret StylePropertyMapReadOnly) {
  6582  	bindings.CallElementComputedStyleMap(
  6583  		this.ref, js.Pointer(&ret),
  6584  	)
  6585  
  6586  	return
  6587  }
  6588  
  6589  // TryComputedStyleMap calls the method "Element.computedStyleMap"
  6590  // in a try/catch block and returns (_, err, ok = false) when it went through
  6591  // the catch clause.
  6592  func (this Element) TryComputedStyleMap() (ret StylePropertyMapReadOnly, exception js.Any, ok bool) {
  6593  	ok = js.True == bindings.TryElementComputedStyleMap(
  6594  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  6595  	)
  6596  
  6597  	return
  6598  }
  6599  
  6600  // HasFuncGetSpatialNavigationContainer returns true if the method "Element.getSpatialNavigationContainer" exists.
  6601  func (this Element) HasFuncGetSpatialNavigationContainer() bool {
  6602  	return js.True == bindings.HasFuncElementGetSpatialNavigationContainer(
  6603  		this.ref,
  6604  	)
  6605  }
  6606  
  6607  // FuncGetSpatialNavigationContainer returns the method "Element.getSpatialNavigationContainer".
  6608  func (this Element) FuncGetSpatialNavigationContainer() (fn js.Func[func() Node]) {
  6609  	bindings.FuncElementGetSpatialNavigationContainer(
  6610  		this.ref, js.Pointer(&fn),
  6611  	)
  6612  	return
  6613  }
  6614  
  6615  // GetSpatialNavigationContainer calls the method "Element.getSpatialNavigationContainer".
  6616  func (this Element) GetSpatialNavigationContainer() (ret Node) {
  6617  	bindings.CallElementGetSpatialNavigationContainer(
  6618  		this.ref, js.Pointer(&ret),
  6619  	)
  6620  
  6621  	return
  6622  }
  6623  
  6624  // TryGetSpatialNavigationContainer calls the method "Element.getSpatialNavigationContainer"
  6625  // in a try/catch block and returns (_, err, ok = false) when it went through
  6626  // the catch clause.
  6627  func (this Element) TryGetSpatialNavigationContainer() (ret Node, exception js.Any, ok bool) {
  6628  	ok = js.True == bindings.TryElementGetSpatialNavigationContainer(
  6629  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  6630  	)
  6631  
  6632  	return
  6633  }
  6634  
  6635  // HasFuncFocusableAreas returns true if the method "Element.focusableAreas" exists.
  6636  func (this Element) HasFuncFocusableAreas() bool {
  6637  	return js.True == bindings.HasFuncElementFocusableAreas(
  6638  		this.ref,
  6639  	)
  6640  }
  6641  
  6642  // FuncFocusableAreas returns the method "Element.focusableAreas".
  6643  func (this Element) FuncFocusableAreas() (fn js.Func[func(option FocusableAreasOption) js.Array[Node]]) {
  6644  	bindings.FuncElementFocusableAreas(
  6645  		this.ref, js.Pointer(&fn),
  6646  	)
  6647  	return
  6648  }
  6649  
  6650  // FocusableAreas calls the method "Element.focusableAreas".
  6651  func (this Element) FocusableAreas(option FocusableAreasOption) (ret js.Array[Node]) {
  6652  	bindings.CallElementFocusableAreas(
  6653  		this.ref, js.Pointer(&ret),
  6654  		js.Pointer(&option),
  6655  	)
  6656  
  6657  	return
  6658  }
  6659  
  6660  // TryFocusableAreas calls the method "Element.focusableAreas"
  6661  // in a try/catch block and returns (_, err, ok = false) when it went through
  6662  // the catch clause.
  6663  func (this Element) TryFocusableAreas(option FocusableAreasOption) (ret js.Array[Node], exception js.Any, ok bool) {
  6664  	ok = js.True == bindings.TryElementFocusableAreas(
  6665  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  6666  		js.Pointer(&option),
  6667  	)
  6668  
  6669  	return
  6670  }
  6671  
  6672  // HasFuncFocusableAreas1 returns true if the method "Element.focusableAreas" exists.
  6673  func (this Element) HasFuncFocusableAreas1() bool {
  6674  	return js.True == bindings.HasFuncElementFocusableAreas1(
  6675  		this.ref,
  6676  	)
  6677  }
  6678  
  6679  // FuncFocusableAreas1 returns the method "Element.focusableAreas".
  6680  func (this Element) FuncFocusableAreas1() (fn js.Func[func() js.Array[Node]]) {
  6681  	bindings.FuncElementFocusableAreas1(
  6682  		this.ref, js.Pointer(&fn),
  6683  	)
  6684  	return
  6685  }
  6686  
  6687  // FocusableAreas1 calls the method "Element.focusableAreas".
  6688  func (this Element) FocusableAreas1() (ret js.Array[Node]) {
  6689  	bindings.CallElementFocusableAreas1(
  6690  		this.ref, js.Pointer(&ret),
  6691  	)
  6692  
  6693  	return
  6694  }
  6695  
  6696  // TryFocusableAreas1 calls the method "Element.focusableAreas"
  6697  // in a try/catch block and returns (_, err, ok = false) when it went through
  6698  // the catch clause.
  6699  func (this Element) TryFocusableAreas1() (ret js.Array[Node], exception js.Any, ok bool) {
  6700  	ok = js.True == bindings.TryElementFocusableAreas1(
  6701  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  6702  	)
  6703  
  6704  	return
  6705  }
  6706  
  6707  // HasFuncSpatialNavigationSearch returns true if the method "Element.spatialNavigationSearch" exists.
  6708  func (this Element) HasFuncSpatialNavigationSearch() bool {
  6709  	return js.True == bindings.HasFuncElementSpatialNavigationSearch(
  6710  		this.ref,
  6711  	)
  6712  }
  6713  
  6714  // FuncSpatialNavigationSearch returns the method "Element.spatialNavigationSearch".
  6715  func (this Element) FuncSpatialNavigationSearch() (fn js.Func[func(dir SpatialNavigationDirection, options SpatialNavigationSearchOptions) Node]) {
  6716  	bindings.FuncElementSpatialNavigationSearch(
  6717  		this.ref, js.Pointer(&fn),
  6718  	)
  6719  	return
  6720  }
  6721  
  6722  // SpatialNavigationSearch calls the method "Element.spatialNavigationSearch".
  6723  func (this Element) SpatialNavigationSearch(dir SpatialNavigationDirection, options SpatialNavigationSearchOptions) (ret Node) {
  6724  	bindings.CallElementSpatialNavigationSearch(
  6725  		this.ref, js.Pointer(&ret),
  6726  		uint32(dir),
  6727  		js.Pointer(&options),
  6728  	)
  6729  
  6730  	return
  6731  }
  6732  
  6733  // TrySpatialNavigationSearch calls the method "Element.spatialNavigationSearch"
  6734  // in a try/catch block and returns (_, err, ok = false) when it went through
  6735  // the catch clause.
  6736  func (this Element) TrySpatialNavigationSearch(dir SpatialNavigationDirection, options SpatialNavigationSearchOptions) (ret Node, exception js.Any, ok bool) {
  6737  	ok = js.True == bindings.TryElementSpatialNavigationSearch(
  6738  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  6739  		uint32(dir),
  6740  		js.Pointer(&options),
  6741  	)
  6742  
  6743  	return
  6744  }
  6745  
  6746  // HasFuncSpatialNavigationSearch1 returns true if the method "Element.spatialNavigationSearch" exists.
  6747  func (this Element) HasFuncSpatialNavigationSearch1() bool {
  6748  	return js.True == bindings.HasFuncElementSpatialNavigationSearch1(
  6749  		this.ref,
  6750  	)
  6751  }
  6752  
  6753  // FuncSpatialNavigationSearch1 returns the method "Element.spatialNavigationSearch".
  6754  func (this Element) FuncSpatialNavigationSearch1() (fn js.Func[func(dir SpatialNavigationDirection) Node]) {
  6755  	bindings.FuncElementSpatialNavigationSearch1(
  6756  		this.ref, js.Pointer(&fn),
  6757  	)
  6758  	return
  6759  }
  6760  
  6761  // SpatialNavigationSearch1 calls the method "Element.spatialNavigationSearch".
  6762  func (this Element) SpatialNavigationSearch1(dir SpatialNavigationDirection) (ret Node) {
  6763  	bindings.CallElementSpatialNavigationSearch1(
  6764  		this.ref, js.Pointer(&ret),
  6765  		uint32(dir),
  6766  	)
  6767  
  6768  	return
  6769  }
  6770  
  6771  // TrySpatialNavigationSearch1 calls the method "Element.spatialNavigationSearch"
  6772  // in a try/catch block and returns (_, err, ok = false) when it went through
  6773  // the catch clause.
  6774  func (this Element) TrySpatialNavigationSearch1(dir SpatialNavigationDirection) (ret Node, exception js.Any, ok bool) {
  6775  	ok = js.True == bindings.TryElementSpatialNavigationSearch1(
  6776  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  6777  		uint32(dir),
  6778  	)
  6779  
  6780  	return
  6781  }
  6782  
  6783  // HasFuncSetPointerCapture returns true if the method "Element.setPointerCapture" exists.
  6784  func (this Element) HasFuncSetPointerCapture() bool {
  6785  	return js.True == bindings.HasFuncElementSetPointerCapture(
  6786  		this.ref,
  6787  	)
  6788  }
  6789  
  6790  // FuncSetPointerCapture returns the method "Element.setPointerCapture".
  6791  func (this Element) FuncSetPointerCapture() (fn js.Func[func(pointerId int32)]) {
  6792  	bindings.FuncElementSetPointerCapture(
  6793  		this.ref, js.Pointer(&fn),
  6794  	)
  6795  	return
  6796  }
  6797  
  6798  // SetPointerCapture calls the method "Element.setPointerCapture".
  6799  func (this Element) SetPointerCapture(pointerId int32) (ret js.Void) {
  6800  	bindings.CallElementSetPointerCapture(
  6801  		this.ref, js.Pointer(&ret),
  6802  		int32(pointerId),
  6803  	)
  6804  
  6805  	return
  6806  }
  6807  
  6808  // TrySetPointerCapture calls the method "Element.setPointerCapture"
  6809  // in a try/catch block and returns (_, err, ok = false) when it went through
  6810  // the catch clause.
  6811  func (this Element) TrySetPointerCapture(pointerId int32) (ret js.Void, exception js.Any, ok bool) {
  6812  	ok = js.True == bindings.TryElementSetPointerCapture(
  6813  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  6814  		int32(pointerId),
  6815  	)
  6816  
  6817  	return
  6818  }
  6819  
  6820  // HasFuncReleasePointerCapture returns true if the method "Element.releasePointerCapture" exists.
  6821  func (this Element) HasFuncReleasePointerCapture() bool {
  6822  	return js.True == bindings.HasFuncElementReleasePointerCapture(
  6823  		this.ref,
  6824  	)
  6825  }
  6826  
  6827  // FuncReleasePointerCapture returns the method "Element.releasePointerCapture".
  6828  func (this Element) FuncReleasePointerCapture() (fn js.Func[func(pointerId int32)]) {
  6829  	bindings.FuncElementReleasePointerCapture(
  6830  		this.ref, js.Pointer(&fn),
  6831  	)
  6832  	return
  6833  }
  6834  
  6835  // ReleasePointerCapture calls the method "Element.releasePointerCapture".
  6836  func (this Element) ReleasePointerCapture(pointerId int32) (ret js.Void) {
  6837  	bindings.CallElementReleasePointerCapture(
  6838  		this.ref, js.Pointer(&ret),
  6839  		int32(pointerId),
  6840  	)
  6841  
  6842  	return
  6843  }
  6844  
  6845  // TryReleasePointerCapture calls the method "Element.releasePointerCapture"
  6846  // in a try/catch block and returns (_, err, ok = false) when it went through
  6847  // the catch clause.
  6848  func (this Element) TryReleasePointerCapture(pointerId int32) (ret js.Void, exception js.Any, ok bool) {
  6849  	ok = js.True == bindings.TryElementReleasePointerCapture(
  6850  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  6851  		int32(pointerId),
  6852  	)
  6853  
  6854  	return
  6855  }
  6856  
  6857  // HasFuncHasPointerCapture returns true if the method "Element.hasPointerCapture" exists.
  6858  func (this Element) HasFuncHasPointerCapture() bool {
  6859  	return js.True == bindings.HasFuncElementHasPointerCapture(
  6860  		this.ref,
  6861  	)
  6862  }
  6863  
  6864  // FuncHasPointerCapture returns the method "Element.hasPointerCapture".
  6865  func (this Element) FuncHasPointerCapture() (fn js.Func[func(pointerId int32) bool]) {
  6866  	bindings.FuncElementHasPointerCapture(
  6867  		this.ref, js.Pointer(&fn),
  6868  	)
  6869  	return
  6870  }
  6871  
  6872  // HasPointerCapture calls the method "Element.hasPointerCapture".
  6873  func (this Element) HasPointerCapture(pointerId int32) (ret bool) {
  6874  	bindings.CallElementHasPointerCapture(
  6875  		this.ref, js.Pointer(&ret),
  6876  		int32(pointerId),
  6877  	)
  6878  
  6879  	return
  6880  }
  6881  
  6882  // TryHasPointerCapture calls the method "Element.hasPointerCapture"
  6883  // in a try/catch block and returns (_, err, ok = false) when it went through
  6884  // the catch clause.
  6885  func (this Element) TryHasPointerCapture(pointerId int32) (ret bool, exception js.Any, ok bool) {
  6886  	ok = js.True == bindings.TryElementHasPointerCapture(
  6887  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  6888  		int32(pointerId),
  6889  	)
  6890  
  6891  	return
  6892  }
  6893  
  6894  // HasFuncPseudo returns true if the method "Element.pseudo" exists.
  6895  func (this Element) HasFuncPseudo() bool {
  6896  	return js.True == bindings.HasFuncElementPseudo(
  6897  		this.ref,
  6898  	)
  6899  }
  6900  
  6901  // FuncPseudo returns the method "Element.pseudo".
  6902  func (this Element) FuncPseudo() (fn js.Func[func(typ js.String) CSSPseudoElement]) {
  6903  	bindings.FuncElementPseudo(
  6904  		this.ref, js.Pointer(&fn),
  6905  	)
  6906  	return
  6907  }
  6908  
  6909  // Pseudo calls the method "Element.pseudo".
  6910  func (this Element) Pseudo(typ js.String) (ret CSSPseudoElement) {
  6911  	bindings.CallElementPseudo(
  6912  		this.ref, js.Pointer(&ret),
  6913  		typ.Ref(),
  6914  	)
  6915  
  6916  	return
  6917  }
  6918  
  6919  // TryPseudo calls the method "Element.pseudo"
  6920  // in a try/catch block and returns (_, err, ok = false) when it went through
  6921  // the catch clause.
  6922  func (this Element) TryPseudo(typ js.String) (ret CSSPseudoElement, exception js.Any, ok bool) {
  6923  	ok = js.True == bindings.TryElementPseudo(
  6924  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  6925  		typ.Ref(),
  6926  	)
  6927  
  6928  	return
  6929  }
  6930  
  6931  // HasFuncInsertAdjacentHTML returns true if the method "Element.insertAdjacentHTML" exists.
  6932  func (this Element) HasFuncInsertAdjacentHTML() bool {
  6933  	return js.True == bindings.HasFuncElementInsertAdjacentHTML(
  6934  		this.ref,
  6935  	)
  6936  }
  6937  
  6938  // FuncInsertAdjacentHTML returns the method "Element.insertAdjacentHTML".
  6939  func (this Element) FuncInsertAdjacentHTML() (fn js.Func[func(position js.String, text js.String)]) {
  6940  	bindings.FuncElementInsertAdjacentHTML(
  6941  		this.ref, js.Pointer(&fn),
  6942  	)
  6943  	return
  6944  }
  6945  
  6946  // InsertAdjacentHTML calls the method "Element.insertAdjacentHTML".
  6947  func (this Element) InsertAdjacentHTML(position js.String, text js.String) (ret js.Void) {
  6948  	bindings.CallElementInsertAdjacentHTML(
  6949  		this.ref, js.Pointer(&ret),
  6950  		position.Ref(),
  6951  		text.Ref(),
  6952  	)
  6953  
  6954  	return
  6955  }
  6956  
  6957  // TryInsertAdjacentHTML calls the method "Element.insertAdjacentHTML"
  6958  // in a try/catch block and returns (_, err, ok = false) when it went through
  6959  // the catch clause.
  6960  func (this Element) TryInsertAdjacentHTML(position js.String, text js.String) (ret js.Void, exception js.Any, ok bool) {
  6961  	ok = js.True == bindings.TryElementInsertAdjacentHTML(
  6962  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  6963  		position.Ref(),
  6964  		text.Ref(),
  6965  	)
  6966  
  6967  	return
  6968  }
  6969  
  6970  // HasFuncSetHTML returns true if the method "Element.setHTML" exists.
  6971  func (this Element) HasFuncSetHTML() bool {
  6972  	return js.True == bindings.HasFuncElementSetHTML(
  6973  		this.ref,
  6974  	)
  6975  }
  6976  
  6977  // FuncSetHTML returns the method "Element.setHTML".
  6978  func (this Element) FuncSetHTML() (fn js.Func[func(input js.String, options SetHTMLOptions)]) {
  6979  	bindings.FuncElementSetHTML(
  6980  		this.ref, js.Pointer(&fn),
  6981  	)
  6982  	return
  6983  }
  6984  
  6985  // SetHTML calls the method "Element.setHTML".
  6986  func (this Element) SetHTML(input js.String, options SetHTMLOptions) (ret js.Void) {
  6987  	bindings.CallElementSetHTML(
  6988  		this.ref, js.Pointer(&ret),
  6989  		input.Ref(),
  6990  		js.Pointer(&options),
  6991  	)
  6992  
  6993  	return
  6994  }
  6995  
  6996  // TrySetHTML calls the method "Element.setHTML"
  6997  // in a try/catch block and returns (_, err, ok = false) when it went through
  6998  // the catch clause.
  6999  func (this Element) TrySetHTML(input js.String, options SetHTMLOptions) (ret js.Void, exception js.Any, ok bool) {
  7000  	ok = js.True == bindings.TryElementSetHTML(
  7001  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  7002  		input.Ref(),
  7003  		js.Pointer(&options),
  7004  	)
  7005  
  7006  	return
  7007  }
  7008  
  7009  // HasFuncSetHTML1 returns true if the method "Element.setHTML" exists.
  7010  func (this Element) HasFuncSetHTML1() bool {
  7011  	return js.True == bindings.HasFuncElementSetHTML1(
  7012  		this.ref,
  7013  	)
  7014  }
  7015  
  7016  // FuncSetHTML1 returns the method "Element.setHTML".
  7017  func (this Element) FuncSetHTML1() (fn js.Func[func(input js.String)]) {
  7018  	bindings.FuncElementSetHTML1(
  7019  		this.ref, js.Pointer(&fn),
  7020  	)
  7021  	return
  7022  }
  7023  
  7024  // SetHTML1 calls the method "Element.setHTML".
  7025  func (this Element) SetHTML1(input js.String) (ret js.Void) {
  7026  	bindings.CallElementSetHTML1(
  7027  		this.ref, js.Pointer(&ret),
  7028  		input.Ref(),
  7029  	)
  7030  
  7031  	return
  7032  }
  7033  
  7034  // TrySetHTML1 calls the method "Element.setHTML"
  7035  // in a try/catch block and returns (_, err, ok = false) when it went through
  7036  // the catch clause.
  7037  func (this Element) TrySetHTML1(input js.String) (ret js.Void, exception js.Any, ok bool) {
  7038  	ok = js.True == bindings.TryElementSetHTML1(
  7039  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  7040  		input.Ref(),
  7041  	)
  7042  
  7043  	return
  7044  }
  7045  
  7046  // HasFuncGetClientRects returns true if the method "Element.getClientRects" exists.
  7047  func (this Element) HasFuncGetClientRects() bool {
  7048  	return js.True == bindings.HasFuncElementGetClientRects(
  7049  		this.ref,
  7050  	)
  7051  }
  7052  
  7053  // FuncGetClientRects returns the method "Element.getClientRects".
  7054  func (this Element) FuncGetClientRects() (fn js.Func[func() DOMRectList]) {
  7055  	bindings.FuncElementGetClientRects(
  7056  		this.ref, js.Pointer(&fn),
  7057  	)
  7058  	return
  7059  }
  7060  
  7061  // GetClientRects calls the method "Element.getClientRects".
  7062  func (this Element) GetClientRects() (ret DOMRectList) {
  7063  	bindings.CallElementGetClientRects(
  7064  		this.ref, js.Pointer(&ret),
  7065  	)
  7066  
  7067  	return
  7068  }
  7069  
  7070  // TryGetClientRects calls the method "Element.getClientRects"
  7071  // in a try/catch block and returns (_, err, ok = false) when it went through
  7072  // the catch clause.
  7073  func (this Element) TryGetClientRects() (ret DOMRectList, exception js.Any, ok bool) {
  7074  	ok = js.True == bindings.TryElementGetClientRects(
  7075  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  7076  	)
  7077  
  7078  	return
  7079  }
  7080  
  7081  // HasFuncGetBoundingClientRect returns true if the method "Element.getBoundingClientRect" exists.
  7082  func (this Element) HasFuncGetBoundingClientRect() bool {
  7083  	return js.True == bindings.HasFuncElementGetBoundingClientRect(
  7084  		this.ref,
  7085  	)
  7086  }
  7087  
  7088  // FuncGetBoundingClientRect returns the method "Element.getBoundingClientRect".
  7089  func (this Element) FuncGetBoundingClientRect() (fn js.Func[func() DOMRect]) {
  7090  	bindings.FuncElementGetBoundingClientRect(
  7091  		this.ref, js.Pointer(&fn),
  7092  	)
  7093  	return
  7094  }
  7095  
  7096  // GetBoundingClientRect calls the method "Element.getBoundingClientRect".
  7097  func (this Element) GetBoundingClientRect() (ret DOMRect) {
  7098  	bindings.CallElementGetBoundingClientRect(
  7099  		this.ref, js.Pointer(&ret),
  7100  	)
  7101  
  7102  	return
  7103  }
  7104  
  7105  // TryGetBoundingClientRect calls the method "Element.getBoundingClientRect"
  7106  // in a try/catch block and returns (_, err, ok = false) when it went through
  7107  // the catch clause.
  7108  func (this Element) TryGetBoundingClientRect() (ret DOMRect, exception js.Any, ok bool) {
  7109  	ok = js.True == bindings.TryElementGetBoundingClientRect(
  7110  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  7111  	)
  7112  
  7113  	return
  7114  }
  7115  
  7116  // HasFuncCheckVisibility returns true if the method "Element.checkVisibility" exists.
  7117  func (this Element) HasFuncCheckVisibility() bool {
  7118  	return js.True == bindings.HasFuncElementCheckVisibility(
  7119  		this.ref,
  7120  	)
  7121  }
  7122  
  7123  // FuncCheckVisibility returns the method "Element.checkVisibility".
  7124  func (this Element) FuncCheckVisibility() (fn js.Func[func(options CheckVisibilityOptions) bool]) {
  7125  	bindings.FuncElementCheckVisibility(
  7126  		this.ref, js.Pointer(&fn),
  7127  	)
  7128  	return
  7129  }
  7130  
  7131  // CheckVisibility calls the method "Element.checkVisibility".
  7132  func (this Element) CheckVisibility(options CheckVisibilityOptions) (ret bool) {
  7133  	bindings.CallElementCheckVisibility(
  7134  		this.ref, js.Pointer(&ret),
  7135  		js.Pointer(&options),
  7136  	)
  7137  
  7138  	return
  7139  }
  7140  
  7141  // TryCheckVisibility calls the method "Element.checkVisibility"
  7142  // in a try/catch block and returns (_, err, ok = false) when it went through
  7143  // the catch clause.
  7144  func (this Element) TryCheckVisibility(options CheckVisibilityOptions) (ret bool, exception js.Any, ok bool) {
  7145  	ok = js.True == bindings.TryElementCheckVisibility(
  7146  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  7147  		js.Pointer(&options),
  7148  	)
  7149  
  7150  	return
  7151  }
  7152  
  7153  // HasFuncCheckVisibility1 returns true if the method "Element.checkVisibility" exists.
  7154  func (this Element) HasFuncCheckVisibility1() bool {
  7155  	return js.True == bindings.HasFuncElementCheckVisibility1(
  7156  		this.ref,
  7157  	)
  7158  }
  7159  
  7160  // FuncCheckVisibility1 returns the method "Element.checkVisibility".
  7161  func (this Element) FuncCheckVisibility1() (fn js.Func[func() bool]) {
  7162  	bindings.FuncElementCheckVisibility1(
  7163  		this.ref, js.Pointer(&fn),
  7164  	)
  7165  	return
  7166  }
  7167  
  7168  // CheckVisibility1 calls the method "Element.checkVisibility".
  7169  func (this Element) CheckVisibility1() (ret bool) {
  7170  	bindings.CallElementCheckVisibility1(
  7171  		this.ref, js.Pointer(&ret),
  7172  	)
  7173  
  7174  	return
  7175  }
  7176  
  7177  // TryCheckVisibility1 calls the method "Element.checkVisibility"
  7178  // in a try/catch block and returns (_, err, ok = false) when it went through
  7179  // the catch clause.
  7180  func (this Element) TryCheckVisibility1() (ret bool, exception js.Any, ok bool) {
  7181  	ok = js.True == bindings.TryElementCheckVisibility1(
  7182  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  7183  	)
  7184  
  7185  	return
  7186  }
  7187  
  7188  // HasFuncScrollIntoView returns true if the method "Element.scrollIntoView" exists.
  7189  func (this Element) HasFuncScrollIntoView() bool {
  7190  	return js.True == bindings.HasFuncElementScrollIntoView(
  7191  		this.ref,
  7192  	)
  7193  }
  7194  
  7195  // FuncScrollIntoView returns the method "Element.scrollIntoView".
  7196  func (this Element) FuncScrollIntoView() (fn js.Func[func(arg OneOf_Bool_ScrollIntoViewOptions)]) {
  7197  	bindings.FuncElementScrollIntoView(
  7198  		this.ref, js.Pointer(&fn),
  7199  	)
  7200  	return
  7201  }
  7202  
  7203  // ScrollIntoView calls the method "Element.scrollIntoView".
  7204  func (this Element) ScrollIntoView(arg OneOf_Bool_ScrollIntoViewOptions) (ret js.Void) {
  7205  	bindings.CallElementScrollIntoView(
  7206  		this.ref, js.Pointer(&ret),
  7207  		arg.Ref(),
  7208  	)
  7209  
  7210  	return
  7211  }
  7212  
  7213  // TryScrollIntoView calls the method "Element.scrollIntoView"
  7214  // in a try/catch block and returns (_, err, ok = false) when it went through
  7215  // the catch clause.
  7216  func (this Element) TryScrollIntoView(arg OneOf_Bool_ScrollIntoViewOptions) (ret js.Void, exception js.Any, ok bool) {
  7217  	ok = js.True == bindings.TryElementScrollIntoView(
  7218  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  7219  		arg.Ref(),
  7220  	)
  7221  
  7222  	return
  7223  }
  7224  
  7225  // HasFuncScrollIntoView1 returns true if the method "Element.scrollIntoView" exists.
  7226  func (this Element) HasFuncScrollIntoView1() bool {
  7227  	return js.True == bindings.HasFuncElementScrollIntoView1(
  7228  		this.ref,
  7229  	)
  7230  }
  7231  
  7232  // FuncScrollIntoView1 returns the method "Element.scrollIntoView".
  7233  func (this Element) FuncScrollIntoView1() (fn js.Func[func()]) {
  7234  	bindings.FuncElementScrollIntoView1(
  7235  		this.ref, js.Pointer(&fn),
  7236  	)
  7237  	return
  7238  }
  7239  
  7240  // ScrollIntoView1 calls the method "Element.scrollIntoView".
  7241  func (this Element) ScrollIntoView1() (ret js.Void) {
  7242  	bindings.CallElementScrollIntoView1(
  7243  		this.ref, js.Pointer(&ret),
  7244  	)
  7245  
  7246  	return
  7247  }
  7248  
  7249  // TryScrollIntoView1 calls the method "Element.scrollIntoView"
  7250  // in a try/catch block and returns (_, err, ok = false) when it went through
  7251  // the catch clause.
  7252  func (this Element) TryScrollIntoView1() (ret js.Void, exception js.Any, ok bool) {
  7253  	ok = js.True == bindings.TryElementScrollIntoView1(
  7254  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  7255  	)
  7256  
  7257  	return
  7258  }
  7259  
  7260  // HasFuncScroll returns true if the method "Element.scroll" exists.
  7261  func (this Element) HasFuncScroll() bool {
  7262  	return js.True == bindings.HasFuncElementScroll(
  7263  		this.ref,
  7264  	)
  7265  }
  7266  
  7267  // FuncScroll returns the method "Element.scroll".
  7268  func (this Element) FuncScroll() (fn js.Func[func(options ScrollToOptions)]) {
  7269  	bindings.FuncElementScroll(
  7270  		this.ref, js.Pointer(&fn),
  7271  	)
  7272  	return
  7273  }
  7274  
  7275  // Scroll calls the method "Element.scroll".
  7276  func (this Element) Scroll(options ScrollToOptions) (ret js.Void) {
  7277  	bindings.CallElementScroll(
  7278  		this.ref, js.Pointer(&ret),
  7279  		js.Pointer(&options),
  7280  	)
  7281  
  7282  	return
  7283  }
  7284  
  7285  // TryScroll calls the method "Element.scroll"
  7286  // in a try/catch block and returns (_, err, ok = false) when it went through
  7287  // the catch clause.
  7288  func (this Element) TryScroll(options ScrollToOptions) (ret js.Void, exception js.Any, ok bool) {
  7289  	ok = js.True == bindings.TryElementScroll(
  7290  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  7291  		js.Pointer(&options),
  7292  	)
  7293  
  7294  	return
  7295  }
  7296  
  7297  // HasFuncScroll1 returns true if the method "Element.scroll" exists.
  7298  func (this Element) HasFuncScroll1() bool {
  7299  	return js.True == bindings.HasFuncElementScroll1(
  7300  		this.ref,
  7301  	)
  7302  }
  7303  
  7304  // FuncScroll1 returns the method "Element.scroll".
  7305  func (this Element) FuncScroll1() (fn js.Func[func()]) {
  7306  	bindings.FuncElementScroll1(
  7307  		this.ref, js.Pointer(&fn),
  7308  	)
  7309  	return
  7310  }
  7311  
  7312  // Scroll1 calls the method "Element.scroll".
  7313  func (this Element) Scroll1() (ret js.Void) {
  7314  	bindings.CallElementScroll1(
  7315  		this.ref, js.Pointer(&ret),
  7316  	)
  7317  
  7318  	return
  7319  }
  7320  
  7321  // TryScroll1 calls the method "Element.scroll"
  7322  // in a try/catch block and returns (_, err, ok = false) when it went through
  7323  // the catch clause.
  7324  func (this Element) TryScroll1() (ret js.Void, exception js.Any, ok bool) {
  7325  	ok = js.True == bindings.TryElementScroll1(
  7326  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  7327  	)
  7328  
  7329  	return
  7330  }
  7331  
  7332  // HasFuncScroll2 returns true if the method "Element.scroll" exists.
  7333  func (this Element) HasFuncScroll2() bool {
  7334  	return js.True == bindings.HasFuncElementScroll2(
  7335  		this.ref,
  7336  	)
  7337  }
  7338  
  7339  // FuncScroll2 returns the method "Element.scroll".
  7340  func (this Element) FuncScroll2() (fn js.Func[func(x float64, y float64)]) {
  7341  	bindings.FuncElementScroll2(
  7342  		this.ref, js.Pointer(&fn),
  7343  	)
  7344  	return
  7345  }
  7346  
  7347  // Scroll2 calls the method "Element.scroll".
  7348  func (this Element) Scroll2(x float64, y float64) (ret js.Void) {
  7349  	bindings.CallElementScroll2(
  7350  		this.ref, js.Pointer(&ret),
  7351  		float64(x),
  7352  		float64(y),
  7353  	)
  7354  
  7355  	return
  7356  }
  7357  
  7358  // TryScroll2 calls the method "Element.scroll"
  7359  // in a try/catch block and returns (_, err, ok = false) when it went through
  7360  // the catch clause.
  7361  func (this Element) TryScroll2(x float64, y float64) (ret js.Void, exception js.Any, ok bool) {
  7362  	ok = js.True == bindings.TryElementScroll2(
  7363  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  7364  		float64(x),
  7365  		float64(y),
  7366  	)
  7367  
  7368  	return
  7369  }
  7370  
  7371  // HasFuncScrollTo returns true if the method "Element.scrollTo" exists.
  7372  func (this Element) HasFuncScrollTo() bool {
  7373  	return js.True == bindings.HasFuncElementScrollTo(
  7374  		this.ref,
  7375  	)
  7376  }
  7377  
  7378  // FuncScrollTo returns the method "Element.scrollTo".
  7379  func (this Element) FuncScrollTo() (fn js.Func[func(options ScrollToOptions)]) {
  7380  	bindings.FuncElementScrollTo(
  7381  		this.ref, js.Pointer(&fn),
  7382  	)
  7383  	return
  7384  }
  7385  
  7386  // ScrollTo calls the method "Element.scrollTo".
  7387  func (this Element) ScrollTo(options ScrollToOptions) (ret js.Void) {
  7388  	bindings.CallElementScrollTo(
  7389  		this.ref, js.Pointer(&ret),
  7390  		js.Pointer(&options),
  7391  	)
  7392  
  7393  	return
  7394  }
  7395  
  7396  // TryScrollTo calls the method "Element.scrollTo"
  7397  // in a try/catch block and returns (_, err, ok = false) when it went through
  7398  // the catch clause.
  7399  func (this Element) TryScrollTo(options ScrollToOptions) (ret js.Void, exception js.Any, ok bool) {
  7400  	ok = js.True == bindings.TryElementScrollTo(
  7401  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  7402  		js.Pointer(&options),
  7403  	)
  7404  
  7405  	return
  7406  }
  7407  
  7408  // HasFuncScrollTo1 returns true if the method "Element.scrollTo" exists.
  7409  func (this Element) HasFuncScrollTo1() bool {
  7410  	return js.True == bindings.HasFuncElementScrollTo1(
  7411  		this.ref,
  7412  	)
  7413  }
  7414  
  7415  // FuncScrollTo1 returns the method "Element.scrollTo".
  7416  func (this Element) FuncScrollTo1() (fn js.Func[func()]) {
  7417  	bindings.FuncElementScrollTo1(
  7418  		this.ref, js.Pointer(&fn),
  7419  	)
  7420  	return
  7421  }
  7422  
  7423  // ScrollTo1 calls the method "Element.scrollTo".
  7424  func (this Element) ScrollTo1() (ret js.Void) {
  7425  	bindings.CallElementScrollTo1(
  7426  		this.ref, js.Pointer(&ret),
  7427  	)
  7428  
  7429  	return
  7430  }
  7431  
  7432  // TryScrollTo1 calls the method "Element.scrollTo"
  7433  // in a try/catch block and returns (_, err, ok = false) when it went through
  7434  // the catch clause.
  7435  func (this Element) TryScrollTo1() (ret js.Void, exception js.Any, ok bool) {
  7436  	ok = js.True == bindings.TryElementScrollTo1(
  7437  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  7438  	)
  7439  
  7440  	return
  7441  }
  7442  
  7443  // HasFuncScrollTo2 returns true if the method "Element.scrollTo" exists.
  7444  func (this Element) HasFuncScrollTo2() bool {
  7445  	return js.True == bindings.HasFuncElementScrollTo2(
  7446  		this.ref,
  7447  	)
  7448  }
  7449  
  7450  // FuncScrollTo2 returns the method "Element.scrollTo".
  7451  func (this Element) FuncScrollTo2() (fn js.Func[func(x float64, y float64)]) {
  7452  	bindings.FuncElementScrollTo2(
  7453  		this.ref, js.Pointer(&fn),
  7454  	)
  7455  	return
  7456  }
  7457  
  7458  // ScrollTo2 calls the method "Element.scrollTo".
  7459  func (this Element) ScrollTo2(x float64, y float64) (ret js.Void) {
  7460  	bindings.CallElementScrollTo2(
  7461  		this.ref, js.Pointer(&ret),
  7462  		float64(x),
  7463  		float64(y),
  7464  	)
  7465  
  7466  	return
  7467  }
  7468  
  7469  // TryScrollTo2 calls the method "Element.scrollTo"
  7470  // in a try/catch block and returns (_, err, ok = false) when it went through
  7471  // the catch clause.
  7472  func (this Element) TryScrollTo2(x float64, y float64) (ret js.Void, exception js.Any, ok bool) {
  7473  	ok = js.True == bindings.TryElementScrollTo2(
  7474  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  7475  		float64(x),
  7476  		float64(y),
  7477  	)
  7478  
  7479  	return
  7480  }
  7481  
  7482  // HasFuncScrollBy returns true if the method "Element.scrollBy" exists.
  7483  func (this Element) HasFuncScrollBy() bool {
  7484  	return js.True == bindings.HasFuncElementScrollBy(
  7485  		this.ref,
  7486  	)
  7487  }
  7488  
  7489  // FuncScrollBy returns the method "Element.scrollBy".
  7490  func (this Element) FuncScrollBy() (fn js.Func[func(options ScrollToOptions)]) {
  7491  	bindings.FuncElementScrollBy(
  7492  		this.ref, js.Pointer(&fn),
  7493  	)
  7494  	return
  7495  }
  7496  
  7497  // ScrollBy calls the method "Element.scrollBy".
  7498  func (this Element) ScrollBy(options ScrollToOptions) (ret js.Void) {
  7499  	bindings.CallElementScrollBy(
  7500  		this.ref, js.Pointer(&ret),
  7501  		js.Pointer(&options),
  7502  	)
  7503  
  7504  	return
  7505  }
  7506  
  7507  // TryScrollBy calls the method "Element.scrollBy"
  7508  // in a try/catch block and returns (_, err, ok = false) when it went through
  7509  // the catch clause.
  7510  func (this Element) TryScrollBy(options ScrollToOptions) (ret js.Void, exception js.Any, ok bool) {
  7511  	ok = js.True == bindings.TryElementScrollBy(
  7512  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  7513  		js.Pointer(&options),
  7514  	)
  7515  
  7516  	return
  7517  }
  7518  
  7519  // HasFuncScrollBy1 returns true if the method "Element.scrollBy" exists.
  7520  func (this Element) HasFuncScrollBy1() bool {
  7521  	return js.True == bindings.HasFuncElementScrollBy1(
  7522  		this.ref,
  7523  	)
  7524  }
  7525  
  7526  // FuncScrollBy1 returns the method "Element.scrollBy".
  7527  func (this Element) FuncScrollBy1() (fn js.Func[func()]) {
  7528  	bindings.FuncElementScrollBy1(
  7529  		this.ref, js.Pointer(&fn),
  7530  	)
  7531  	return
  7532  }
  7533  
  7534  // ScrollBy1 calls the method "Element.scrollBy".
  7535  func (this Element) ScrollBy1() (ret js.Void) {
  7536  	bindings.CallElementScrollBy1(
  7537  		this.ref, js.Pointer(&ret),
  7538  	)
  7539  
  7540  	return
  7541  }
  7542  
  7543  // TryScrollBy1 calls the method "Element.scrollBy"
  7544  // in a try/catch block and returns (_, err, ok = false) when it went through
  7545  // the catch clause.
  7546  func (this Element) TryScrollBy1() (ret js.Void, exception js.Any, ok bool) {
  7547  	ok = js.True == bindings.TryElementScrollBy1(
  7548  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  7549  	)
  7550  
  7551  	return
  7552  }
  7553  
  7554  // HasFuncScrollBy2 returns true if the method "Element.scrollBy" exists.
  7555  func (this Element) HasFuncScrollBy2() bool {
  7556  	return js.True == bindings.HasFuncElementScrollBy2(
  7557  		this.ref,
  7558  	)
  7559  }
  7560  
  7561  // FuncScrollBy2 returns the method "Element.scrollBy".
  7562  func (this Element) FuncScrollBy2() (fn js.Func[func(x float64, y float64)]) {
  7563  	bindings.FuncElementScrollBy2(
  7564  		this.ref, js.Pointer(&fn),
  7565  	)
  7566  	return
  7567  }
  7568  
  7569  // ScrollBy2 calls the method "Element.scrollBy".
  7570  func (this Element) ScrollBy2(x float64, y float64) (ret js.Void) {
  7571  	bindings.CallElementScrollBy2(
  7572  		this.ref, js.Pointer(&ret),
  7573  		float64(x),
  7574  		float64(y),
  7575  	)
  7576  
  7577  	return
  7578  }
  7579  
  7580  // TryScrollBy2 calls the method "Element.scrollBy"
  7581  // in a try/catch block and returns (_, err, ok = false) when it went through
  7582  // the catch clause.
  7583  func (this Element) TryScrollBy2(x float64, y float64) (ret js.Void, exception js.Any, ok bool) {
  7584  	ok = js.True == bindings.TryElementScrollBy2(
  7585  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  7586  		float64(x),
  7587  		float64(y),
  7588  	)
  7589  
  7590  	return
  7591  }
  7592  
  7593  // HasFuncGetBoxQuads returns true if the method "Element.getBoxQuads" exists.
  7594  func (this Element) HasFuncGetBoxQuads() bool {
  7595  	return js.True == bindings.HasFuncElementGetBoxQuads(
  7596  		this.ref,
  7597  	)
  7598  }
  7599  
  7600  // FuncGetBoxQuads returns the method "Element.getBoxQuads".
  7601  func (this Element) FuncGetBoxQuads() (fn js.Func[func(options BoxQuadOptions) js.Array[DOMQuad]]) {
  7602  	bindings.FuncElementGetBoxQuads(
  7603  		this.ref, js.Pointer(&fn),
  7604  	)
  7605  	return
  7606  }
  7607  
  7608  // GetBoxQuads calls the method "Element.getBoxQuads".
  7609  func (this Element) GetBoxQuads(options BoxQuadOptions) (ret js.Array[DOMQuad]) {
  7610  	bindings.CallElementGetBoxQuads(
  7611  		this.ref, js.Pointer(&ret),
  7612  		js.Pointer(&options),
  7613  	)
  7614  
  7615  	return
  7616  }
  7617  
  7618  // TryGetBoxQuads calls the method "Element.getBoxQuads"
  7619  // in a try/catch block and returns (_, err, ok = false) when it went through
  7620  // the catch clause.
  7621  func (this Element) TryGetBoxQuads(options BoxQuadOptions) (ret js.Array[DOMQuad], exception js.Any, ok bool) {
  7622  	ok = js.True == bindings.TryElementGetBoxQuads(
  7623  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  7624  		js.Pointer(&options),
  7625  	)
  7626  
  7627  	return
  7628  }
  7629  
  7630  // HasFuncGetBoxQuads1 returns true if the method "Element.getBoxQuads" exists.
  7631  func (this Element) HasFuncGetBoxQuads1() bool {
  7632  	return js.True == bindings.HasFuncElementGetBoxQuads1(
  7633  		this.ref,
  7634  	)
  7635  }
  7636  
  7637  // FuncGetBoxQuads1 returns the method "Element.getBoxQuads".
  7638  func (this Element) FuncGetBoxQuads1() (fn js.Func[func() js.Array[DOMQuad]]) {
  7639  	bindings.FuncElementGetBoxQuads1(
  7640  		this.ref, js.Pointer(&fn),
  7641  	)
  7642  	return
  7643  }
  7644  
  7645  // GetBoxQuads1 calls the method "Element.getBoxQuads".
  7646  func (this Element) GetBoxQuads1() (ret js.Array[DOMQuad]) {
  7647  	bindings.CallElementGetBoxQuads1(
  7648  		this.ref, js.Pointer(&ret),
  7649  	)
  7650  
  7651  	return
  7652  }
  7653  
  7654  // TryGetBoxQuads1 calls the method "Element.getBoxQuads"
  7655  // in a try/catch block and returns (_, err, ok = false) when it went through
  7656  // the catch clause.
  7657  func (this Element) TryGetBoxQuads1() (ret js.Array[DOMQuad], exception js.Any, ok bool) {
  7658  	ok = js.True == bindings.TryElementGetBoxQuads1(
  7659  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  7660  	)
  7661  
  7662  	return
  7663  }
  7664  
  7665  // HasFuncConvertQuadFromNode returns true if the method "Element.convertQuadFromNode" exists.
  7666  func (this Element) HasFuncConvertQuadFromNode() bool {
  7667  	return js.True == bindings.HasFuncElementConvertQuadFromNode(
  7668  		this.ref,
  7669  	)
  7670  }
  7671  
  7672  // FuncConvertQuadFromNode returns the method "Element.convertQuadFromNode".
  7673  func (this Element) FuncConvertQuadFromNode() (fn js.Func[func(quad DOMQuadInit, from GeometryNode, options ConvertCoordinateOptions) DOMQuad]) {
  7674  	bindings.FuncElementConvertQuadFromNode(
  7675  		this.ref, js.Pointer(&fn),
  7676  	)
  7677  	return
  7678  }
  7679  
  7680  // ConvertQuadFromNode calls the method "Element.convertQuadFromNode".
  7681  func (this Element) ConvertQuadFromNode(quad DOMQuadInit, from GeometryNode, options ConvertCoordinateOptions) (ret DOMQuad) {
  7682  	bindings.CallElementConvertQuadFromNode(
  7683  		this.ref, js.Pointer(&ret),
  7684  		js.Pointer(&quad),
  7685  		from.Ref(),
  7686  		js.Pointer(&options),
  7687  	)
  7688  
  7689  	return
  7690  }
  7691  
  7692  // TryConvertQuadFromNode calls the method "Element.convertQuadFromNode"
  7693  // in a try/catch block and returns (_, err, ok = false) when it went through
  7694  // the catch clause.
  7695  func (this Element) TryConvertQuadFromNode(quad DOMQuadInit, from GeometryNode, options ConvertCoordinateOptions) (ret DOMQuad, exception js.Any, ok bool) {
  7696  	ok = js.True == bindings.TryElementConvertQuadFromNode(
  7697  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  7698  		js.Pointer(&quad),
  7699  		from.Ref(),
  7700  		js.Pointer(&options),
  7701  	)
  7702  
  7703  	return
  7704  }
  7705  
  7706  // HasFuncConvertQuadFromNode1 returns true if the method "Element.convertQuadFromNode" exists.
  7707  func (this Element) HasFuncConvertQuadFromNode1() bool {
  7708  	return js.True == bindings.HasFuncElementConvertQuadFromNode1(
  7709  		this.ref,
  7710  	)
  7711  }
  7712  
  7713  // FuncConvertQuadFromNode1 returns the method "Element.convertQuadFromNode".
  7714  func (this Element) FuncConvertQuadFromNode1() (fn js.Func[func(quad DOMQuadInit, from GeometryNode) DOMQuad]) {
  7715  	bindings.FuncElementConvertQuadFromNode1(
  7716  		this.ref, js.Pointer(&fn),
  7717  	)
  7718  	return
  7719  }
  7720  
  7721  // ConvertQuadFromNode1 calls the method "Element.convertQuadFromNode".
  7722  func (this Element) ConvertQuadFromNode1(quad DOMQuadInit, from GeometryNode) (ret DOMQuad) {
  7723  	bindings.CallElementConvertQuadFromNode1(
  7724  		this.ref, js.Pointer(&ret),
  7725  		js.Pointer(&quad),
  7726  		from.Ref(),
  7727  	)
  7728  
  7729  	return
  7730  }
  7731  
  7732  // TryConvertQuadFromNode1 calls the method "Element.convertQuadFromNode"
  7733  // in a try/catch block and returns (_, err, ok = false) when it went through
  7734  // the catch clause.
  7735  func (this Element) TryConvertQuadFromNode1(quad DOMQuadInit, from GeometryNode) (ret DOMQuad, exception js.Any, ok bool) {
  7736  	ok = js.True == bindings.TryElementConvertQuadFromNode1(
  7737  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  7738  		js.Pointer(&quad),
  7739  		from.Ref(),
  7740  	)
  7741  
  7742  	return
  7743  }
  7744  
  7745  // HasFuncConvertRectFromNode returns true if the method "Element.convertRectFromNode" exists.
  7746  func (this Element) HasFuncConvertRectFromNode() bool {
  7747  	return js.True == bindings.HasFuncElementConvertRectFromNode(
  7748  		this.ref,
  7749  	)
  7750  }
  7751  
  7752  // FuncConvertRectFromNode returns the method "Element.convertRectFromNode".
  7753  func (this Element) FuncConvertRectFromNode() (fn js.Func[func(rect DOMRectReadOnly, from GeometryNode, options ConvertCoordinateOptions) DOMQuad]) {
  7754  	bindings.FuncElementConvertRectFromNode(
  7755  		this.ref, js.Pointer(&fn),
  7756  	)
  7757  	return
  7758  }
  7759  
  7760  // ConvertRectFromNode calls the method "Element.convertRectFromNode".
  7761  func (this Element) ConvertRectFromNode(rect DOMRectReadOnly, from GeometryNode, options ConvertCoordinateOptions) (ret DOMQuad) {
  7762  	bindings.CallElementConvertRectFromNode(
  7763  		this.ref, js.Pointer(&ret),
  7764  		rect.Ref(),
  7765  		from.Ref(),
  7766  		js.Pointer(&options),
  7767  	)
  7768  
  7769  	return
  7770  }
  7771  
  7772  // TryConvertRectFromNode calls the method "Element.convertRectFromNode"
  7773  // in a try/catch block and returns (_, err, ok = false) when it went through
  7774  // the catch clause.
  7775  func (this Element) TryConvertRectFromNode(rect DOMRectReadOnly, from GeometryNode, options ConvertCoordinateOptions) (ret DOMQuad, exception js.Any, ok bool) {
  7776  	ok = js.True == bindings.TryElementConvertRectFromNode(
  7777  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  7778  		rect.Ref(),
  7779  		from.Ref(),
  7780  		js.Pointer(&options),
  7781  	)
  7782  
  7783  	return
  7784  }
  7785  
  7786  // HasFuncConvertRectFromNode1 returns true if the method "Element.convertRectFromNode" exists.
  7787  func (this Element) HasFuncConvertRectFromNode1() bool {
  7788  	return js.True == bindings.HasFuncElementConvertRectFromNode1(
  7789  		this.ref,
  7790  	)
  7791  }
  7792  
  7793  // FuncConvertRectFromNode1 returns the method "Element.convertRectFromNode".
  7794  func (this Element) FuncConvertRectFromNode1() (fn js.Func[func(rect DOMRectReadOnly, from GeometryNode) DOMQuad]) {
  7795  	bindings.FuncElementConvertRectFromNode1(
  7796  		this.ref, js.Pointer(&fn),
  7797  	)
  7798  	return
  7799  }
  7800  
  7801  // ConvertRectFromNode1 calls the method "Element.convertRectFromNode".
  7802  func (this Element) ConvertRectFromNode1(rect DOMRectReadOnly, from GeometryNode) (ret DOMQuad) {
  7803  	bindings.CallElementConvertRectFromNode1(
  7804  		this.ref, js.Pointer(&ret),
  7805  		rect.Ref(),
  7806  		from.Ref(),
  7807  	)
  7808  
  7809  	return
  7810  }
  7811  
  7812  // TryConvertRectFromNode1 calls the method "Element.convertRectFromNode"
  7813  // in a try/catch block and returns (_, err, ok = false) when it went through
  7814  // the catch clause.
  7815  func (this Element) TryConvertRectFromNode1(rect DOMRectReadOnly, from GeometryNode) (ret DOMQuad, exception js.Any, ok bool) {
  7816  	ok = js.True == bindings.TryElementConvertRectFromNode1(
  7817  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  7818  		rect.Ref(),
  7819  		from.Ref(),
  7820  	)
  7821  
  7822  	return
  7823  }
  7824  
  7825  // HasFuncConvertPointFromNode returns true if the method "Element.convertPointFromNode" exists.
  7826  func (this Element) HasFuncConvertPointFromNode() bool {
  7827  	return js.True == bindings.HasFuncElementConvertPointFromNode(
  7828  		this.ref,
  7829  	)
  7830  }
  7831  
  7832  // FuncConvertPointFromNode returns the method "Element.convertPointFromNode".
  7833  func (this Element) FuncConvertPointFromNode() (fn js.Func[func(point DOMPointInit, from GeometryNode, options ConvertCoordinateOptions) DOMPoint]) {
  7834  	bindings.FuncElementConvertPointFromNode(
  7835  		this.ref, js.Pointer(&fn),
  7836  	)
  7837  	return
  7838  }
  7839  
  7840  // ConvertPointFromNode calls the method "Element.convertPointFromNode".
  7841  func (this Element) ConvertPointFromNode(point DOMPointInit, from GeometryNode, options ConvertCoordinateOptions) (ret DOMPoint) {
  7842  	bindings.CallElementConvertPointFromNode(
  7843  		this.ref, js.Pointer(&ret),
  7844  		js.Pointer(&point),
  7845  		from.Ref(),
  7846  		js.Pointer(&options),
  7847  	)
  7848  
  7849  	return
  7850  }
  7851  
  7852  // TryConvertPointFromNode calls the method "Element.convertPointFromNode"
  7853  // in a try/catch block and returns (_, err, ok = false) when it went through
  7854  // the catch clause.
  7855  func (this Element) TryConvertPointFromNode(point DOMPointInit, from GeometryNode, options ConvertCoordinateOptions) (ret DOMPoint, exception js.Any, ok bool) {
  7856  	ok = js.True == bindings.TryElementConvertPointFromNode(
  7857  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  7858  		js.Pointer(&point),
  7859  		from.Ref(),
  7860  		js.Pointer(&options),
  7861  	)
  7862  
  7863  	return
  7864  }
  7865  
  7866  // HasFuncConvertPointFromNode1 returns true if the method "Element.convertPointFromNode" exists.
  7867  func (this Element) HasFuncConvertPointFromNode1() bool {
  7868  	return js.True == bindings.HasFuncElementConvertPointFromNode1(
  7869  		this.ref,
  7870  	)
  7871  }
  7872  
  7873  // FuncConvertPointFromNode1 returns the method "Element.convertPointFromNode".
  7874  func (this Element) FuncConvertPointFromNode1() (fn js.Func[func(point DOMPointInit, from GeometryNode) DOMPoint]) {
  7875  	bindings.FuncElementConvertPointFromNode1(
  7876  		this.ref, js.Pointer(&fn),
  7877  	)
  7878  	return
  7879  }
  7880  
  7881  // ConvertPointFromNode1 calls the method "Element.convertPointFromNode".
  7882  func (this Element) ConvertPointFromNode1(point DOMPointInit, from GeometryNode) (ret DOMPoint) {
  7883  	bindings.CallElementConvertPointFromNode1(
  7884  		this.ref, js.Pointer(&ret),
  7885  		js.Pointer(&point),
  7886  		from.Ref(),
  7887  	)
  7888  
  7889  	return
  7890  }
  7891  
  7892  // TryConvertPointFromNode1 calls the method "Element.convertPointFromNode"
  7893  // in a try/catch block and returns (_, err, ok = false) when it went through
  7894  // the catch clause.
  7895  func (this Element) TryConvertPointFromNode1(point DOMPointInit, from GeometryNode) (ret DOMPoint, exception js.Any, ok bool) {
  7896  	ok = js.True == bindings.TryElementConvertPointFromNode1(
  7897  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  7898  		js.Pointer(&point),
  7899  		from.Ref(),
  7900  	)
  7901  
  7902  	return
  7903  }
  7904  
  7905  // HasFuncPrepend returns true if the method "Element.prepend" exists.
  7906  func (this Element) HasFuncPrepend() bool {
  7907  	return js.True == bindings.HasFuncElementPrepend(
  7908  		this.ref,
  7909  	)
  7910  }
  7911  
  7912  // FuncPrepend returns the method "Element.prepend".
  7913  func (this Element) FuncPrepend() (fn js.Func[func(nodes ...OneOf_Node_String)]) {
  7914  	bindings.FuncElementPrepend(
  7915  		this.ref, js.Pointer(&fn),
  7916  	)
  7917  	return
  7918  }
  7919  
  7920  // Prepend calls the method "Element.prepend".
  7921  func (this Element) Prepend(nodes ...OneOf_Node_String) (ret js.Void) {
  7922  	bindings.CallElementPrepend(
  7923  		this.ref, js.Pointer(&ret),
  7924  		js.SliceData(nodes),
  7925  		js.SizeU(len(nodes)),
  7926  	)
  7927  
  7928  	return
  7929  }
  7930  
  7931  // TryPrepend calls the method "Element.prepend"
  7932  // in a try/catch block and returns (_, err, ok = false) when it went through
  7933  // the catch clause.
  7934  func (this Element) TryPrepend(nodes ...OneOf_Node_String) (ret js.Void, exception js.Any, ok bool) {
  7935  	ok = js.True == bindings.TryElementPrepend(
  7936  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  7937  		js.SliceData(nodes),
  7938  		js.SizeU(len(nodes)),
  7939  	)
  7940  
  7941  	return
  7942  }
  7943  
  7944  // HasFuncAppend returns true if the method "Element.append" exists.
  7945  func (this Element) HasFuncAppend() bool {
  7946  	return js.True == bindings.HasFuncElementAppend(
  7947  		this.ref,
  7948  	)
  7949  }
  7950  
  7951  // FuncAppend returns the method "Element.append".
  7952  func (this Element) FuncAppend() (fn js.Func[func(nodes ...OneOf_Node_String)]) {
  7953  	bindings.FuncElementAppend(
  7954  		this.ref, js.Pointer(&fn),
  7955  	)
  7956  	return
  7957  }
  7958  
  7959  // Append calls the method "Element.append".
  7960  func (this Element) Append(nodes ...OneOf_Node_String) (ret js.Void) {
  7961  	bindings.CallElementAppend(
  7962  		this.ref, js.Pointer(&ret),
  7963  		js.SliceData(nodes),
  7964  		js.SizeU(len(nodes)),
  7965  	)
  7966  
  7967  	return
  7968  }
  7969  
  7970  // TryAppend calls the method "Element.append"
  7971  // in a try/catch block and returns (_, err, ok = false) when it went through
  7972  // the catch clause.
  7973  func (this Element) TryAppend(nodes ...OneOf_Node_String) (ret js.Void, exception js.Any, ok bool) {
  7974  	ok = js.True == bindings.TryElementAppend(
  7975  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  7976  		js.SliceData(nodes),
  7977  		js.SizeU(len(nodes)),
  7978  	)
  7979  
  7980  	return
  7981  }
  7982  
  7983  // HasFuncReplaceChildren returns true if the method "Element.replaceChildren" exists.
  7984  func (this Element) HasFuncReplaceChildren() bool {
  7985  	return js.True == bindings.HasFuncElementReplaceChildren(
  7986  		this.ref,
  7987  	)
  7988  }
  7989  
  7990  // FuncReplaceChildren returns the method "Element.replaceChildren".
  7991  func (this Element) FuncReplaceChildren() (fn js.Func[func(nodes ...OneOf_Node_String)]) {
  7992  	bindings.FuncElementReplaceChildren(
  7993  		this.ref, js.Pointer(&fn),
  7994  	)
  7995  	return
  7996  }
  7997  
  7998  // ReplaceChildren calls the method "Element.replaceChildren".
  7999  func (this Element) ReplaceChildren(nodes ...OneOf_Node_String) (ret js.Void) {
  8000  	bindings.CallElementReplaceChildren(
  8001  		this.ref, js.Pointer(&ret),
  8002  		js.SliceData(nodes),
  8003  		js.SizeU(len(nodes)),
  8004  	)
  8005  
  8006  	return
  8007  }
  8008  
  8009  // TryReplaceChildren calls the method "Element.replaceChildren"
  8010  // in a try/catch block and returns (_, err, ok = false) when it went through
  8011  // the catch clause.
  8012  func (this Element) TryReplaceChildren(nodes ...OneOf_Node_String) (ret js.Void, exception js.Any, ok bool) {
  8013  	ok = js.True == bindings.TryElementReplaceChildren(
  8014  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  8015  		js.SliceData(nodes),
  8016  		js.SizeU(len(nodes)),
  8017  	)
  8018  
  8019  	return
  8020  }
  8021  
  8022  // HasFuncQuerySelector returns true if the method "Element.querySelector" exists.
  8023  func (this Element) HasFuncQuerySelector() bool {
  8024  	return js.True == bindings.HasFuncElementQuerySelector(
  8025  		this.ref,
  8026  	)
  8027  }
  8028  
  8029  // FuncQuerySelector returns the method "Element.querySelector".
  8030  func (this Element) FuncQuerySelector() (fn js.Func[func(selectors js.String) Element]) {
  8031  	bindings.FuncElementQuerySelector(
  8032  		this.ref, js.Pointer(&fn),
  8033  	)
  8034  	return
  8035  }
  8036  
  8037  // QuerySelector calls the method "Element.querySelector".
  8038  func (this Element) QuerySelector(selectors js.String) (ret Element) {
  8039  	bindings.CallElementQuerySelector(
  8040  		this.ref, js.Pointer(&ret),
  8041  		selectors.Ref(),
  8042  	)
  8043  
  8044  	return
  8045  }
  8046  
  8047  // TryQuerySelector calls the method "Element.querySelector"
  8048  // in a try/catch block and returns (_, err, ok = false) when it went through
  8049  // the catch clause.
  8050  func (this Element) TryQuerySelector(selectors js.String) (ret Element, exception js.Any, ok bool) {
  8051  	ok = js.True == bindings.TryElementQuerySelector(
  8052  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  8053  		selectors.Ref(),
  8054  	)
  8055  
  8056  	return
  8057  }
  8058  
  8059  // HasFuncQuerySelectorAll returns true if the method "Element.querySelectorAll" exists.
  8060  func (this Element) HasFuncQuerySelectorAll() bool {
  8061  	return js.True == bindings.HasFuncElementQuerySelectorAll(
  8062  		this.ref,
  8063  	)
  8064  }
  8065  
  8066  // FuncQuerySelectorAll returns the method "Element.querySelectorAll".
  8067  func (this Element) FuncQuerySelectorAll() (fn js.Func[func(selectors js.String) NodeList]) {
  8068  	bindings.FuncElementQuerySelectorAll(
  8069  		this.ref, js.Pointer(&fn),
  8070  	)
  8071  	return
  8072  }
  8073  
  8074  // QuerySelectorAll calls the method "Element.querySelectorAll".
  8075  func (this Element) QuerySelectorAll(selectors js.String) (ret NodeList) {
  8076  	bindings.CallElementQuerySelectorAll(
  8077  		this.ref, js.Pointer(&ret),
  8078  		selectors.Ref(),
  8079  	)
  8080  
  8081  	return
  8082  }
  8083  
  8084  // TryQuerySelectorAll calls the method "Element.querySelectorAll"
  8085  // in a try/catch block and returns (_, err, ok = false) when it went through
  8086  // the catch clause.
  8087  func (this Element) TryQuerySelectorAll(selectors js.String) (ret NodeList, exception js.Any, ok bool) {
  8088  	ok = js.True == bindings.TryElementQuerySelectorAll(
  8089  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  8090  		selectors.Ref(),
  8091  	)
  8092  
  8093  	return
  8094  }
  8095  
  8096  // HasFuncBefore returns true if the method "Element.before" exists.
  8097  func (this Element) HasFuncBefore() bool {
  8098  	return js.True == bindings.HasFuncElementBefore(
  8099  		this.ref,
  8100  	)
  8101  }
  8102  
  8103  // FuncBefore returns the method "Element.before".
  8104  func (this Element) FuncBefore() (fn js.Func[func(nodes ...OneOf_Node_String)]) {
  8105  	bindings.FuncElementBefore(
  8106  		this.ref, js.Pointer(&fn),
  8107  	)
  8108  	return
  8109  }
  8110  
  8111  // Before calls the method "Element.before".
  8112  func (this Element) Before(nodes ...OneOf_Node_String) (ret js.Void) {
  8113  	bindings.CallElementBefore(
  8114  		this.ref, js.Pointer(&ret),
  8115  		js.SliceData(nodes),
  8116  		js.SizeU(len(nodes)),
  8117  	)
  8118  
  8119  	return
  8120  }
  8121  
  8122  // TryBefore calls the method "Element.before"
  8123  // in a try/catch block and returns (_, err, ok = false) when it went through
  8124  // the catch clause.
  8125  func (this Element) TryBefore(nodes ...OneOf_Node_String) (ret js.Void, exception js.Any, ok bool) {
  8126  	ok = js.True == bindings.TryElementBefore(
  8127  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  8128  		js.SliceData(nodes),
  8129  		js.SizeU(len(nodes)),
  8130  	)
  8131  
  8132  	return
  8133  }
  8134  
  8135  // HasFuncAfter returns true if the method "Element.after" exists.
  8136  func (this Element) HasFuncAfter() bool {
  8137  	return js.True == bindings.HasFuncElementAfter(
  8138  		this.ref,
  8139  	)
  8140  }
  8141  
  8142  // FuncAfter returns the method "Element.after".
  8143  func (this Element) FuncAfter() (fn js.Func[func(nodes ...OneOf_Node_String)]) {
  8144  	bindings.FuncElementAfter(
  8145  		this.ref, js.Pointer(&fn),
  8146  	)
  8147  	return
  8148  }
  8149  
  8150  // After calls the method "Element.after".
  8151  func (this Element) After(nodes ...OneOf_Node_String) (ret js.Void) {
  8152  	bindings.CallElementAfter(
  8153  		this.ref, js.Pointer(&ret),
  8154  		js.SliceData(nodes),
  8155  		js.SizeU(len(nodes)),
  8156  	)
  8157  
  8158  	return
  8159  }
  8160  
  8161  // TryAfter calls the method "Element.after"
  8162  // in a try/catch block and returns (_, err, ok = false) when it went through
  8163  // the catch clause.
  8164  func (this Element) TryAfter(nodes ...OneOf_Node_String) (ret js.Void, exception js.Any, ok bool) {
  8165  	ok = js.True == bindings.TryElementAfter(
  8166  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  8167  		js.SliceData(nodes),
  8168  		js.SizeU(len(nodes)),
  8169  	)
  8170  
  8171  	return
  8172  }
  8173  
  8174  // HasFuncReplaceWith returns true if the method "Element.replaceWith" exists.
  8175  func (this Element) HasFuncReplaceWith() bool {
  8176  	return js.True == bindings.HasFuncElementReplaceWith(
  8177  		this.ref,
  8178  	)
  8179  }
  8180  
  8181  // FuncReplaceWith returns the method "Element.replaceWith".
  8182  func (this Element) FuncReplaceWith() (fn js.Func[func(nodes ...OneOf_Node_String)]) {
  8183  	bindings.FuncElementReplaceWith(
  8184  		this.ref, js.Pointer(&fn),
  8185  	)
  8186  	return
  8187  }
  8188  
  8189  // ReplaceWith calls the method "Element.replaceWith".
  8190  func (this Element) ReplaceWith(nodes ...OneOf_Node_String) (ret js.Void) {
  8191  	bindings.CallElementReplaceWith(
  8192  		this.ref, js.Pointer(&ret),
  8193  		js.SliceData(nodes),
  8194  		js.SizeU(len(nodes)),
  8195  	)
  8196  
  8197  	return
  8198  }
  8199  
  8200  // TryReplaceWith calls the method "Element.replaceWith"
  8201  // in a try/catch block and returns (_, err, ok = false) when it went through
  8202  // the catch clause.
  8203  func (this Element) TryReplaceWith(nodes ...OneOf_Node_String) (ret js.Void, exception js.Any, ok bool) {
  8204  	ok = js.True == bindings.TryElementReplaceWith(
  8205  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  8206  		js.SliceData(nodes),
  8207  		js.SizeU(len(nodes)),
  8208  	)
  8209  
  8210  	return
  8211  }
  8212  
  8213  // HasFuncRemove returns true if the method "Element.remove" exists.
  8214  func (this Element) HasFuncRemove() bool {
  8215  	return js.True == bindings.HasFuncElementRemove(
  8216  		this.ref,
  8217  	)
  8218  }
  8219  
  8220  // FuncRemove returns the method "Element.remove".
  8221  func (this Element) FuncRemove() (fn js.Func[func()]) {
  8222  	bindings.FuncElementRemove(
  8223  		this.ref, js.Pointer(&fn),
  8224  	)
  8225  	return
  8226  }
  8227  
  8228  // Remove calls the method "Element.remove".
  8229  func (this Element) Remove() (ret js.Void) {
  8230  	bindings.CallElementRemove(
  8231  		this.ref, js.Pointer(&ret),
  8232  	)
  8233  
  8234  	return
  8235  }
  8236  
  8237  // TryRemove calls the method "Element.remove"
  8238  // in a try/catch block and returns (_, err, ok = false) when it went through
  8239  // the catch clause.
  8240  func (this Element) TryRemove() (ret js.Void, exception js.Any, ok bool) {
  8241  	ok = js.True == bindings.TryElementRemove(
  8242  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  8243  	)
  8244  
  8245  	return
  8246  }
  8247  
  8248  // HasFuncAnimate returns true if the method "Element.animate" exists.
  8249  func (this Element) HasFuncAnimate() bool {
  8250  	return js.True == bindings.HasFuncElementAnimate(
  8251  		this.ref,
  8252  	)
  8253  }
  8254  
  8255  // FuncAnimate returns the method "Element.animate".
  8256  func (this Element) FuncAnimate() (fn js.Func[func(keyframes js.Object, options OneOf_Float64_KeyframeAnimationOptions) Animation]) {
  8257  	bindings.FuncElementAnimate(
  8258  		this.ref, js.Pointer(&fn),
  8259  	)
  8260  	return
  8261  }
  8262  
  8263  // Animate calls the method "Element.animate".
  8264  func (this Element) Animate(keyframes js.Object, options OneOf_Float64_KeyframeAnimationOptions) (ret Animation) {
  8265  	bindings.CallElementAnimate(
  8266  		this.ref, js.Pointer(&ret),
  8267  		keyframes.Ref(),
  8268  		options.Ref(),
  8269  	)
  8270  
  8271  	return
  8272  }
  8273  
  8274  // TryAnimate calls the method "Element.animate"
  8275  // in a try/catch block and returns (_, err, ok = false) when it went through
  8276  // the catch clause.
  8277  func (this Element) TryAnimate(keyframes js.Object, options OneOf_Float64_KeyframeAnimationOptions) (ret Animation, exception js.Any, ok bool) {
  8278  	ok = js.True == bindings.TryElementAnimate(
  8279  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  8280  		keyframes.Ref(),
  8281  		options.Ref(),
  8282  	)
  8283  
  8284  	return
  8285  }
  8286  
  8287  // HasFuncAnimate1 returns true if the method "Element.animate" exists.
  8288  func (this Element) HasFuncAnimate1() bool {
  8289  	return js.True == bindings.HasFuncElementAnimate1(
  8290  		this.ref,
  8291  	)
  8292  }
  8293  
  8294  // FuncAnimate1 returns the method "Element.animate".
  8295  func (this Element) FuncAnimate1() (fn js.Func[func(keyframes js.Object) Animation]) {
  8296  	bindings.FuncElementAnimate1(
  8297  		this.ref, js.Pointer(&fn),
  8298  	)
  8299  	return
  8300  }
  8301  
  8302  // Animate1 calls the method "Element.animate".
  8303  func (this Element) Animate1(keyframes js.Object) (ret Animation) {
  8304  	bindings.CallElementAnimate1(
  8305  		this.ref, js.Pointer(&ret),
  8306  		keyframes.Ref(),
  8307  	)
  8308  
  8309  	return
  8310  }
  8311  
  8312  // TryAnimate1 calls the method "Element.animate"
  8313  // in a try/catch block and returns (_, err, ok = false) when it went through
  8314  // the catch clause.
  8315  func (this Element) TryAnimate1(keyframes js.Object) (ret Animation, exception js.Any, ok bool) {
  8316  	ok = js.True == bindings.TryElementAnimate1(
  8317  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  8318  		keyframes.Ref(),
  8319  	)
  8320  
  8321  	return
  8322  }
  8323  
  8324  // HasFuncGetAnimations returns true if the method "Element.getAnimations" exists.
  8325  func (this Element) HasFuncGetAnimations() bool {
  8326  	return js.True == bindings.HasFuncElementGetAnimations(
  8327  		this.ref,
  8328  	)
  8329  }
  8330  
  8331  // FuncGetAnimations returns the method "Element.getAnimations".
  8332  func (this Element) FuncGetAnimations() (fn js.Func[func(options GetAnimationsOptions) js.Array[Animation]]) {
  8333  	bindings.FuncElementGetAnimations(
  8334  		this.ref, js.Pointer(&fn),
  8335  	)
  8336  	return
  8337  }
  8338  
  8339  // GetAnimations calls the method "Element.getAnimations".
  8340  func (this Element) GetAnimations(options GetAnimationsOptions) (ret js.Array[Animation]) {
  8341  	bindings.CallElementGetAnimations(
  8342  		this.ref, js.Pointer(&ret),
  8343  		js.Pointer(&options),
  8344  	)
  8345  
  8346  	return
  8347  }
  8348  
  8349  // TryGetAnimations calls the method "Element.getAnimations"
  8350  // in a try/catch block and returns (_, err, ok = false) when it went through
  8351  // the catch clause.
  8352  func (this Element) TryGetAnimations(options GetAnimationsOptions) (ret js.Array[Animation], exception js.Any, ok bool) {
  8353  	ok = js.True == bindings.TryElementGetAnimations(
  8354  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  8355  		js.Pointer(&options),
  8356  	)
  8357  
  8358  	return
  8359  }
  8360  
  8361  // HasFuncGetAnimations1 returns true if the method "Element.getAnimations" exists.
  8362  func (this Element) HasFuncGetAnimations1() bool {
  8363  	return js.True == bindings.HasFuncElementGetAnimations1(
  8364  		this.ref,
  8365  	)
  8366  }
  8367  
  8368  // FuncGetAnimations1 returns the method "Element.getAnimations".
  8369  func (this Element) FuncGetAnimations1() (fn js.Func[func() js.Array[Animation]]) {
  8370  	bindings.FuncElementGetAnimations1(
  8371  		this.ref, js.Pointer(&fn),
  8372  	)
  8373  	return
  8374  }
  8375  
  8376  // GetAnimations1 calls the method "Element.getAnimations".
  8377  func (this Element) GetAnimations1() (ret js.Array[Animation]) {
  8378  	bindings.CallElementGetAnimations1(
  8379  		this.ref, js.Pointer(&ret),
  8380  	)
  8381  
  8382  	return
  8383  }
  8384  
  8385  // TryGetAnimations1 calls the method "Element.getAnimations"
  8386  // in a try/catch block and returns (_, err, ok = false) when it went through
  8387  // the catch clause.
  8388  func (this Element) TryGetAnimations1() (ret js.Array[Animation], exception js.Any, ok bool) {
  8389  	ok = js.True == bindings.TryElementGetAnimations1(
  8390  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  8391  	)
  8392  
  8393  	return
  8394  }
  8395  
  8396  // HasFuncGetRegionFlowRanges returns true if the method "Element.getRegionFlowRanges" exists.
  8397  func (this Element) HasFuncGetRegionFlowRanges() bool {
  8398  	return js.True == bindings.HasFuncElementGetRegionFlowRanges(
  8399  		this.ref,
  8400  	)
  8401  }
  8402  
  8403  // FuncGetRegionFlowRanges returns the method "Element.getRegionFlowRanges".
  8404  func (this Element) FuncGetRegionFlowRanges() (fn js.Func[func() js.Array[Range]]) {
  8405  	bindings.FuncElementGetRegionFlowRanges(
  8406  		this.ref, js.Pointer(&fn),
  8407  	)
  8408  	return
  8409  }
  8410  
  8411  // GetRegionFlowRanges calls the method "Element.getRegionFlowRanges".
  8412  func (this Element) GetRegionFlowRanges() (ret js.Array[Range]) {
  8413  	bindings.CallElementGetRegionFlowRanges(
  8414  		this.ref, js.Pointer(&ret),
  8415  	)
  8416  
  8417  	return
  8418  }
  8419  
  8420  // TryGetRegionFlowRanges calls the method "Element.getRegionFlowRanges"
  8421  // in a try/catch block and returns (_, err, ok = false) when it went through
  8422  // the catch clause.
  8423  func (this Element) TryGetRegionFlowRanges() (ret js.Array[Range], exception js.Any, ok bool) {
  8424  	ok = js.True == bindings.TryElementGetRegionFlowRanges(
  8425  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  8426  	)
  8427  
  8428  	return
  8429  }
  8430  
  8431  type HTMLCollection struct {
  8432  	ref js.Ref
  8433  }
  8434  
  8435  func (this HTMLCollection) Once() HTMLCollection {
  8436  	this.ref.Once()
  8437  	return this
  8438  }
  8439  
  8440  func (this HTMLCollection) Ref() js.Ref {
  8441  	return this.ref
  8442  }
  8443  
  8444  func (this HTMLCollection) FromRef(ref js.Ref) HTMLCollection {
  8445  	this.ref = ref
  8446  	return this
  8447  }
  8448  
  8449  func (this HTMLCollection) Free() {
  8450  	this.ref.Free()
  8451  }
  8452  
  8453  // Length returns the value of property "HTMLCollection.length".
  8454  //
  8455  // It returns ok=false if there is no such property.
  8456  func (this HTMLCollection) Length() (ret uint32, ok bool) {
  8457  	ok = js.True == bindings.GetHTMLCollectionLength(
  8458  		this.ref, js.Pointer(&ret),
  8459  	)
  8460  	return
  8461  }
  8462  
  8463  // HasFuncItem returns true if the method "HTMLCollection.item" exists.
  8464  func (this HTMLCollection) HasFuncItem() bool {
  8465  	return js.True == bindings.HasFuncHTMLCollectionItem(
  8466  		this.ref,
  8467  	)
  8468  }
  8469  
  8470  // FuncItem returns the method "HTMLCollection.item".
  8471  func (this HTMLCollection) FuncItem() (fn js.Func[func(index uint32) Element]) {
  8472  	bindings.FuncHTMLCollectionItem(
  8473  		this.ref, js.Pointer(&fn),
  8474  	)
  8475  	return
  8476  }
  8477  
  8478  // Item calls the method "HTMLCollection.item".
  8479  func (this HTMLCollection) Item(index uint32) (ret Element) {
  8480  	bindings.CallHTMLCollectionItem(
  8481  		this.ref, js.Pointer(&ret),
  8482  		uint32(index),
  8483  	)
  8484  
  8485  	return
  8486  }
  8487  
  8488  // TryItem calls the method "HTMLCollection.item"
  8489  // in a try/catch block and returns (_, err, ok = false) when it went through
  8490  // the catch clause.
  8491  func (this HTMLCollection) TryItem(index uint32) (ret Element, exception js.Any, ok bool) {
  8492  	ok = js.True == bindings.TryHTMLCollectionItem(
  8493  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  8494  		uint32(index),
  8495  	)
  8496  
  8497  	return
  8498  }
  8499  
  8500  // HasFuncNamedItem returns true if the method "HTMLCollection.namedItem" exists.
  8501  func (this HTMLCollection) HasFuncNamedItem() bool {
  8502  	return js.True == bindings.HasFuncHTMLCollectionNamedItem(
  8503  		this.ref,
  8504  	)
  8505  }
  8506  
  8507  // FuncNamedItem returns the method "HTMLCollection.namedItem".
  8508  func (this HTMLCollection) FuncNamedItem() (fn js.Func[func(name js.String) Element]) {
  8509  	bindings.FuncHTMLCollectionNamedItem(
  8510  		this.ref, js.Pointer(&fn),
  8511  	)
  8512  	return
  8513  }
  8514  
  8515  // NamedItem calls the method "HTMLCollection.namedItem".
  8516  func (this HTMLCollection) NamedItem(name js.String) (ret Element) {
  8517  	bindings.CallHTMLCollectionNamedItem(
  8518  		this.ref, js.Pointer(&ret),
  8519  		name.Ref(),
  8520  	)
  8521  
  8522  	return
  8523  }
  8524  
  8525  // TryNamedItem calls the method "HTMLCollection.namedItem"
  8526  // in a try/catch block and returns (_, err, ok = false) when it went through
  8527  // the catch clause.
  8528  func (this HTMLCollection) TryNamedItem(name js.String) (ret Element, exception js.Any, ok bool) {
  8529  	ok = js.True == bindings.TryHTMLCollectionNamedItem(
  8530  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  8531  		name.Ref(),
  8532  	)
  8533  
  8534  	return
  8535  }
  8536  
  8537  type ElementCreationOptions struct {
  8538  	// Is is "ElementCreationOptions.is"
  8539  	//
  8540  	// Optional
  8541  	Is js.String
  8542  
  8543  	FFI_USE bool
  8544  }
  8545  
  8546  // FromRef calls UpdateFrom and returns a ElementCreationOptions with all fields set.
  8547  func (p ElementCreationOptions) FromRef(ref js.Ref) ElementCreationOptions {
  8548  	p.UpdateFrom(ref)
  8549  	return p
  8550  }
  8551  
  8552  // New creates a new ElementCreationOptions in the application heap.
  8553  func (p ElementCreationOptions) New() js.Ref {
  8554  	return bindings.ElementCreationOptionsJSLoad(
  8555  		js.Pointer(&p), js.True, 0,
  8556  	)
  8557  }
  8558  
  8559  // UpdateFrom copies value of all fields of the heap object to p.
  8560  func (p *ElementCreationOptions) UpdateFrom(ref js.Ref) {
  8561  	bindings.ElementCreationOptionsJSStore(
  8562  		js.Pointer(p), ref,
  8563  	)
  8564  }
  8565  
  8566  // Update writes all fields of the p to the heap object referenced by ref.
  8567  func (p *ElementCreationOptions) Update(ref js.Ref) {
  8568  	bindings.ElementCreationOptionsJSLoad(
  8569  		js.Pointer(p), js.False, ref,
  8570  	)
  8571  }
  8572  
  8573  // FreeMembers frees fields with heap reference, if recursive is true
  8574  // free all heap references reachable from p.
  8575  func (p *ElementCreationOptions) FreeMembers(recursive bool) {
  8576  	js.Free(
  8577  		p.Is.Ref(),
  8578  	)
  8579  	p.Is = p.Is.FromRef(js.Undefined)
  8580  }
  8581  
  8582  type OneOf_String_ElementCreationOptions struct {
  8583  	ref js.Ref
  8584  }
  8585  
  8586  func (x OneOf_String_ElementCreationOptions) Ref() js.Ref {
  8587  	return x.ref
  8588  }
  8589  
  8590  func (x OneOf_String_ElementCreationOptions) Free() {
  8591  	x.ref.Free()
  8592  }
  8593  
  8594  func (x OneOf_String_ElementCreationOptions) FromRef(ref js.Ref) OneOf_String_ElementCreationOptions {
  8595  	return OneOf_String_ElementCreationOptions{
  8596  		ref: ref,
  8597  	}
  8598  }
  8599  
  8600  func (x OneOf_String_ElementCreationOptions) String() js.String {
  8601  	return js.String{}.FromRef(x.ref)
  8602  }
  8603  
  8604  func (x OneOf_String_ElementCreationOptions) ElementCreationOptions() ElementCreationOptions {
  8605  	var ret ElementCreationOptions
  8606  	ret.UpdateFrom(x.ref)
  8607  	return ret
  8608  }
  8609  
  8610  func NewCDATASection(data js.String) (ret CDATASection) {
  8611  	ret.ref = bindings.NewCDATASectionByCDATASection(
  8612  		data.Ref())
  8613  	return
  8614  }
  8615  
  8616  func NewCDATASectionByCDATASection1() (ret CDATASection) {
  8617  	ret.ref = bindings.NewCDATASectionByCDATASection1()
  8618  	return
  8619  }
  8620  
  8621  type CDATASection struct {
  8622  	Text
  8623  }
  8624  
  8625  func (this CDATASection) Once() CDATASection {
  8626  	this.ref.Once()
  8627  	return this
  8628  }
  8629  
  8630  func (this CDATASection) Ref() js.Ref {
  8631  	return this.Text.Ref()
  8632  }
  8633  
  8634  func (this CDATASection) FromRef(ref js.Ref) CDATASection {
  8635  	this.Text = this.Text.FromRef(ref)
  8636  	return this
  8637  }
  8638  
  8639  func (this CDATASection) Free() {
  8640  	this.ref.Free()
  8641  }
  8642  
  8643  func NewComment(data js.String) (ret Comment) {
  8644  	ret.ref = bindings.NewCommentByComment(
  8645  		data.Ref())
  8646  	return
  8647  }
  8648  
  8649  func NewCommentByComment1() (ret Comment) {
  8650  	ret.ref = bindings.NewCommentByComment1()
  8651  	return
  8652  }
  8653  
  8654  type Comment struct {
  8655  	CharacterData
  8656  }
  8657  
  8658  func (this Comment) Once() Comment {
  8659  	this.ref.Once()
  8660  	return this
  8661  }
  8662  
  8663  func (this Comment) Ref() js.Ref {
  8664  	return this.CharacterData.Ref()
  8665  }
  8666  
  8667  func (this Comment) FromRef(ref js.Ref) Comment {
  8668  	this.CharacterData = this.CharacterData.FromRef(ref)
  8669  	return this
  8670  }
  8671  
  8672  func (this Comment) Free() {
  8673  	this.ref.Free()
  8674  }
  8675  
  8676  type ProcessingInstruction struct {
  8677  	CharacterData
  8678  }
  8679  
  8680  func (this ProcessingInstruction) Once() ProcessingInstruction {
  8681  	this.ref.Once()
  8682  	return this
  8683  }
  8684  
  8685  func (this ProcessingInstruction) Ref() js.Ref {
  8686  	return this.CharacterData.Ref()
  8687  }
  8688  
  8689  func (this ProcessingInstruction) FromRef(ref js.Ref) ProcessingInstruction {
  8690  	this.CharacterData = this.CharacterData.FromRef(ref)
  8691  	return this
  8692  }
  8693  
  8694  func (this ProcessingInstruction) Free() {
  8695  	this.ref.Free()
  8696  }
  8697  
  8698  // Target returns the value of property "ProcessingInstruction.target".
  8699  //
  8700  // It returns ok=false if there is no such property.
  8701  func (this ProcessingInstruction) Target() (ret js.String, ok bool) {
  8702  	ok = js.True == bindings.GetProcessingInstructionTarget(
  8703  		this.ref, js.Pointer(&ret),
  8704  	)
  8705  	return
  8706  }
  8707  
  8708  // Sheet returns the value of property "ProcessingInstruction.sheet".
  8709  //
  8710  // It returns ok=false if there is no such property.
  8711  func (this ProcessingInstruction) Sheet() (ret CSSStyleSheet, ok bool) {
  8712  	ok = js.True == bindings.GetProcessingInstructionSheet(
  8713  		this.ref, js.Pointer(&ret),
  8714  	)
  8715  	return
  8716  }
  8717  
  8718  type NodeFilterFunc func(this js.Ref, node Node) js.Ref
  8719  
  8720  func (fn NodeFilterFunc) Register() js.Func[func(node Node) uint16] {
  8721  	return js.RegisterCallback[func(node Node) uint16](
  8722  		fn, abi.FuncPCABIInternal(fn),
  8723  	)
  8724  }
  8725  
  8726  func (fn NodeFilterFunc) DispatchCallback(
  8727  	targetPC uintptr, ctx *js.CallbackContext,
  8728  ) {
  8729  	args := ctx.Args()
  8730  	if len(args) != 1+1 /* js this */ ||
  8731  		targetPC != uintptr(abi.FuncPCABIInternal(fn)) {
  8732  		js.ThrowInvalidCallbackInvocation()
  8733  	}
  8734  
  8735  	if ctx.Return(fn(
  8736  		args[0],
  8737  
  8738  		Node{}.FromRef(args[0+1]),
  8739  	)) {
  8740  		return
  8741  	}
  8742  
  8743  	js.ThrowCallbackValueNotReturned()
  8744  }
  8745  
  8746  type NodeFilter[T any] struct {
  8747  	Fn  func(arg T, this js.Ref, node Node) js.Ref
  8748  	Arg T
  8749  }
  8750  
  8751  func (cb *NodeFilter[T]) Register() js.Func[func(node Node) uint16] {
  8752  	return js.RegisterCallback[func(node Node) uint16](
  8753  		cb, abi.FuncPCABIInternal(cb.Fn),
  8754  	)
  8755  }
  8756  
  8757  func (cb *NodeFilter[T]) DispatchCallback(
  8758  	targetPC uintptr, ctx *js.CallbackContext,
  8759  ) {
  8760  	args := ctx.Args()
  8761  	if len(args) != 1+1 /* js this */ ||
  8762  		targetPC != uintptr(abi.FuncPCABIInternal(cb.Fn)) {
  8763  		js.ThrowInvalidCallbackInvocation()
  8764  	}
  8765  
  8766  	if ctx.Return(cb.Fn(
  8767  		cb.Arg,
  8768  		args[0],
  8769  
  8770  		Node{}.FromRef(args[0+1]),
  8771  	)) {
  8772  		return
  8773  	}
  8774  
  8775  	js.ThrowCallbackValueNotReturned()
  8776  }
  8777  
  8778  const (
  8779  	NodeFilter_FILTER_ACCEPT uint16 = 1
  8780  	NodeFilter_FILTER_REJECT uint16 = 2
  8781  	NodeFilter_FILTER_SKIP   uint16 = 3
  8782  )
  8783  
  8784  const (
  8785  	NodeFilter_SHOW_ALL                    uint32 = 0xFFFFFFFF
  8786  	NodeFilter_SHOW_ELEMENT                uint32 = 0x1
  8787  	NodeFilter_SHOW_ATTRIBUTE              uint32 = 0x2
  8788  	NodeFilter_SHOW_TEXT                   uint32 = 0x4
  8789  	NodeFilter_SHOW_CDATA_SECTION          uint32 = 0x8
  8790  	NodeFilter_SHOW_ENTITY_REFERENCE       uint32 = 0x10
  8791  	NodeFilter_SHOW_ENTITY                 uint32 = 0x20
  8792  	NodeFilter_SHOW_PROCESSING_INSTRUCTION uint32 = 0x40
  8793  	NodeFilter_SHOW_COMMENT                uint32 = 0x80
  8794  	NodeFilter_SHOW_DOCUMENT               uint32 = 0x100
  8795  	NodeFilter_SHOW_DOCUMENT_TYPE          uint32 = 0x200
  8796  	NodeFilter_SHOW_DOCUMENT_FRAGMENT      uint32 = 0x400
  8797  	NodeFilter_SHOW_NOTATION               uint32 = 0x800
  8798  )
  8799  
  8800  type NodeIterator struct {
  8801  	ref js.Ref
  8802  }
  8803  
  8804  func (this NodeIterator) Once() NodeIterator {
  8805  	this.ref.Once()
  8806  	return this
  8807  }
  8808  
  8809  func (this NodeIterator) Ref() js.Ref {
  8810  	return this.ref
  8811  }
  8812  
  8813  func (this NodeIterator) FromRef(ref js.Ref) NodeIterator {
  8814  	this.ref = ref
  8815  	return this
  8816  }
  8817  
  8818  func (this NodeIterator) Free() {
  8819  	this.ref.Free()
  8820  }
  8821  
  8822  // Root returns the value of property "NodeIterator.root".
  8823  //
  8824  // It returns ok=false if there is no such property.
  8825  func (this NodeIterator) Root() (ret Node, ok bool) {
  8826  	ok = js.True == bindings.GetNodeIteratorRoot(
  8827  		this.ref, js.Pointer(&ret),
  8828  	)
  8829  	return
  8830  }
  8831  
  8832  // ReferenceNode returns the value of property "NodeIterator.referenceNode".
  8833  //
  8834  // It returns ok=false if there is no such property.
  8835  func (this NodeIterator) ReferenceNode() (ret Node, ok bool) {
  8836  	ok = js.True == bindings.GetNodeIteratorReferenceNode(
  8837  		this.ref, js.Pointer(&ret),
  8838  	)
  8839  	return
  8840  }
  8841  
  8842  // PointerBeforeReferenceNode returns the value of property "NodeIterator.pointerBeforeReferenceNode".
  8843  //
  8844  // It returns ok=false if there is no such property.
  8845  func (this NodeIterator) PointerBeforeReferenceNode() (ret bool, ok bool) {
  8846  	ok = js.True == bindings.GetNodeIteratorPointerBeforeReferenceNode(
  8847  		this.ref, js.Pointer(&ret),
  8848  	)
  8849  	return
  8850  }
  8851  
  8852  // WhatToShow returns the value of property "NodeIterator.whatToShow".
  8853  //
  8854  // It returns ok=false if there is no such property.
  8855  func (this NodeIterator) WhatToShow() (ret uint32, ok bool) {
  8856  	ok = js.True == bindings.GetNodeIteratorWhatToShow(
  8857  		this.ref, js.Pointer(&ret),
  8858  	)
  8859  	return
  8860  }
  8861  
  8862  // Filter returns the value of property "NodeIterator.filter".
  8863  //
  8864  // It returns ok=false if there is no such property.
  8865  func (this NodeIterator) Filter() (ret js.Func[func(node Node) uint16], ok bool) {
  8866  	ok = js.True == bindings.GetNodeIteratorFilter(
  8867  		this.ref, js.Pointer(&ret),
  8868  	)
  8869  	return
  8870  }
  8871  
  8872  // HasFuncNextNode returns true if the method "NodeIterator.nextNode" exists.
  8873  func (this NodeIterator) HasFuncNextNode() bool {
  8874  	return js.True == bindings.HasFuncNodeIteratorNextNode(
  8875  		this.ref,
  8876  	)
  8877  }
  8878  
  8879  // FuncNextNode returns the method "NodeIterator.nextNode".
  8880  func (this NodeIterator) FuncNextNode() (fn js.Func[func() Node]) {
  8881  	bindings.FuncNodeIteratorNextNode(
  8882  		this.ref, js.Pointer(&fn),
  8883  	)
  8884  	return
  8885  }
  8886  
  8887  // NextNode calls the method "NodeIterator.nextNode".
  8888  func (this NodeIterator) NextNode() (ret Node) {
  8889  	bindings.CallNodeIteratorNextNode(
  8890  		this.ref, js.Pointer(&ret),
  8891  	)
  8892  
  8893  	return
  8894  }
  8895  
  8896  // TryNextNode calls the method "NodeIterator.nextNode"
  8897  // in a try/catch block and returns (_, err, ok = false) when it went through
  8898  // the catch clause.
  8899  func (this NodeIterator) TryNextNode() (ret Node, exception js.Any, ok bool) {
  8900  	ok = js.True == bindings.TryNodeIteratorNextNode(
  8901  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  8902  	)
  8903  
  8904  	return
  8905  }
  8906  
  8907  // HasFuncPreviousNode returns true if the method "NodeIterator.previousNode" exists.
  8908  func (this NodeIterator) HasFuncPreviousNode() bool {
  8909  	return js.True == bindings.HasFuncNodeIteratorPreviousNode(
  8910  		this.ref,
  8911  	)
  8912  }
  8913  
  8914  // FuncPreviousNode returns the method "NodeIterator.previousNode".
  8915  func (this NodeIterator) FuncPreviousNode() (fn js.Func[func() Node]) {
  8916  	bindings.FuncNodeIteratorPreviousNode(
  8917  		this.ref, js.Pointer(&fn),
  8918  	)
  8919  	return
  8920  }
  8921  
  8922  // PreviousNode calls the method "NodeIterator.previousNode".
  8923  func (this NodeIterator) PreviousNode() (ret Node) {
  8924  	bindings.CallNodeIteratorPreviousNode(
  8925  		this.ref, js.Pointer(&ret),
  8926  	)
  8927  
  8928  	return
  8929  }
  8930  
  8931  // TryPreviousNode calls the method "NodeIterator.previousNode"
  8932  // in a try/catch block and returns (_, err, ok = false) when it went through
  8933  // the catch clause.
  8934  func (this NodeIterator) TryPreviousNode() (ret Node, exception js.Any, ok bool) {
  8935  	ok = js.True == bindings.TryNodeIteratorPreviousNode(
  8936  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  8937  	)
  8938  
  8939  	return
  8940  }
  8941  
  8942  // HasFuncDetach returns true if the method "NodeIterator.detach" exists.
  8943  func (this NodeIterator) HasFuncDetach() bool {
  8944  	return js.True == bindings.HasFuncNodeIteratorDetach(
  8945  		this.ref,
  8946  	)
  8947  }
  8948  
  8949  // FuncDetach returns the method "NodeIterator.detach".
  8950  func (this NodeIterator) FuncDetach() (fn js.Func[func()]) {
  8951  	bindings.FuncNodeIteratorDetach(
  8952  		this.ref, js.Pointer(&fn),
  8953  	)
  8954  	return
  8955  }
  8956  
  8957  // Detach calls the method "NodeIterator.detach".
  8958  func (this NodeIterator) Detach() (ret js.Void) {
  8959  	bindings.CallNodeIteratorDetach(
  8960  		this.ref, js.Pointer(&ret),
  8961  	)
  8962  
  8963  	return
  8964  }
  8965  
  8966  // TryDetach calls the method "NodeIterator.detach"
  8967  // in a try/catch block and returns (_, err, ok = false) when it went through
  8968  // the catch clause.
  8969  func (this NodeIterator) TryDetach() (ret js.Void, exception js.Any, ok bool) {
  8970  	ok = js.True == bindings.TryNodeIteratorDetach(
  8971  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  8972  	)
  8973  
  8974  	return
  8975  }
  8976  
  8977  type TreeWalker struct {
  8978  	ref js.Ref
  8979  }
  8980  
  8981  func (this TreeWalker) Once() TreeWalker {
  8982  	this.ref.Once()
  8983  	return this
  8984  }
  8985  
  8986  func (this TreeWalker) Ref() js.Ref {
  8987  	return this.ref
  8988  }
  8989  
  8990  func (this TreeWalker) FromRef(ref js.Ref) TreeWalker {
  8991  	this.ref = ref
  8992  	return this
  8993  }
  8994  
  8995  func (this TreeWalker) Free() {
  8996  	this.ref.Free()
  8997  }
  8998  
  8999  // Root returns the value of property "TreeWalker.root".
  9000  //
  9001  // It returns ok=false if there is no such property.
  9002  func (this TreeWalker) Root() (ret Node, ok bool) {
  9003  	ok = js.True == bindings.GetTreeWalkerRoot(
  9004  		this.ref, js.Pointer(&ret),
  9005  	)
  9006  	return
  9007  }
  9008  
  9009  // WhatToShow returns the value of property "TreeWalker.whatToShow".
  9010  //
  9011  // It returns ok=false if there is no such property.
  9012  func (this TreeWalker) WhatToShow() (ret uint32, ok bool) {
  9013  	ok = js.True == bindings.GetTreeWalkerWhatToShow(
  9014  		this.ref, js.Pointer(&ret),
  9015  	)
  9016  	return
  9017  }
  9018  
  9019  // Filter returns the value of property "TreeWalker.filter".
  9020  //
  9021  // It returns ok=false if there is no such property.
  9022  func (this TreeWalker) Filter() (ret js.Func[func(node Node) uint16], ok bool) {
  9023  	ok = js.True == bindings.GetTreeWalkerFilter(
  9024  		this.ref, js.Pointer(&ret),
  9025  	)
  9026  	return
  9027  }
  9028  
  9029  // CurrentNode returns the value of property "TreeWalker.currentNode".
  9030  //
  9031  // It returns ok=false if there is no such property.
  9032  func (this TreeWalker) CurrentNode() (ret Node, ok bool) {
  9033  	ok = js.True == bindings.GetTreeWalkerCurrentNode(
  9034  		this.ref, js.Pointer(&ret),
  9035  	)
  9036  	return
  9037  }
  9038  
  9039  // SetCurrentNode sets the value of property "TreeWalker.currentNode" to val.
  9040  //
  9041  // It returns false if the property cannot be set.
  9042  func (this TreeWalker) SetCurrentNode(val Node) bool {
  9043  	return js.True == bindings.SetTreeWalkerCurrentNode(
  9044  		this.ref,
  9045  		val.Ref(),
  9046  	)
  9047  }
  9048  
  9049  // HasFuncParentNode returns true if the method "TreeWalker.parentNode" exists.
  9050  func (this TreeWalker) HasFuncParentNode() bool {
  9051  	return js.True == bindings.HasFuncTreeWalkerParentNode(
  9052  		this.ref,
  9053  	)
  9054  }
  9055  
  9056  // FuncParentNode returns the method "TreeWalker.parentNode".
  9057  func (this TreeWalker) FuncParentNode() (fn js.Func[func() Node]) {
  9058  	bindings.FuncTreeWalkerParentNode(
  9059  		this.ref, js.Pointer(&fn),
  9060  	)
  9061  	return
  9062  }
  9063  
  9064  // ParentNode calls the method "TreeWalker.parentNode".
  9065  func (this TreeWalker) ParentNode() (ret Node) {
  9066  	bindings.CallTreeWalkerParentNode(
  9067  		this.ref, js.Pointer(&ret),
  9068  	)
  9069  
  9070  	return
  9071  }
  9072  
  9073  // TryParentNode calls the method "TreeWalker.parentNode"
  9074  // in a try/catch block and returns (_, err, ok = false) when it went through
  9075  // the catch clause.
  9076  func (this TreeWalker) TryParentNode() (ret Node, exception js.Any, ok bool) {
  9077  	ok = js.True == bindings.TryTreeWalkerParentNode(
  9078  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  9079  	)
  9080  
  9081  	return
  9082  }
  9083  
  9084  // HasFuncFirstChild returns true if the method "TreeWalker.firstChild" exists.
  9085  func (this TreeWalker) HasFuncFirstChild() bool {
  9086  	return js.True == bindings.HasFuncTreeWalkerFirstChild(
  9087  		this.ref,
  9088  	)
  9089  }
  9090  
  9091  // FuncFirstChild returns the method "TreeWalker.firstChild".
  9092  func (this TreeWalker) FuncFirstChild() (fn js.Func[func() Node]) {
  9093  	bindings.FuncTreeWalkerFirstChild(
  9094  		this.ref, js.Pointer(&fn),
  9095  	)
  9096  	return
  9097  }
  9098  
  9099  // FirstChild calls the method "TreeWalker.firstChild".
  9100  func (this TreeWalker) FirstChild() (ret Node) {
  9101  	bindings.CallTreeWalkerFirstChild(
  9102  		this.ref, js.Pointer(&ret),
  9103  	)
  9104  
  9105  	return
  9106  }
  9107  
  9108  // TryFirstChild calls the method "TreeWalker.firstChild"
  9109  // in a try/catch block and returns (_, err, ok = false) when it went through
  9110  // the catch clause.
  9111  func (this TreeWalker) TryFirstChild() (ret Node, exception js.Any, ok bool) {
  9112  	ok = js.True == bindings.TryTreeWalkerFirstChild(
  9113  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  9114  	)
  9115  
  9116  	return
  9117  }
  9118  
  9119  // HasFuncLastChild returns true if the method "TreeWalker.lastChild" exists.
  9120  func (this TreeWalker) HasFuncLastChild() bool {
  9121  	return js.True == bindings.HasFuncTreeWalkerLastChild(
  9122  		this.ref,
  9123  	)
  9124  }
  9125  
  9126  // FuncLastChild returns the method "TreeWalker.lastChild".
  9127  func (this TreeWalker) FuncLastChild() (fn js.Func[func() Node]) {
  9128  	bindings.FuncTreeWalkerLastChild(
  9129  		this.ref, js.Pointer(&fn),
  9130  	)
  9131  	return
  9132  }
  9133  
  9134  // LastChild calls the method "TreeWalker.lastChild".
  9135  func (this TreeWalker) LastChild() (ret Node) {
  9136  	bindings.CallTreeWalkerLastChild(
  9137  		this.ref, js.Pointer(&ret),
  9138  	)
  9139  
  9140  	return
  9141  }
  9142  
  9143  // TryLastChild calls the method "TreeWalker.lastChild"
  9144  // in a try/catch block and returns (_, err, ok = false) when it went through
  9145  // the catch clause.
  9146  func (this TreeWalker) TryLastChild() (ret Node, exception js.Any, ok bool) {
  9147  	ok = js.True == bindings.TryTreeWalkerLastChild(
  9148  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  9149  	)
  9150  
  9151  	return
  9152  }
  9153  
  9154  // HasFuncPreviousSibling returns true if the method "TreeWalker.previousSibling" exists.
  9155  func (this TreeWalker) HasFuncPreviousSibling() bool {
  9156  	return js.True == bindings.HasFuncTreeWalkerPreviousSibling(
  9157  		this.ref,
  9158  	)
  9159  }
  9160  
  9161  // FuncPreviousSibling returns the method "TreeWalker.previousSibling".
  9162  func (this TreeWalker) FuncPreviousSibling() (fn js.Func[func() Node]) {
  9163  	bindings.FuncTreeWalkerPreviousSibling(
  9164  		this.ref, js.Pointer(&fn),
  9165  	)
  9166  	return
  9167  }
  9168  
  9169  // PreviousSibling calls the method "TreeWalker.previousSibling".
  9170  func (this TreeWalker) PreviousSibling() (ret Node) {
  9171  	bindings.CallTreeWalkerPreviousSibling(
  9172  		this.ref, js.Pointer(&ret),
  9173  	)
  9174  
  9175  	return
  9176  }
  9177  
  9178  // TryPreviousSibling calls the method "TreeWalker.previousSibling"
  9179  // in a try/catch block and returns (_, err, ok = false) when it went through
  9180  // the catch clause.
  9181  func (this TreeWalker) TryPreviousSibling() (ret Node, exception js.Any, ok bool) {
  9182  	ok = js.True == bindings.TryTreeWalkerPreviousSibling(
  9183  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  9184  	)
  9185  
  9186  	return
  9187  }
  9188  
  9189  // HasFuncNextSibling returns true if the method "TreeWalker.nextSibling" exists.
  9190  func (this TreeWalker) HasFuncNextSibling() bool {
  9191  	return js.True == bindings.HasFuncTreeWalkerNextSibling(
  9192  		this.ref,
  9193  	)
  9194  }
  9195  
  9196  // FuncNextSibling returns the method "TreeWalker.nextSibling".
  9197  func (this TreeWalker) FuncNextSibling() (fn js.Func[func() Node]) {
  9198  	bindings.FuncTreeWalkerNextSibling(
  9199  		this.ref, js.Pointer(&fn),
  9200  	)
  9201  	return
  9202  }
  9203  
  9204  // NextSibling calls the method "TreeWalker.nextSibling".
  9205  func (this TreeWalker) NextSibling() (ret Node) {
  9206  	bindings.CallTreeWalkerNextSibling(
  9207  		this.ref, js.Pointer(&ret),
  9208  	)
  9209  
  9210  	return
  9211  }
  9212  
  9213  // TryNextSibling calls the method "TreeWalker.nextSibling"
  9214  // in a try/catch block and returns (_, err, ok = false) when it went through
  9215  // the catch clause.
  9216  func (this TreeWalker) TryNextSibling() (ret Node, exception js.Any, ok bool) {
  9217  	ok = js.True == bindings.TryTreeWalkerNextSibling(
  9218  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  9219  	)
  9220  
  9221  	return
  9222  }
  9223  
  9224  // HasFuncPreviousNode returns true if the method "TreeWalker.previousNode" exists.
  9225  func (this TreeWalker) HasFuncPreviousNode() bool {
  9226  	return js.True == bindings.HasFuncTreeWalkerPreviousNode(
  9227  		this.ref,
  9228  	)
  9229  }
  9230  
  9231  // FuncPreviousNode returns the method "TreeWalker.previousNode".
  9232  func (this TreeWalker) FuncPreviousNode() (fn js.Func[func() Node]) {
  9233  	bindings.FuncTreeWalkerPreviousNode(
  9234  		this.ref, js.Pointer(&fn),
  9235  	)
  9236  	return
  9237  }
  9238  
  9239  // PreviousNode calls the method "TreeWalker.previousNode".
  9240  func (this TreeWalker) PreviousNode() (ret Node) {
  9241  	bindings.CallTreeWalkerPreviousNode(
  9242  		this.ref, js.Pointer(&ret),
  9243  	)
  9244  
  9245  	return
  9246  }
  9247  
  9248  // TryPreviousNode calls the method "TreeWalker.previousNode"
  9249  // in a try/catch block and returns (_, err, ok = false) when it went through
  9250  // the catch clause.
  9251  func (this TreeWalker) TryPreviousNode() (ret Node, exception js.Any, ok bool) {
  9252  	ok = js.True == bindings.TryTreeWalkerPreviousNode(
  9253  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  9254  	)
  9255  
  9256  	return
  9257  }
  9258  
  9259  // HasFuncNextNode returns true if the method "TreeWalker.nextNode" exists.
  9260  func (this TreeWalker) HasFuncNextNode() bool {
  9261  	return js.True == bindings.HasFuncTreeWalkerNextNode(
  9262  		this.ref,
  9263  	)
  9264  }
  9265  
  9266  // FuncNextNode returns the method "TreeWalker.nextNode".
  9267  func (this TreeWalker) FuncNextNode() (fn js.Func[func() Node]) {
  9268  	bindings.FuncTreeWalkerNextNode(
  9269  		this.ref, js.Pointer(&fn),
  9270  	)
  9271  	return
  9272  }
  9273  
  9274  // NextNode calls the method "TreeWalker.nextNode".
  9275  func (this TreeWalker) NextNode() (ret Node) {
  9276  	bindings.CallTreeWalkerNextNode(
  9277  		this.ref, js.Pointer(&ret),
  9278  	)
  9279  
  9280  	return
  9281  }
  9282  
  9283  // TryNextNode calls the method "TreeWalker.nextNode"
  9284  // in a try/catch block and returns (_, err, ok = false) when it went through
  9285  // the catch clause.
  9286  func (this TreeWalker) TryNextNode() (ret Node, exception js.Any, ok bool) {
  9287  	ok = js.True == bindings.TryTreeWalkerNextNode(
  9288  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  9289  	)
  9290  
  9291  	return
  9292  }
  9293  
  9294  type ViewTransition struct {
  9295  	ref js.Ref
  9296  }
  9297  
  9298  func (this ViewTransition) Once() ViewTransition {
  9299  	this.ref.Once()
  9300  	return this
  9301  }
  9302  
  9303  func (this ViewTransition) Ref() js.Ref {
  9304  	return this.ref
  9305  }
  9306  
  9307  func (this ViewTransition) FromRef(ref js.Ref) ViewTransition {
  9308  	this.ref = ref
  9309  	return this
  9310  }
  9311  
  9312  func (this ViewTransition) Free() {
  9313  	this.ref.Free()
  9314  }
  9315  
  9316  // UpdateCallbackDone returns the value of property "ViewTransition.updateCallbackDone".
  9317  //
  9318  // It returns ok=false if there is no such property.
  9319  func (this ViewTransition) UpdateCallbackDone() (ret js.Promise[js.Void], ok bool) {
  9320  	ok = js.True == bindings.GetViewTransitionUpdateCallbackDone(
  9321  		this.ref, js.Pointer(&ret),
  9322  	)
  9323  	return
  9324  }
  9325  
  9326  // Ready returns the value of property "ViewTransition.ready".
  9327  //
  9328  // It returns ok=false if there is no such property.
  9329  func (this ViewTransition) Ready() (ret js.Promise[js.Void], ok bool) {
  9330  	ok = js.True == bindings.GetViewTransitionReady(
  9331  		this.ref, js.Pointer(&ret),
  9332  	)
  9333  	return
  9334  }
  9335  
  9336  // Finished returns the value of property "ViewTransition.finished".
  9337  //
  9338  // It returns ok=false if there is no such property.
  9339  func (this ViewTransition) Finished() (ret js.Promise[js.Void], ok bool) {
  9340  	ok = js.True == bindings.GetViewTransitionFinished(
  9341  		this.ref, js.Pointer(&ret),
  9342  	)
  9343  	return
  9344  }
  9345  
  9346  // HasFuncSkipTransition returns true if the method "ViewTransition.skipTransition" exists.
  9347  func (this ViewTransition) HasFuncSkipTransition() bool {
  9348  	return js.True == bindings.HasFuncViewTransitionSkipTransition(
  9349  		this.ref,
  9350  	)
  9351  }
  9352  
  9353  // FuncSkipTransition returns the method "ViewTransition.skipTransition".
  9354  func (this ViewTransition) FuncSkipTransition() (fn js.Func[func()]) {
  9355  	bindings.FuncViewTransitionSkipTransition(
  9356  		this.ref, js.Pointer(&fn),
  9357  	)
  9358  	return
  9359  }
  9360  
  9361  // SkipTransition calls the method "ViewTransition.skipTransition".
  9362  func (this ViewTransition) SkipTransition() (ret js.Void) {
  9363  	bindings.CallViewTransitionSkipTransition(
  9364  		this.ref, js.Pointer(&ret),
  9365  	)
  9366  
  9367  	return
  9368  }
  9369  
  9370  // TrySkipTransition calls the method "ViewTransition.skipTransition"
  9371  // in a try/catch block and returns (_, err, ok = false) when it went through
  9372  // the catch clause.
  9373  func (this ViewTransition) TrySkipTransition() (ret js.Void, exception js.Any, ok bool) {
  9374  	ok = js.True == bindings.TryViewTransitionSkipTransition(
  9375  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  9376  	)
  9377  
  9378  	return
  9379  }
  9380  
  9381  type UpdateCallbackFunc func(this js.Ref) js.Ref
  9382  
  9383  func (fn UpdateCallbackFunc) Register() js.Func[func() js.Promise[js.Any]] {
  9384  	return js.RegisterCallback[func() js.Promise[js.Any]](
  9385  		fn, abi.FuncPCABIInternal(fn),
  9386  	)
  9387  }
  9388  
  9389  func (fn UpdateCallbackFunc) DispatchCallback(
  9390  	targetPC uintptr, ctx *js.CallbackContext,
  9391  ) {
  9392  	args := ctx.Args()
  9393  	if len(args) != 0+1 /* js this */ ||
  9394  		targetPC != uintptr(abi.FuncPCABIInternal(fn)) {
  9395  		js.ThrowInvalidCallbackInvocation()
  9396  	}
  9397  
  9398  	if ctx.Return(fn(
  9399  		args[0],
  9400  	)) {
  9401  		return
  9402  	}
  9403  
  9404  	js.ThrowCallbackValueNotReturned()
  9405  }
  9406  
  9407  type UpdateCallback[T any] struct {
  9408  	Fn  func(arg T, this js.Ref) js.Ref
  9409  	Arg T
  9410  }
  9411  
  9412  func (cb *UpdateCallback[T]) Register() js.Func[func() js.Promise[js.Any]] {
  9413  	return js.RegisterCallback[func() js.Promise[js.Any]](
  9414  		cb, abi.FuncPCABIInternal(cb.Fn),
  9415  	)
  9416  }
  9417  
  9418  func (cb *UpdateCallback[T]) DispatchCallback(
  9419  	targetPC uintptr, ctx *js.CallbackContext,
  9420  ) {
  9421  	args := ctx.Args()
  9422  	if len(args) != 0+1 /* js this */ ||
  9423  		targetPC != uintptr(abi.FuncPCABIInternal(cb.Fn)) {
  9424  		js.ThrowInvalidCallbackInvocation()
  9425  	}
  9426  
  9427  	if ctx.Return(cb.Fn(
  9428  		cb.Arg,
  9429  		args[0],
  9430  	)) {
  9431  		return
  9432  	}
  9433  
  9434  	js.ThrowCallbackValueNotReturned()
  9435  }