Skip to content

Update Lexbor #14032

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file modified ext/dom/lexbor/lexbor/core/array.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/core/array.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/core/array_obj.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/core/array_obj.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/core/avl.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/core/avl.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/core/bst.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/core/bst.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/core/bst_map.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/core/bst_map.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/core/def.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/core/diyfp.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/core/diyfp.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/core/dobject.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/core/dobject.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/core/dtoa.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/core/dtoa.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/core/fs.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/core/in.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/core/in.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/core/lexbor.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/core/mem.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/core/mem.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/core/mraw.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/core/mraw.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/core/plog.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/core/plog.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/core/sbst.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/core/shs.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/core/shs.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/core/str.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/core/str.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/core/str_res.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/core/strtod.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/core/strtod.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/core/types.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/core/utils.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/core/utils.h
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion ext/dom/lexbor/lexbor/css/base.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ extern "C" {


#define LXB_CSS_VERSION_MAJOR 1
#define LXB_CSS_VERSION_MINOR 1
#define LXB_CSS_VERSION_MINOR 2
#define LXB_CSS_VERSION_PATCH 0

#define LXB_CSS_VERSION_STRING \
Expand Down
2 changes: 1 addition & 1 deletion ext/dom/lexbor/lexbor/css/selectors/base.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ extern "C" {


#define LXB_CSS_SELECTORS_VERSION_MAJOR 1
#define LXB_CSS_SELECTORS_VERSION_MINOR 0
#define LXB_CSS_SELECTORS_VERSION_MINOR 1
#define LXB_CSS_SELECTORS_VERSION_PATCH 0

#define LXB_CSS_SELECTORS_VERSION_STRING \
Expand Down
Empty file modified ext/dom/lexbor/lexbor/css/syntax/tokenizer.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/css/syntax/tokenizer/error.h
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion ext/dom/lexbor/lexbor/dom/base.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ extern "C" {


#define LXB_DOM_VERSION_MAJOR 1
#define LXB_DOM_VERSION_MINOR 6
#define LXB_DOM_VERSION_MINOR 7
#define LXB_DOM_VERSION_PATCH 0

#define LXB_DOM_VERSION_STRING \
Expand Down
Empty file modified ext/dom/lexbor/lexbor/dom/interface.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/dom/interfaces/cdata_section.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/dom/interfaces/cdata_section.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/dom/interfaces/character_data.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/dom/interfaces/character_data.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/dom/interfaces/comment.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/dom/interfaces/comment.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/dom/interfaces/document.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/dom/interfaces/document.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/dom/interfaces/document_fragment.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/dom/interfaces/document_fragment.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/dom/interfaces/document_type.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/dom/interfaces/document_type.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/dom/interfaces/element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/dom/interfaces/element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/dom/interfaces/event_target.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/dom/interfaces/event_target.h
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion ext/dom/lexbor/lexbor/dom/interfaces/node.c
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -1239,7 +1239,7 @@ lxb_dom_node_text_content_set(lxb_dom_node_t *node,
}

bool
lxb_dom_node_is_empty(lxb_dom_node_t *root)
lxb_dom_node_is_empty(const lxb_dom_node_t *root)
{
lxb_char_t chr;
lexbor_str_t *str;
Expand Down
2 changes: 1 addition & 1 deletion ext/dom/lexbor/lexbor/dom/interfaces/node.h
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ lxb_dom_node_text_content_set(lxb_dom_node_t *node,
const lxb_char_t *content, size_t len);

LXB_API bool
lxb_dom_node_is_empty(lxb_dom_node_t *root);
lxb_dom_node_is_empty(const lxb_dom_node_t *root);


/*
Expand Down
Empty file.
Empty file.
Empty file modified ext/dom/lexbor/lexbor/dom/interfaces/shadow_root.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/dom/interfaces/shadow_root.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/dom/interfaces/text.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/dom/interfaces/text.h
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion ext/dom/lexbor/lexbor/html/base.h
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ extern "C" {


#define LXB_HTML_VERSION_MAJOR 2
#define LXB_HTML_VERSION_MINOR 3
#define LXB_HTML_VERSION_MINOR 5
#define LXB_HTML_VERSION_PATCH 0

#define LXB_HTML_VERSION_STRING LEXBOR_STRINGIZE(LXB_HTML_VERSION_MAJOR) "." \
Expand Down
Empty file modified ext/dom/lexbor/lexbor/html/interface.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interface.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/anchor_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/anchor_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/area_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/area_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/audio_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/audio_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/base_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/base_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/body_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/body_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/br_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/br_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/button_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/button_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/canvas_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/canvas_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/d_list_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/d_list_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/data_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/data_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/data_list_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/data_list_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/details_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/details_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/dialog_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/dialog_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/directory_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/directory_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/div_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/div_element.h
100755 → 100644
Empty file.
28 changes: 24 additions & 4 deletions ext/dom/lexbor/lexbor/html/interfaces/document.c
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2021 Alexander Borisov
* Copyright (C) 2018-2024 Alexander Borisov
*
* Author: Alexander Borisov <[email protected]>
*/
Expand Down Expand Up @@ -631,6 +631,12 @@ lxb_html_document_style_remove_by_rule_cb(lxb_dom_node_t *node,
lxb_css_rule_style_t *style = ctx;
lxb_html_document_remove_ctx_t context;

/* FIXME: we don't have support for anything other than HTML. */

if (node->ns != LXB_NS_HTML) {
return LXB_STATUS_OK;
}

el = lxb_html_interface_element(node);

if (el->style == NULL) {
Expand All @@ -654,6 +660,10 @@ lxb_html_document_style_remove_avl_cb(lexbor_avl_t *avl,
lxb_html_document_remove_ctx_t *context = ctx;
lxb_html_style_node_t *style = (lxb_html_style_node_t *) node;

if (context->list == NULL) {
return LXB_STATUS_OK;
}

lxb_html_element_style_remove_by_list(context->doc, root,
style, context->list);
return LXB_STATUS_OK;
Expand All @@ -666,8 +676,10 @@ lxb_html_document_style_attach_by_element(lxb_html_document_t *document,
{
lxb_html_document_css_t *css = &document->css;

return lxb_selectors_find_reverse(css->selectors, lxb_dom_interface_node(element),
style->selector, lxb_html_document_style_cb, style);
return lxb_selectors_match_node(css->selectors,
lxb_dom_interface_node(element),
style->selector,
lxb_html_document_style_cb, style);
}

static lxb_status_t
Expand All @@ -682,6 +694,12 @@ lxb_html_document_style_cb(lxb_dom_node_t *node,
return LXB_STATUS_OK;
}

/* Valid behavior when there are no declarations in the style. */

if (style->declarations == NULL) {
return LXB_STATUS_OK;
}

return lxb_html_element_style_list_append(lxb_html_interface_element(node),
style->declarations, spec);
}
Expand Down Expand Up @@ -811,13 +829,15 @@ lxb_html_document_parse_fragment_chunk_begin(lxb_html_document_t *document,
lxb_dom_element_t *element)
{
lxb_status_t status;
lxb_html_parser_t *parser = document->dom_document.parser;
lxb_html_parser_t *parser;

status = lxb_html_document_parser_prepare(document);
if (status != LXB_STATUS_OK) {
return status;
}

parser = document->dom_document.parser;

return lxb_html_parse_fragment_chunk_begin(parser, document,
element->node.local_name,
element->node.ns);
Expand Down
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/document.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/embed_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/embed_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/field_set_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/field_set_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/font_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/font_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/form_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/form_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/frame_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/frame_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/frame_set_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/frame_set_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/head_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/head_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/heading_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/heading_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/hr_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/hr_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/html_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/html_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/iframe_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/iframe_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/image_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/image_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/input_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/input_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/label_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/label_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/legend_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/legend_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/li_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/li_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/link_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/link_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/map_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/map_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/marquee_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/marquee_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/media_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/media_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/menu_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/menu_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/meta_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/meta_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/meter_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/meter_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/mod_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/mod_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/o_list_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/o_list_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/object_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/object_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/opt_group_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/opt_group_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/option_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/option_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/output_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/output_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/paragraph_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/paragraph_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/param_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/param_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/picture_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/picture_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/pre_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/pre_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/progress_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/progress_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/quote_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/quote_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/script_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/script_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/select_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/select_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/slot_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/slot_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/source_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/source_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/span_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/span_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/style_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/style_element.h
100755 → 100644
Empty file.
Empty file.
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/table_cell_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/table_cell_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/table_col_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/table_col_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/table_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/table_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/table_row_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/table_row_element.h
100755 → 100644
Empty file.
Empty file.
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/template_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/template_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/text_area_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/text_area_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/time_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/time_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/title_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/title_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/track_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/track_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/u_list_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/u_list_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/unknown_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/unknown_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/video_element.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/video_element.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/window.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/interfaces/window.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/parser.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/parser.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/serialize.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/tag.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/token.c
100755 → 100644
Empty file.
4 changes: 2 additions & 2 deletions ext/dom/lexbor/lexbor/html/token.h
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ enum lxb_html_token_type {
typedef struct {
const lxb_char_t *begin;
const lxb_char_t *end;
size_t line;
size_t column;
size_t line;
size_t column;

const lxb_char_t *text_start;
const lxb_char_t *text_end;
Expand Down
Empty file modified ext/dom/lexbor/lexbor/html/token_attr.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/token_attr.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/tokenizer.c
100755 → 100644
Empty file.
4 changes: 2 additions & 2 deletions ext/dom/lexbor/lexbor/html/tokenizer.h
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ struct lxb_html_tokenizer {
const lxb_char_t *end;
const lxb_char_t *begin;
const lxb_char_t *last;
size_t current_line;
size_t current_column;
size_t current_line;
size_t current_column;

/* Entities */
const lexbor_sbst_entry_static_t *entity;
Expand Down
Empty file modified ext/dom/lexbor/lexbor/html/tokenizer/error.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/tokenizer/error.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/tokenizer/state.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/tokenizer/state.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/tokenizer/state_comment.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/tokenizer/state_comment.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/tokenizer/state_doctype.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/tokenizer/state_doctype.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/tokenizer/state_rawtext.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/tokenizer/state_rawtext.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/tokenizer/state_rcdata.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/tokenizer/state_rcdata.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/tokenizer/state_script.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/tokenizer/state_script.h
100755 → 100644
Empty file.
6 changes: 3 additions & 3 deletions ext/dom/lexbor/lexbor/html/tree.c
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -1582,7 +1582,7 @@ lxb_html_tree_adoption_agency_algorithm(lxb_html_tree_t *tree,

/* State 14.9 */
if (last->parent != NULL) {
lxb_dom_node_remove(last);
lxb_dom_node_remove_wo_events(last);
}

lxb_dom_node_insert_child_wo_events(node, last);
Expand All @@ -1592,7 +1592,7 @@ lxb_html_tree_adoption_agency_algorithm(lxb_html_tree_t *tree,
}

if (last->parent != NULL) {
lxb_dom_node_remove(last);
lxb_dom_node_remove_wo_events(last);
}

/* State 15 */
Expand Down Expand Up @@ -1630,7 +1630,7 @@ lxb_html_tree_adoption_agency_algorithm(lxb_html_tree_t *tree,
while (node != NULL) {
next = node->next;

lxb_dom_node_remove(node);
lxb_dom_node_remove_wo_events(node);
lxb_dom_node_insert_child_wo_events(lxb_dom_interface_node(element),
node);
node = next;
Expand Down
Empty file modified ext/dom/lexbor/lexbor/html/tree.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/tree/active_formatting.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/tree/active_formatting.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/tree/error.c
100755 → 100644
Empty file.
6 changes: 3 additions & 3 deletions ext/dom/lexbor/lexbor/html/tree/error.h
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ lxb_html_tree_error_id_t;

typedef struct {
lxb_html_tree_error_id_t id;
size_t line;
size_t column;
size_t length;
size_t line;
size_t column;
size_t length;
}
lxb_html_tree_error_t;

Expand Down
Empty file modified ext/dom/lexbor/lexbor/html/tree/insertion_mode.h
100755 → 100644
Empty file.
Empty file.
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/tree/insertion_mode/after_body.c
100755 → 100644
Empty file.
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/tree/insertion_mode/after_head.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/tree/insertion_mode/before_head.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/tree/insertion_mode/before_html.c
100755 → 100644
Empty file.
Empty file.
2 changes: 0 additions & 2 deletions ext/dom/lexbor/lexbor/html/tree/insertion_mode/in_body.c
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -1320,8 +1320,6 @@ lxb_html_tree_insertion_mode_in_body_textarea(lxb_html_tree_t *tree,
lxb_html_tokenizer_state_set(tree->tkz_ref,
lxb_html_tokenizer_state_rcdata_before);

tree->original_mode = tree->mode;

tree->frameset_ok = false;

tree->original_mode = tree->mode;
Expand Down
Empty file modified ext/dom/lexbor/lexbor/html/tree/insertion_mode/in_caption.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/tree/insertion_mode/in_cell.c
100755 → 100644
Empty file.
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/tree/insertion_mode/in_frameset.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/tree/insertion_mode/in_head.c
100755 → 100644
Empty file.
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/tree/insertion_mode/in_row.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/tree/insertion_mode/in_select.c
100755 → 100644
Empty file.
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/tree/insertion_mode/in_table.c
100755 → 100644
Empty file.
Empty file.
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/tree/insertion_mode/in_template.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/tree/insertion_mode/initial.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/tree/insertion_mode/text.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/tree/open_elements.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/tree/open_elements.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/tree/template_insertion.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/tree/template_insertion.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/html/tree_res.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/ns/ns.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/ns/ns.h
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/ports/posix/lexbor/core/memory.c
100755 → 100644
Empty file.
Empty file modified ext/dom/lexbor/lexbor/ports/windows_nt/lexbor/core/memory.c
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion ext/dom/lexbor/lexbor/selectors/base.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ extern "C" {


#define LXB_SELECTORS_VERSION_MAJOR 0
#define LXB_SELECTORS_VERSION_MINOR 2
#define LXB_SELECTORS_VERSION_MINOR 3
#define LXB_SELECTORS_VERSION_PATCH 0

#define LXB_SELECTORS_VERSION_STRING LEXBOR_STRINGIZE(LXB_SELECTORS_VERSION_MAJOR) "." \
Expand Down
Loading