|
XenevaOS
|
#include "dom.h"#include <stdlib.h>#include <string.h>#include <stdio.h>#include <stdbool.h>#include <_xeneva.h>#include <dom/dom.h>#include "../../Ports/CssLibs/libdom/bindings/hubbub/parser.h"
Functions | |
| NsCssNode * | NsDomParse (const char *html, size_t len) |
| const char * | NsDomAttr (NsCssNode *n, const char *name) |
| int | NsDomIsText (NsCssNode *n) |
| const char * | NsDomTag (NsCssNode *n) |
| const char * NsDomAttr | ( | NsCssNode * | n, |
| const char * | name | ||
| ) |
| int NsDomIsText | ( | NsCssNode * | n | ) |
DOM parsing for the XenevaOS NetSurf renderer.
libhubbub builds a real HTML5 tree in libdom (implied html/head/body, entity expansion, foster parenting, malformed-tag recovery). We copy that tree into NsCssNode so the existing libcss select client can run over attributes, classes, siblings and text nodes.
| const char * NsDomTag | ( | NsCssNode * | n | ) |