1
0
mirror of https://github.com/MontFerret/ferret.git synced 2024-12-14 11:23:02 +02:00
ferret/pkg/runtime/values/html.go
Tim Voronov 42757a2a5a
Feature/#105 elements count (#109)
* #105 Added ELEMENTS_COUNT function

* Some minor updates

* Invalid return type
2018-10-12 21:52:27 -04:00

50 lines
764 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
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
}
)