summaryrefslogtreecommitdiff
path: root/src/html/html_document.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/html/html_document.c')
-rw-r--r--src/html/html_document.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/html/html_document.c b/src/html/html_document.c
index 69b40eb..ae36454 100644
--- a/src/html/html_document.c
+++ b/src/html/html_document.c
@@ -13,6 +13,7 @@
#include "html/html_collection.h"
#include "html/html_html_element.h"
#include "html/html_head_element.h"
+#include "html/html_link_element.h"
#include "html/html_title_element.h"
#include "html/html_form_element.h"
@@ -182,6 +183,11 @@ _dom_html_document_create_element_internal(dom_html_document *html,
(dom_html_form_element **) result);
}
+ if (dom_string_caseless_isequal(tag_name, html->memoised[hds_LINK])) {
+ return _dom_html_link_element_create(html, namespace, prefix,
+ (dom_html_link_element **) result);
+ }
+
return _dom_html_element_create(html, tag_name, namespace, prefix,
result);
}