package cascade
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=3315f94068943b3655bf530c1d82b68655524ff3601efedfbaf0a7f886fbf5a1
sha512=0f187c8e17fcbddaa0ad2760930956451062e476b678e1e60daf6ad9e7414fad99a2d70534dfdf8bca0a1092e374d009051f06b0ce9da33f2742cdde0187e75c
doc/cascade.html/Cascade_html/Html_node/index.html
Module Cascade_html.Html_nodeSource
An Html element as a Cascade.Resolve.NODE, so the library can match selectors and resolve the cascade against a parsed page.
include Cascade.Resolve.NODE with type t = Html.element
The element name (e.g. "div"), or None for an anonymous node. A name is read ASCII case-insensitively, against a type selector and between two siblings alike, so an anonymous node is of the same type as another anonymous node and of no named one.
attribute t name is the value of attribute name, or None.
The data of the node's direct child text nodes, in document order, and [] for an element that holds none. Only text counts: a comment or a processing instruction is not a text node and must not be reported here, since neither affects whether the element is :empty (selectors-4 sec. 13.2). A backend that answers [] for an element that does hold text makes that element match :empty.