mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-17 09:42:38 +03:00
report error getting user data in document.write
This commit is contained in:
parent
fbc3f36fb5
commit
6a4a7d7c25
@ -32,9 +32,15 @@ method Document::write()
|
|||||||
err = dom_node_get_user_data(priv->parent.node,
|
err = dom_node_get_user_data(priv->parent.node,
|
||||||
corestring_dom___ns_key_html_content_data,
|
corestring_dom___ns_key_html_content_data,
|
||||||
&htmlc);
|
&htmlc);
|
||||||
assert(htmlc != NULL);
|
if ((err == DOM_NO_ERR) &&
|
||||||
if (err == DOM_NO_ERR && htmlc->parser != NULL) {
|
(htmlc != NULL) &&
|
||||||
dom_hubbub_parser_insert_chunk(htmlc->parser, (uint8_t *)text, text_len);
|
(htmlc->parser != NULL)) {
|
||||||
|
dom_hubbub_parser_insert_chunk(htmlc->parser,
|
||||||
|
(uint8_t *)text,
|
||||||
|
text_len);
|
||||||
|
} else {
|
||||||
|
LOG("error getting htmlc. parent node:%p htmlc:%p",
|
||||||
|
priv->parent.node, htmlc);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
%}
|
%}
|
||||||
|
Loading…
Reference in New Issue
Block a user