Skip to content
Open
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
4 changes: 3 additions & 1 deletion ext/dom/html5_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,9 @@ static lexbor_libxml2_bridge_status lexbor_libxml2_bridge_convert(
if (attr->node.prefix) {
const char *pos = strchr((const char *) local_name, ':');
if (EXPECTED(pos)) {
local_name = (const lxb_char_t *) pos + 1;
size_t skip = (size_t) ((const lxb_char_t *) pos + 1 - local_name);
local_name += skip;
local_name_length -= skip;
}
}
const lxb_char_t *value = lxb_dom_attr_value(attr, &value_length);
Expand Down
Loading