XenevaOS
Loading...
Searching...
No Matches
Functions
dom.h File Reference
#include <stddef.h>
#include "css.h"
Include dependency graph for dom.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

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)
 

Function Documentation

◆ NsDomAttr()

const char * NsDomAttr ( NsCssNode *  n,
const char *  name 
)

◆ NsDomIsText()

int NsDomIsText ( NsCssNode *  n)

◆ NsDomParse()

NsCssNode * NsDomParse ( const char *  html,
size_t  len 
)

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.

◆ NsDomTag()

const char * NsDomTag ( NsCssNode *  n)