mirror of
https://github.com/MontFerret/ferret.git
synced 2024-12-16 11:37:36 +02:00
e64ad4ec0e
* #33 Lib cleanup. Added WAIT_CLASS and WAIT_CLASS_ALL functions * #33 Fixed attr update * #33 HTMLElement.WaitForClass * #33 Updated HTMLDocument.WaitForClass
48 lines
724 B
Go
48 lines
724 B
Go
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
|
|
}
|
|
|
|
HTMLDocument interface {
|
|
HTMLNode
|
|
|
|
URL() core.Value
|
|
|
|
InnerHTMLBySelector(selector String) String
|
|
|
|
InnerHTMLBySelectorAll(selector String) *Array
|
|
|
|
InnerTextBySelector(selector String) String
|
|
|
|
InnerTextBySelectorAll(selector String) *Array
|
|
}
|
|
)
|