HtmlNode Module
Functions and values
Function or value | Description |
Full Usage:
attribute name n
Parameters:
string
-
The name of the attribute to select
n : HtmlNode
-
The given node
Returns: HtmlAttribute
Modifiers: inline |
|
Full Usage:
attributeValue name n
Parameters:
string
-
The name of the attribute to get the value from
n : HtmlNode
-
The given node
Returns: string
Modifiers: inline |
|
|
|
|
|
|
|
|
|
|
|
Full Usage:
descendantsAndSelfNamedWithPath recurseOnMatch names n
Parameters:
bool
-
If a match is found continues down the tree matching child elements
names : string seq
-
The set of names to match
n : HtmlNode
-
The given node
Returns: (HtmlNode * HtmlNode list) seq
Modifiers: inline |
|
Full Usage:
descendantsAndSelfWithPath recurseOnMatch predicate n
Parameters:
bool
-
If a match is found continues down the tree matching child elements
predicate : HtmlNode -> bool
-
The predicate by which to match the nodes to return
n : HtmlNode
-
The given node
Returns: (HtmlNode * HtmlNode list) seq
|
|
|
|
|
|
Full Usage:
descendantsWithPath recurseOnMatch predicate n
Parameters:
bool
-
If a match is found continues down the tree matching child elements
predicate : HtmlNode -> bool
-
The predicate by which to match the nodes to return
n : HtmlNode
-
The given node
Returns: (HtmlNode * HtmlNode list) seq
|
|
|
|
|
|
|
|
Full Usage:
hasAttribute name value n
Parameters:
string
-
The name of the attribute
value : string
-
The value of the attribute
n : HtmlNode
-
The given html node
Returns: bool
Modifiers: inline |
|
Full Usage:
hasClass cssClass n
Parameters:
string
n : HtmlNode
Returns: bool
Modifiers: inline |
|
|
|
Full Usage:
hasName expectedName n
Parameters:
string
n : HtmlNode
Returns: bool
Modifiers: inline |
|
|
|
Full Usage:
innerTextExcluding exclusions n
Parameters:
string list
n : HtmlNode
Returns: string
|
|
Full Usage:
tryGetAttribute name n
Parameters:
string
-
The name of the attribute to return.
n : HtmlNode
-
The given node
Returns: HtmlAttribute option
Modifiers: inline |
|