Gitweb links:

...log 
http://git.netsurf-browser.org/libdom.git/shortlog/f1ac9a4e59ba0e4c208d90ec7df07ad252829b5b
...commit 
http://git.netsurf-browser.org/libdom.git/commit/f1ac9a4e59ba0e4c208d90ec7df07ad252829b5b
...tree 
http://git.netsurf-browser.org/libdom.git/tree/f1ac9a4e59ba0e4c208d90ec7df07ad252829b5b

The branch, master has been updated
       via  f1ac9a4e59ba0e4c208d90ec7df07ad252829b5b (commit)
      from  af49ffb2b148e146feada9dea59342508414f122 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commitdiff 
http://git.netsurf-browser.org/libdom.git/commit/?id=f1ac9a4e59ba0e4c208d90ec7df07ad252829b5b
commit f1ac9a4e59ba0e4c208d90ec7df07ad252829b5b
Author: Daniel Silverstone <[email protected]>
Commit: Daniel Silverstone <[email protected]>

    html_document: Tag names of '' are invalid
    
    Signed-off-by: Daniel Silverstone <[email protected]>

diff --git a/src/html/html_document.c b/src/html/html_document.c
index d978327..5d06e80 100644
--- a/src/html/html_document.c
+++ b/src/html/html_document.c
@@ -536,6 +536,10 @@ _dom_html_document_create_element_internal(
        dom_exception exc;
        struct dom_html_element_create_params params;
 
+       /* If the input tag name is empty, this is an 'invalid character' error 
*/
+       if (dom_string_length(in_tag_name) == 0)
+               return DOM_INVALID_CHARACTER_ERR;
+
        exc = dom_string_toupper(in_tag_name, true, &params.name);
        if (exc != DOM_NO_ERR)
                return exc;


-----------------------------------------------------------------------

Summary of changes:
 src/html/html_document.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/html/html_document.c b/src/html/html_document.c
index d978327..5d06e80 100644
--- a/src/html/html_document.c
+++ b/src/html/html_document.c
@@ -536,6 +536,10 @@ _dom_html_document_create_element_internal(
        dom_exception exc;
        struct dom_html_element_create_params params;
 
+       /* If the input tag name is empty, this is an 'invalid character' error 
*/
+       if (dom_string_length(in_tag_name) == 0)
+               return DOM_INVALID_CHARACTER_ERR;
+
        exc = dom_string_toupper(in_tag_name, true, &params.name);
        if (exc != DOM_NO_ERR)
                return exc;


-- 
Document Object Model library
_______________________________________________
netsurf-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to