HTML: Ignore dom exceptions we don't care about

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
This commit is contained in:
Daniel Silverstone 2020-02-23 09:36:07 +00:00
parent b633bef7bf
commit 16163aab03
No known key found for this signature in database
GPG Key ID: C30DF439F2987D74

View File

@ -340,7 +340,7 @@ static bool html_process_link(html_content *c, dom_node *node)
corestring_dom_hreflang, &atr_string); corestring_dom_hreflang, &atr_string);
if ((exc == DOM_NO_ERR) && (atr_string != NULL)) { if ((exc == DOM_NO_ERR) && (atr_string != NULL)) {
/* get a lwc string containing the href lang */ /* get a lwc string containing the href lang */
exc = dom_string_intern(atr_string, &link.hreflang); (void)dom_string_intern(atr_string, &link.hreflang);
dom_string_unref(atr_string); dom_string_unref(atr_string);
} }
@ -348,7 +348,7 @@ static bool html_process_link(html_content *c, dom_node *node)
corestring_dom_type, &atr_string); corestring_dom_type, &atr_string);
if ((exc == DOM_NO_ERR) && (atr_string != NULL)) { if ((exc == DOM_NO_ERR) && (atr_string != NULL)) {
/* get a lwc string containing the type */ /* get a lwc string containing the type */
exc = dom_string_intern(atr_string, &link.type); (void)dom_string_intern(atr_string, &link.type);
dom_string_unref(atr_string); dom_string_unref(atr_string);
} }
@ -356,7 +356,7 @@ static bool html_process_link(html_content *c, dom_node *node)
corestring_dom_media, &atr_string); corestring_dom_media, &atr_string);
if ((exc == DOM_NO_ERR) && (atr_string != NULL)) { if ((exc == DOM_NO_ERR) && (atr_string != NULL)) {
/* get a lwc string containing the media */ /* get a lwc string containing the media */
exc = dom_string_intern(atr_string, &link.media); (void)dom_string_intern(atr_string, &link.media);
dom_string_unref(atr_string); dom_string_unref(atr_string);
} }
@ -364,7 +364,7 @@ static bool html_process_link(html_content *c, dom_node *node)
corestring_dom_sizes, &atr_string); corestring_dom_sizes, &atr_string);
if ((exc == DOM_NO_ERR) && (atr_string != NULL)) { if ((exc == DOM_NO_ERR) && (atr_string != NULL)) {
/* get a lwc string containing the sizes */ /* get a lwc string containing the sizes */
exc = dom_string_intern(atr_string, &link.sizes); (void)dom_string_intern(atr_string, &link.sizes);
dom_string_unref(atr_string); dom_string_unref(atr_string);
} }