We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent effaeed commit 8a5cbb5Copy full SHA for 8a5cbb5
dom/node_list.go
@@ -5,7 +5,11 @@ import "github.com/gost-dom/browser/internal/entity"
5
type NodeList interface {
6
entity.ObjectIder
7
Length() int
8
+
9
+ // Item returns the node with the specified zero-based index. If the index
10
+ // is out of range, the function returns nil.
11
Item(index int) Node
12
13
All() []Node
14
setNodes([]Node)
15
append(Node)
@@ -16,10 +20,6 @@ type nodeList struct {
16
20
nodes []Node
17
21
}
18
22
19
-type staticNodeSource []Node
-
-func (s staticNodeSource) ChildNodes() []Node { return s }
23
func (l *nodeList) Length() int { return len(l.nodes) }
24
25
func (l *nodeList) Item(index int) Node {
0 commit comments