-
-
Notifications
You must be signed in to change notification settings - Fork 299
/
html.go
49 lines (28 loc) · 764 Bytes
/
html.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package values
import "github.com/MontFerret/ferret/pkg/runtime/core"
type (
HTMLNode interface {
core.Value
NodeType() Int
NodeName() String
Length() Int
InnerText() String
InnerHTML() String
Value() core.Value
GetAttributes() core.Value
GetAttribute(name String) core.Value
GetChildNodes() core.Value
GetChildNode(idx Int) core.Value
QuerySelector(selector String) core.Value
QuerySelectorAll(selector String) core.Value
InnerHTMLBySelector(selector String) String
InnerHTMLBySelectorAll(selector String) *Array
InnerTextBySelector(selector String) String
InnerTextBySelectorAll(selector String) *Array
CountBySelector(selector String) Int
}
HTMLDocument interface {
HTMLNode
URL() core.Value
}
)