php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
error.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2018 Alexander Borisov
3 *
4 * Author: Alexander Borisov <borisov@lexbor.com>
5 */
6
7#ifndef LEXBOR_HTML_TREE_ERROR_H
8#define LEXBOR_HTML_TREE_ERROR_H
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14#include "lexbor/core/base.h"
16
17#include "lexbor/html/token.h"
18
19
20typedef enum {
21 /* unexpected-token */
23 /* unexpected-closed-token */
25 /* null-character */
27 /* unexpected-character-token */
29 /* unexpected-token-in-initial-mode */
31 /* bad-doctype-token-in-initial-mode */
33 /* doctype-token-in-before-html-mode */
35 /* unexpected-closed-token-in-before-html-mode */
37 /* doctype-token-in-before-head-mode */
39 /* unexpected-closed_token-in-before-head-mode */
41 /* doctype-token-in-head-mode */
43 /* non-void-html-element-start-tag-with-trailing-solidus */
45 /* head-token-in-head-mode */
47 /* unexpected-closed-token-in-head-mode */
49 /* template-closed-token-without-opening-in-head-mode */
51 /* template-element-is-not-current-in-head-mode */
53 /* doctype-token-in-head-noscript-mode */
55 /* doctype-token-after-head-mode */
57 /* head-token-after-head-mode */
59 /* doctype-token-in-body-mode */
61 /* bad-ending-open-elements-is-wrong */
63 /* open-elements-is-wrong */
65 /* unexpected-element-in-open-elements-stack */
67 /* missing-element-in-open-elements-stack */
69 /* no-body-element-in-scope */
71 /* missing-element-in-scope */
73 /* unexpected-element-in-scope */
75 /* unexpected-element-in-active-formatting-stack */
77 /* unexpected-end-of-file */
79 /* characters-in-table-text */
81 /* doctype-token-in-table-mode */
83 /* doctype-token-in-select-mode */
85 /* doctype-token-after-body-mode */
87 /* doctype-token-in-frameset-mode */
89 /* doctype-token-after-frameset-mode */
91 /* doctype-token-foreign-content-mode */
93
95}
97
98typedef struct {
100 size_t line;
101 size_t column;
102 size_t length;
103}
105
106
110
111
112#ifdef __cplusplus
113} /* extern "C" */
114#endif
115
116#endif /* LEXBOR_HTML_TREE_ERROR_H */
117
#define LXB_API
Definition def.h:48
LXB_API lxb_html_tree_error_t * lxb_html_tree_error_add(lexbor_array_obj_t *parse_errors, lxb_html_token_t *token, lxb_html_tree_error_id_t id)
Definition error.c:11
lxb_html_tree_error_id_t
Definition error.h:20
@ LXB_HTML_RULES_ERROR_DOTOAFHEMO
Definition error.h:56
@ LXB_HTML_RULES_ERROR_TECLTOWIOPINHEMO
Definition error.h:50
@ LXB_HTML_RULES_ERROR_NUCH
Definition error.h:26
@ LXB_HTML_RULES_ERROR_NOVOHTELSTTAWITRSO
Definition error.h:44
@ LXB_HTML_RULES_ERROR_LAST_ENTRY
Definition error.h:94
@ LXB_HTML_RULES_ERROR_CHINTATE
Definition error.h:80
@ LXB_HTML_RULES_ERROR_DOTOINFRMO
Definition error.h:88
@ LXB_HTML_RULES_ERROR_UNCLTO
Definition error.h:24
@ LXB_HTML_RULES_ERROR_DOTOINBEHEMO
Definition error.h:38
@ LXB_HTML_RULES_ERROR_UNELINOPELST
Definition error.h:66
@ LXB_HTML_RULES_ERROR_UNTO
Definition error.h:22
@ LXB_HTML_RULES_ERROR_MIELINOPELST
Definition error.h:68
@ LXB_HTML_RULES_ERROR_DOTOAFBOMO
Definition error.h:86
@ LXB_HTML_RULES_ERROR_MIELINSC
Definition error.h:72
@ LXB_HTML_RULES_ERROR_NOBOELINSC
Definition error.h:70
@ LXB_HTML_RULES_ERROR_BADOTOININMO
Definition error.h:32
@ LXB_HTML_RULES_ERROR_TEELISNOCUINHEMO
Definition error.h:52
@ LXB_HTML_RULES_ERROR_UNCHTO
Definition error.h:28
@ LXB_HTML_RULES_ERROR_DOTOAFFRMO
Definition error.h:90
@ LXB_HTML_RULES_ERROR_DOTOINBOMO
Definition error.h:60
@ LXB_HTML_RULES_ERROR_UNTOININMO
Definition error.h:30
@ LXB_HTML_RULES_ERROR_BAENOPELISWR
Definition error.h:62
@ LXB_HTML_RULES_ERROR_DOTOFOCOMO
Definition error.h:92
@ LXB_HTML_RULES_ERROR_DOTOINSEMO
Definition error.h:84
@ LXB_HTML_RULES_ERROR_DOTOINTAMO
Definition error.h:82
@ LXB_HTML_RULES_ERROR_UNCLTOINBEHEMO
Definition error.h:40
@ LXB_HTML_RULES_ERROR_DOTOINHEMO
Definition error.h:42
@ LXB_HTML_RULES_ERROR_UNELINACFOST
Definition error.h:76
@ LXB_HTML_RULES_ERROR_DOTOINBEHTMO
Definition error.h:34
@ LXB_HTML_RULES_ERROR_UNELINSC
Definition error.h:74
@ LXB_HTML_RULES_ERROR_HETOAFHEMO
Definition error.h:58
@ LXB_HTML_RULES_ERROR_HETOINHEMO
Definition error.h:46
@ LXB_HTML_RULES_ERROR_UNCLTOINHEMO
Definition error.h:48
@ LXB_HTML_RULES_ERROR_UNENOFFI
Definition error.h:78
@ LXB_HTML_RULES_ERROR_UNCLTOINBEHTMO
Definition error.h:36
@ LXB_HTML_RULES_ERROR_DOTOINHENOMO
Definition error.h:54
@ LXB_HTML_RULES_ERROR_OPELISWR
Definition error.h:64
lxb_html_tree_error_id_t id
Definition error.h:99