XenevaOS
Loading...
Searching...
No Matches
dom.h
Go to the documentation of this file.
1
10#ifndef NS_DOM_H
11#define NS_DOM_H
12
13#include <stddef.h>
14#include "css.h"
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
20/* Parse an HTML document and return the <html> subtree. Styles are
21 * selected as the tree is built, so the caller must have called
22 * NsCssBegin()/NsCssAddSheet() first. Returns NULL on failure. */
23NsCssNode* NsDomParse(const char* html, size_t len);
24
25/* Convenience helpers used by the layout engine. */
26const char* NsDomAttr(NsCssNode* n, const char* name);
28const char* NsDomTag(NsCssNode* n);
29
30#ifdef __cplusplus
31}
32#endif
33
34#endif
const char * NsDomTag(NsCssNode *n)
Definition dom.c:281
const char * NsDomAttr(NsCssNode *n, const char *name)
Definition dom.c:273
int NsDomIsText(NsCssNode *n)
Definition dom.c:277
NsCssNode * NsDomParse(const char *html, size_t len)
Definition dom.c:231
struct drm_crtc struct drm_plane struct drm_plane const struct drm_crtc_funcs const char * name
Definition drm_crtc.h:1242
size_t len
Definition initial.c:23
Definition css.h:37