Header menu logo FSharp.Data

HtmlNode Module

Functions and values

Function or value Description

attribute name n

Full Usage: attribute name n

Parameters:
    name : string - The name of the attribute to select
    n : HtmlNode - The given node

Returns: HtmlAttribute
Modifiers: inline

Returns the attribute with the given name. If the attribute does not exist then this will throw an exception

name : string

The name of the attribute to select

n : HtmlNode

The given node

Returns: HtmlAttribute

attributeValue name n

Full Usage: attributeValue name n

Parameters:
    name : string - The name of the attribute to get the value from
    n : HtmlNode - The given node

Returns: string
Modifiers: inline

Return the value of the named attribute, or an empty string if not found.

name : string

The name of the attribute to get the value from

n : HtmlNode

The given node

Returns: string

attributes n

Full Usage: attributes n

Parameters:
Returns: HtmlAttribute list

Gets all of the attributes of this node

n : HtmlNode
Returns: HtmlAttribute list

cssSelect node selector

Full Usage: cssSelect node selector

Parameters:
Returns: HtmlNode list

Gets descendants matched by Css selector

node : HtmlNode
selector : string
Returns: HtmlNode list

descendants recurseOnMatch predicate n

Full Usage: descendants recurseOnMatch predicate n

Parameters:
    recurseOnMatch : 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 seq

Gets all of the descendants of this node that statisfy the given predicate

recurseOnMatch : 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 seq

descendantsAndSelf recurseOnMatch predicate n

Full Usage: descendantsAndSelf recurseOnMatch predicate n

Parameters:
    recurseOnMatch : 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 seq

Gets all of the descendants of this node that statisfy the given predicate The current node is also considered in the comparison

recurseOnMatch : 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 seq

descendantsAndSelfNamed recurseOnMatch names n

Full Usage: descendantsAndSelfNamed recurseOnMatch names n

Parameters:
    recurseOnMatch : 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 seq
Modifiers: inline

Finds all of the descendant nodes of this nodes that match the given set of names The current node is also considered in the comparison

recurseOnMatch : 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 seq

descendantsAndSelfNamedWithPath recurseOnMatch names n

Full Usage: descendantsAndSelfNamedWithPath recurseOnMatch names n

Parameters:
    recurseOnMatch : 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

Finds all of the descendant nodes of this nodes that match the given set of names The current node is also considered in the comparison

recurseOnMatch : 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

descendantsAndSelfWithPath recurseOnMatch predicate n

Full Usage: descendantsAndSelfWithPath recurseOnMatch predicate n

Parameters:
    recurseOnMatch : 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

Gets all of the descendants of this node that statisfy the given predicate The current node is also considered in the comparison

recurseOnMatch : 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

descendantsNamed recurseOnMatch names n

Full Usage: descendantsNamed recurseOnMatch names n

Parameters:
    recurseOnMatch : 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 seq
Modifiers: inline

Finds all of the descendant nodes of this nodes that match the given set of names

recurseOnMatch : 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 seq

descendantsNamedWithPath recurseOnMatch names n

Full Usage: descendantsNamedWithPath recurseOnMatch names n

Parameters:
    recurseOnMatch : 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

Finds all of the descendant nodes of this nodes that match the given set of names

recurseOnMatch : 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

descendantsWithPath recurseOnMatch predicate n

Full Usage: descendantsWithPath recurseOnMatch predicate n

Parameters:
    recurseOnMatch : 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

Gets all of the descendants of this node that statisfy the given predicate

recurseOnMatch : 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

directInnerText n

Full Usage: directInnerText n

Parameters:
Returns: string

Returns the direct inner text of the current node

n : HtmlNode

The given node

Returns: string

elements n

Full Usage: elements n

Parameters:
Returns: HtmlNode list

Gets all of the nodes immediately under this node

n : HtmlNode
Returns: HtmlNode list

elementsNamed names n

Full Usage: elementsNamed names n

Parameters:
    names : string seq - The set of names to match
    n : HtmlNode - The given node

Returns: HtmlNode list
Modifiers: inline

Finds all of the elements nodes of this node that match the given set of names

names : string seq

The set of names to match

n : HtmlNode

The given node

Returns: HtmlNode list

hasAttribute name value n

Full Usage: hasAttribute name value n

Parameters:
    name : string - The name of the attribute
    value : string - The value of the attribute
    n : HtmlNode - The given html node

Returns: bool
Modifiers: inline

Returns true if the current node has an attribute that matches both the name and the value

name : string

The name of the attribute

value : string

The value of the attribute

n : HtmlNode

The given html node

Returns: bool

hasClass cssClass n

Full Usage: hasClass cssClass n

Parameters:
Returns: bool
Modifiers: inline

Returns true if the current node has the specified class

cssClass : string
n : HtmlNode
Returns: bool

hasId id n

Full Usage: hasId id n

Parameters:
Returns: bool
Modifiers: inline

Returns true if the current node has the specified id

id : string
n : HtmlNode
Returns: bool

hasName expectedName n

Full Usage: hasName expectedName n

Parameters:
Returns: bool
Modifiers: inline

Returns true if the current node has the specified name

expectedName : string
n : HtmlNode
Returns: bool

innerText n

Full Usage: innerText n

Parameters:
Returns: string
Modifiers: inline

Returns the inner text of the current node

n : HtmlNode

The given node

Returns: string

innerTextExcluding exclusions n

Full Usage: innerTextExcluding exclusions n

Parameters:
Returns: string
exclusions : string list
n : HtmlNode
Returns: string

name n

Full Usage: name n

Parameters:
Returns: string

Gets the given nodes name

n : HtmlNode
Returns: string

tryGetAttribute name n

Full Usage: tryGetAttribute name n

Parameters:
    name : string - The name of the attribute to return.
    n : HtmlNode - The given node

Returns: HtmlAttribute option
Modifiers: inline

Tries to return an attribute that exists on the current node

name : string

The name of the attribute to return.

n : HtmlNode

The given node

Returns: HtmlAttribute option

Type something to start searching.