summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRupinder Singh Khokhar <rsk1coder99@gmail.com>2014-06-08 05:48:42 (GMT)
committer Rupinder Singh Khokhar <rsk1coder99@gmail.com>2014-06-21 12:07:15 (GMT)
commitf4e634e8d356f199657de358c2e48d4b8065ee36 (patch)
treee33df21720b642ef291c6df78881cffd0bb76224
parentc690a6af25eabd9ed5c6b565a45259efedbbcac3 (diff)
downloadlibdom-f4e634e8d356f199657de358c2e48d4b8065ee36.tar.gz
libdom-f4e634e8d356f199657de358c2e48d4b8065ee36.tar.bz2
HTMLDocument Element incomplete & test generator minor fix
-rw-r--r--include/dom/html/html_document.h10
-rw-r--r--src/html/html_document.c228
-rw-r--r--src/html/html_document.h7
-rw-r--r--test/DOMTSHandler.pm3
-rw-r--r--test/testcases/tests/level1/html/HTMLDocument02.xml.kfail (renamed from test/testcases/tests/level1/html/HTMLDocument02.xml)0
-rw-r--r--test/testcases/tests/level1/html/HTMLDocument03.xml.kfail (renamed from test/testcases/tests/level1/html/HTMLDocument03.xml)0
-rw-r--r--test/testcases/tests/level1/html/HTMLDocument04.xml.kfail (renamed from test/testcases/tests/level1/html/HTMLDocument04.xml.notimpl)0
-rw-r--r--test/testcases/tests/level1/html/HTMLDocument05.xml (renamed from test/testcases/tests/level1/html/HTMLDocument05.xml.notimpl)0
-rw-r--r--test/testcases/tests/level1/html/HTMLDocument07.xml (renamed from test/testcases/tests/level1/html/HTMLDocument07.xml.notimpl)0
-rw-r--r--test/testcases/tests/level1/html/HTMLDocument08.xml.kfail (renamed from test/testcases/tests/level1/html/HTMLDocument08.xml.notimpl)1
-rw-r--r--test/testcases/tests/level1/html/HTMLDocument09.xml (renamed from test/testcases/tests/level1/html/HTMLDocument09.xml.notimpl)0
-rw-r--r--test/testcases/tests/level1/html/HTMLDocument10.xml (renamed from test/testcases/tests/level1/html/HTMLDocument10.xml.notimpl)0
-rw-r--r--test/testcases/tests/level1/html/HTMLDocument11.xml (renamed from test/testcases/tests/level1/html/HTMLDocument11.xml.notimpl)0
-rw-r--r--test/testcases/tests/level1/html/HTMLDocument12.xml.kfail (renamed from test/testcases/tests/level1/html/HTMLDocument12.xml.notimpl)0
-rw-r--r--test/testcases/tests/level1/html/HTMLDocument13.xml.kfail (renamed from test/testcases/tests/level1/html/HTMLDocument13.xml.notimpl)0
-rw-r--r--test/testcases/tests/level1/html/HTMLDocument14.xml.kfail (renamed from test/testcases/tests/level1/html/HTMLDocument14.xml.notimpl)0
-rw-r--r--test/testcases/tests/level1/html/HTMLDocument15.xml (renamed from test/testcases/tests/level1/html/HTMLDocument15.xml.notimpl)0
-rw-r--r--test/testcases/tests/level1/html/HTMLDocument16.xml (renamed from test/testcases/tests/level1/html/HTMLDocument16.xml.notimpl)0
-rw-r--r--test/testcases/tests/level1/html/HTMLDocument17.xml.kfail (renamed from test/testcases/tests/level1/html/HTMLDocument17.xml.notimpl)0
-rw-r--r--test/testcases/tests/level1/html/HTMLDocument18.xml.kfail (renamed from test/testcases/tests/level1/html/HTMLDocument18.xml.notimpl)0
-rw-r--r--test/testcases/tests/level1/html/HTMLDocument19.xml.kfail (renamed from test/testcases/tests/level1/html/HTMLDocument19.xml.notimpl)0
-rw-r--r--test/testcases/tests/level1/html/HTMLDocument20.xml.kfail (renamed from test/testcases/tests/level1/html/HTMLDocument20.xml.notimpl)0
-rw-r--r--test/testcases/tests/level1/html/HTMLDocument21.xml.kfail (renamed from test/testcases/tests/level1/html/HTMLDocument21.xml.notimpl)0
-rw-r--r--test/testcases/tests/level1/html/doc01.xml (renamed from test/testcases/tests/level1/html/doc01.xml.notimpl)0
24 files changed, 214 insertions, 35 deletions
diff --git a/include/dom/html/html_document.h b/include/dom/html/html_document.h
index 1f868a5..936ea69 100644
--- a/include/dom/html/html_document.h
+++ b/include/dom/html/html_document.h
@@ -114,7 +114,7 @@ static inline dom_exception dom_html_document_get_body(dom_html_document *doc,
get_body(doc, body);
}
#define dom_html_document_get_body(d, b) \
- dom_html_document_get_title((dom_html_document *) (d), \
+ dom_html_document_get_body((dom_html_document *) (d), \
(struct dom_html_element **) (b))
static inline dom_exception dom_html_document_set_body(dom_html_document *doc,
@@ -174,7 +174,7 @@ static inline dom_exception dom_html_document_get_anchors(dom_html_document *doc
get_anchors(doc, col);
}
#define dom_html_document_get_anchors(d, c) \
- dom_html_document_get_title((dom_html_document *) (d), \
+ dom_html_document_get_anchors((dom_html_document *) (d), \
(struct dom_html_collection **) (c))
static inline dom_exception dom_html_document_get_cookie(dom_html_document *doc,
@@ -184,7 +184,7 @@ static inline dom_exception dom_html_document_get_cookie(dom_html_document *doc,
get_cookie(doc, cookie);
}
#define dom_html_document_get_cookie(d, c) \
- dom_html_document_get_title((dom_html_document *) (d), (c))
+ dom_html_document_get_cookie((dom_html_document *) (d), (c))
static inline dom_exception dom_html_document_set_cookie(dom_html_document *doc,
dom_string *cookie)
@@ -237,8 +237,8 @@ static inline dom_exception dom_html_document_get_elements_by_name(dom_html_docu
return ((dom_html_document_vtable *) ((dom_node *) doc)->vtable)->
get_elements_by_name(doc, name, list);
}
-#define dom_html_document_get_elements_by_name(d, n, l) \
- dom_html_document_get_element_by_name((dom_html_document *) (d), \
+#define dom_html_document_get_element_by_name(d, n, l) \
+ dom_html_document_get_elements_by_name((dom_html_document *) (d), \
(n), (struct dom_nodelist **) (l))
#endif
diff --git a/src/html/html_document.c b/src/html/html_document.c
index 5d68d51..83c4801 100644
--- a/src/html/html_document.c
+++ b/src/html/html_document.c
@@ -126,16 +126,17 @@ dom_exception _dom_html_document_initialise(dom_html_document *doc,
doc->domain = NULL;
doc->url = NULL;
doc->cookie = NULL;
-
+ doc->body = NULL;
+
doc->memoised = calloc(sizeof(dom_string *), hds_COUNT);
if (doc->memoised == NULL) {
error = DOM_NO_MEM_ERR;
goto out;
}
-
+
#define HTML_DOCUMENT_STRINGS_ACTION(attr,str) \
error = dom_string_create_interned((const uint8_t *) #str, \
- SLEN(#str), &doc->memoised[hds_##attr]); \
+ SLEN(#str), &doc->memoised[hds_##attr]); \
if (error != DOM_NO_ERR) { \
goto out; \
}
@@ -639,57 +640,193 @@ dom_exception _dom_html_document_get_url(dom_html_document *doc,
dom_exception _dom_html_document_get_body(dom_html_document *doc,
struct dom_html_element **body)
{
- UNUSED(doc);
- UNUSED(body);
+ dom_exception exc = DOM_NO_ERR;
- return DOM_NOT_SUPPORTED_ERR;
+ if (doc->body != NULL) {
+ *body = doc->body;
+ } else {
+ dom_element *node;
+ dom_nodelist *nodes;
+ uint32_t len;
+
+ exc = dom_document_get_elements_by_tag_name(doc,
+ doc->memoised[hds_BODY],
+ &nodes);
+ if (exc != DOM_NO_ERR) {
+ return exc;
+ }
+
+ exc = dom_nodelist_get_length(nodes, &len);
+ if (exc != DOM_NO_ERR) {
+ dom_nodelist_unref(nodes);
+ return exc;
+ }
+
+ if (len == 0) {
+ exc = dom_document_get_elements_by_tag_name(doc,
+ doc->memoised[hds_FRAMESET],
+ &nodes);
+ if (exc != DOM_NO_ERR) {
+ return exc;
+ }
+ exc = dom_nodelist_get_length(nodes, &len);
+ if (exc != DOM_NO_ERR) {
+ dom_nodelist_unref(nodes);
+ return exc;
+ }
+ if(len == 0) {
+ dom_nodelist_unref(nodes);
+ return DOM_NO_ERR;
+ }
+ }
+
+ exc = dom_nodelist_item(nodes, 0, (void *) &node);
+ dom_nodelist_unref(nodes);
+ if (exc != DOM_NO_ERR) {
+ return exc;
+ }
+
+ *body = (dom_html_element *)node;
+ dom_node_unref(node);
+ }
+
+ return exc;
}
dom_exception _dom_html_document_set_body(dom_html_document *doc,
struct dom_html_element *body)
{
- UNUSED(doc);
- UNUSED(body);
+ doc->body = body;
+ return DOM_NO_ERR;
+}
- return DOM_NOT_SUPPORTED_ERR;
+/**
+ * Callback for creating the images collection
+ *
+ * \param node The dom_node_internal object
+ * \param ctx The dom_html_document object (void *)
+ * \return DOM_NO_ERR on success, appropriate dom_exception on failure.
+ */
+bool images_callback(struct dom_node_internal *node, void *ctx)
+{
+ if(node->type == DOM_ELEMENT_NODE &&
+ dom_string_caseless_isequal(node->name,
+ ((dom_html_document *)ctx)->memoised[hds_IMG])) {
+ return true;
+ }
+ return false;
}
dom_exception _dom_html_document_get_images(dom_html_document *doc,
struct dom_html_collection **col)
{
- UNUSED(doc);
- UNUSED(col);
+ dom_html_document *root;
+ dom_exception err;
+ err = dom_document_get_document_element(doc, &root);
+ if (err != DOM_NO_ERR)
+ return err;
- return DOM_NOT_SUPPORTED_ERR;
+ return _dom_html_collection_create(doc, (dom_node_internal *) root,
+ images_callback, doc, col);
+}
+
+bool applet_callback(struct dom_node_internal * node, void *ctx)
+{
+ if(node->type == DOM_ELEMENT_NODE &&
+ dom_string_caseless_isequal(node->name,
+ ((dom_html_document *)ctx)->memoised[hds_APPLET])) {
+ return true;
+ }
+ return false;
+}
+/**
+ * Callback for creating the applets collection
+ *
+ * \param node The dom_node_internal object
+ * \param ctx The dom_html_document object (void *)
+ * \return DOM_NO_ERR on success, appropriate dom_exception on failure.
+ */
+bool applets_callback(struct dom_node_internal *node, void *ctx)
+{
+ if(node->type == DOM_ELEMENT_NODE &&
+ dom_string_caseless_isequal(node->name,
+ ((dom_html_document *)ctx)->memoised[hds_OBJECT])) {
+ uint32_t len = 0;
+ dom_html_collection *applets;
+ _dom_html_collection_create(ctx, node,
+ applet_callback, ctx, &applets);
+
+ dom_html_collection_get_length(applets, &len);
+ if(len != 0)
+ return true;
+ }
+ return false;
}
dom_exception _dom_html_document_get_applets(dom_html_document *doc,
struct dom_html_collection **col)
{
- UNUSED(doc);
- UNUSED(col);
+ dom_html_document *root;
+ dom_exception err;
+ err = dom_document_get_document_element(doc, &root);
+ if (err != DOM_NO_ERR)
+ return err;
- return DOM_NOT_SUPPORTED_ERR;
+ return _dom_html_collection_create(doc, (dom_node_internal *) root,
+ applets_callback, doc, col);
+}
+
+/**
+ * Callback for creating the links collection
+ *
+ * \param node The dom_node_internal object
+ * \param ctx The dom_html_document object (void *)
+ * \return DOM_NO_ERR on success, appropriate dom_exception on failure.
+ */
+bool links_callback(struct dom_node_internal *node, void *ctx)
+{
+ if(node->type == DOM_ELEMENT_NODE &&
+ (dom_string_caseless_isequal(node->name,
+ ((dom_html_document *)ctx)->memoised[hds_A]) ||
+ dom_string_caseless_isequal(node->name,
+ ((dom_html_document *)ctx)->memoised[hds_AREA]))
+ ) {
+ bool has_value = false;
+ dom_exception err;
+
+ err = dom_element_has_attribute(node,
+ ((dom_html_document *)ctx)->memoised[hds_href], &has_value);
+ if(err !=DOM_NO_ERR)
+ return err;
+
+ if(has_value)
+ return true;
+ }
+ return false;
}
dom_exception _dom_html_document_get_links(dom_html_document *doc,
struct dom_html_collection **col)
{
- UNUSED(doc);
- UNUSED(col);
+ dom_html_document *root;
+ dom_exception err;
+ err = dom_document_get_document_element(doc, &root);
+ if (err != DOM_NO_ERR)
+ return err;
- return DOM_NOT_SUPPORTED_ERR;
+ return _dom_html_collection_create(doc, (dom_node_internal *) root,
+ links_callback, doc, col);
}
static bool __dom_html_document_node_is_form(dom_node_internal *node,
- void *ctx)
+ void *ctx)
{
dom_html_document *doc = (dom_html_document *)node->owner;
-
+
UNUSED(ctx);
-
+
return dom_string_caseless_isequal(node->name,
- doc->memoised[hds_FORM]);
+ doc->memoised[hds_FORM]);
}
dom_exception _dom_html_document_get_forms(dom_html_document *doc,
@@ -717,13 +854,43 @@ dom_exception _dom_html_document_get_forms(dom_html_document *doc,
return DOM_NO_ERR;
}
+/**
+ * Callback for creating the anchors collection
+ *
+ * \param node The dom_node_internal object
+ * \param ctx The dom_html_document object (void *)
+ * \return DOM_NO_ERR on success, appropriate dom_exception on failure.
+ */
+bool anchors_callback(struct dom_node_internal *node, void *ctx)
+{
+ if(node->type == DOM_ELEMENT_NODE &&
+ dom_string_caseless_isequal(node->name,
+ ((dom_html_document *)ctx)->memoised[hds_A])) {
+ bool has_value = false;
+ dom_exception err;
+
+ err = dom_element_has_attribute(node,
+ ((dom_html_document *)ctx)->memoised[hds_name], &has_value);
+ if(err !=DOM_NO_ERR)
+ return err;
+
+ if(has_value)
+ return true;
+ }
+ return false;
+}
+
dom_exception _dom_html_document_get_anchors(dom_html_document *doc,
struct dom_html_collection **col)
{
- UNUSED(doc);
- UNUSED(col);
+ dom_html_document *root;
+ dom_exception err;
+ err = dom_document_get_document_element(doc, &root);
+ if (err != DOM_NO_ERR)
+ return err;
- return DOM_NOT_SUPPORTED_ERR;
+ return _dom_html_collection_create(doc, (dom_node_internal *) root,
+ anchors_callback, doc, col);
}
dom_exception _dom_html_document_get_cookie(dom_html_document *doc,
@@ -731,7 +898,7 @@ dom_exception _dom_html_document_get_cookie(dom_html_document *doc,
{
UNUSED(doc);
UNUSED(cookie);
-
+ /*todo implement this after updating client interface */
return DOM_NOT_SUPPORTED_ERR;
}
@@ -740,7 +907,7 @@ dom_exception _dom_html_document_set_cookie(dom_html_document *doc,
{
UNUSED(doc);
UNUSED(cookie);
-
+ /*todo implement this after updating client interface */
return DOM_NOT_SUPPORTED_ERR;
}
@@ -748,13 +915,14 @@ dom_exception _dom_html_document_open(dom_html_document *doc)
{
UNUSED(doc);
+ /*todo implement this after updating client interface */
return DOM_NOT_SUPPORTED_ERR;
}
dom_exception _dom_html_document_close(dom_html_document *doc)
{
UNUSED(doc);
-
+ /*todo implement this after updating client interface */
return DOM_NOT_SUPPORTED_ERR;
}
@@ -764,6 +932,7 @@ dom_exception _dom_html_document_write(dom_html_document *doc,
UNUSED(doc);
UNUSED(text);
+ /*todo implement this after updating client interface */
return DOM_NOT_SUPPORTED_ERR;
}
@@ -773,6 +942,7 @@ dom_exception _dom_html_document_writeln(dom_html_document *doc,
UNUSED(doc);
UNUSED(text);
+ /*todo implement this after _dom_html_document_write */
return DOM_NOT_SUPPORTED_ERR;
}
@@ -782,7 +952,7 @@ dom_exception _dom_html_document_get_elements_by_name(dom_html_document *doc,
UNUSED(doc);
UNUSED(name);
UNUSED(list);
-
+ /*todo implement after updating core nodelist interface */
return DOM_NOT_SUPPORTED_ERR;
}
diff --git a/src/html/html_document.h b/src/html/html_document.h
index 67250f5..c00529b 100644
--- a/src/html/html_document.h
+++ b/src/html/html_document.h
@@ -9,6 +9,7 @@
#define dom_internal_html_document_h_
#include <dom/html/html_document.h>
+#include <dom/html/html_element.h>
#include "core/document.h"
@@ -23,6 +24,7 @@ struct dom_html_document {
dom_string *domain; /**< HTML document domain */
dom_string *url; /**< HTML document URL */
dom_string *cookie; /**< HTML document cookie */
+ dom_html_element *body; /**< HTML BodyElement */
/** Cached strings for html objects to use */
dom_string **memoised;
@@ -126,6 +128,11 @@ dom_exception _dom_html_document_create_attribute(dom_document *doc,
dom_exception _dom_html_document_create_attribute_ns(dom_document *doc,
dom_string *namespace, dom_string *qname,
dom_attr **result);
+bool images_callback(struct dom_node_internal *node, void *ctx);
+bool applets_callback(struct dom_node_internal *node, void *ctx);
+bool applet_callback(struct dom_node_internal *node, void *ctx);
+bool links_callback(struct dom_node_internal *node, void *ctx);
+bool anchors_callback(struct dom_node_internal *node, void *ctx);
#define DOM_DOCUMENT_VTABLE_HTML \
_dom_document_get_doctype, \
diff --git a/test/DOMTSHandler.pm b/test/DOMTSHandler.pm
index 304ac29..fa71365 100644
--- a/test/DOMTSHandler.pm
+++ b/test/DOMTSHandler.pm
@@ -91,6 +91,7 @@ our %special_method = (
our %special_attribute = (
namespaceURI => "namespace",
+ URL => "url",
);
our %no_unref = (
@@ -1210,7 +1211,7 @@ sub generate_assertion {
$fragment = $ats->{fragment};
}
if (exists $ats->{isAbsolute}) {
- $isAbsolute = $ats->{isAbsolute};
+ $isAbsolute = "\"$ats->{isAbsolute}\"";
}
print "is_uri_equals($scheme, $path, $host, $file, $name, $query, $fragment, $isAbsolute, $actual)"
diff --git a/test/testcases/tests/level1/html/HTMLDocument02.xml b/test/testcases/tests/level1/html/HTMLDocument02.xml.kfail
index 24bd58f..24bd58f 100644
--- a/test/testcases/tests/level1/html/HTMLDocument02.xml
+++ b/test/testcases/tests/level1/html/HTMLDocument02.xml.kfail
diff --git a/test/testcases/tests/level1/html/HTMLDocument03.xml b/test/testcases/tests/level1/html/HTMLDocument03.xml.kfail
index 97e291d..97e291d 100644
--- a/test/testcases/tests/level1/html/HTMLDocument03.xml
+++ b/test/testcases/tests/level1/html/HTMLDocument03.xml.kfail
diff --git a/test/testcases/tests/level1/html/HTMLDocument04.xml.notimpl b/test/testcases/tests/level1/html/HTMLDocument04.xml.kfail
index 223d426..223d426 100644
--- a/test/testcases/tests/level1/html/HTMLDocument04.xml.notimpl
+++ b/test/testcases/tests/level1/html/HTMLDocument04.xml.kfail
diff --git a/test/testcases/tests/level1/html/HTMLDocument05.xml.notimpl b/test/testcases/tests/level1/html/HTMLDocument05.xml
index a764b35..a764b35 100644
--- a/test/testcases/tests/level1/html/HTMLDocument05.xml.notimpl
+++ b/test/testcases/tests/level1/html/HTMLDocument05.xml
diff --git a/test/testcases/tests/level1/html/HTMLDocument07.xml.notimpl b/test/testcases/tests/level1/html/HTMLDocument07.xml
index a08972f..a08972f 100644
--- a/test/testcases/tests/level1/html/HTMLDocument07.xml.notimpl
+++ b/test/testcases/tests/level1/html/HTMLDocument07.xml
diff --git a/test/testcases/tests/level1/html/HTMLDocument08.xml.notimpl b/test/testcases/tests/level1/html/HTMLDocument08.xml.kfail
index fcc8147..f4b3e3d 100644
--- a/test/testcases/tests/level1/html/HTMLDocument08.xml.notimpl
+++ b/test/testcases/tests/level1/html/HTMLDocument08.xml.kfail
@@ -38,5 +38,6 @@ See W3C License http://www.w3.org/Consortium/Legal/ for more details.
<load var="doc" href="document" willBeModified="false"/>
<applets interface="HTMLDocument" obj="doc" var="vapplets" />
<length interface="HTMLCollection" obj="vapplets" var="vlength" />
+<!-- The following assertion appears to be false. There appear to be 2 object elements containing applet type elements in the test file. Mentor approval is neccessary--!>
<assertEquals actual="vlength" expected='4' id="length" ignoreCase="false" />
</test>
diff --git a/test/testcases/tests/level1/html/HTMLDocument09.xml.notimpl b/test/testcases/tests/level1/html/HTMLDocument09.xml
index 037811f..037811f 100644
--- a/test/testcases/tests/level1/html/HTMLDocument09.xml.notimpl
+++ b/test/testcases/tests/level1/html/HTMLDocument09.xml
diff --git a/test/testcases/tests/level1/html/HTMLDocument10.xml.notimpl b/test/testcases/tests/level1/html/HTMLDocument10.xml
index 700cebd..700cebd 100644
--- a/test/testcases/tests/level1/html/HTMLDocument10.xml.notimpl
+++ b/test/testcases/tests/level1/html/HTMLDocument10.xml
diff --git a/test/testcases/tests/level1/html/HTMLDocument11.xml.notimpl b/test/testcases/tests/level1/html/HTMLDocument11.xml
index 308131f..308131f 100644
--- a/test/testcases/tests/level1/html/HTMLDocument11.xml.notimpl
+++ b/test/testcases/tests/level1/html/HTMLDocument11.xml
diff --git a/test/testcases/tests/level1/html/HTMLDocument12.xml.notimpl b/test/testcases/tests/level1/html/HTMLDocument12.xml.kfail
index 964e70c..964e70c 100644
--- a/test/testcases/tests/level1/html/HTMLDocument12.xml.notimpl
+++ b/test/testcases/tests/level1/html/HTMLDocument12.xml.kfail
diff --git a/test/testcases/tests/level1/html/HTMLDocument13.xml.notimpl b/test/testcases/tests/level1/html/HTMLDocument13.xml.kfail
index fc7244b..fc7244b 100644
--- a/test/testcases/tests/level1/html/HTMLDocument13.xml.notimpl
+++ b/test/testcases/tests/level1/html/HTMLDocument13.xml.kfail
diff --git a/test/testcases/tests/level1/html/HTMLDocument14.xml.notimpl b/test/testcases/tests/level1/html/HTMLDocument14.xml.kfail
index c41fe14..c41fe14 100644
--- a/test/testcases/tests/level1/html/HTMLDocument14.xml.notimpl
+++ b/test/testcases/tests/level1/html/HTMLDocument14.xml.kfail
diff --git a/test/testcases/tests/level1/html/HTMLDocument15.xml.notimpl b/test/testcases/tests/level1/html/HTMLDocument15.xml
index e01d4ca..e01d4ca 100644
--- a/test/testcases/tests/level1/html/HTMLDocument15.xml.notimpl
+++ b/test/testcases/tests/level1/html/HTMLDocument15.xml
diff --git a/test/testcases/tests/level1/html/HTMLDocument16.xml.notimpl b/test/testcases/tests/level1/html/HTMLDocument16.xml
index 1bb1fa7..1bb1fa7 100644
--- a/test/testcases/tests/level1/html/HTMLDocument16.xml.notimpl
+++ b/test/testcases/tests/level1/html/HTMLDocument16.xml
diff --git a/test/testcases/tests/level1/html/HTMLDocument17.xml.notimpl b/test/testcases/tests/level1/html/HTMLDocument17.xml.kfail
index 6c89504..6c89504 100644
--- a/test/testcases/tests/level1/html/HTMLDocument17.xml.notimpl
+++ b/test/testcases/tests/level1/html/HTMLDocument17.xml.kfail
diff --git a/test/testcases/tests/level1/html/HTMLDocument18.xml.notimpl b/test/testcases/tests/level1/html/HTMLDocument18.xml.kfail
index 7454a15..7454a15 100644
--- a/test/testcases/tests/level1/html/HTMLDocument18.xml.notimpl
+++ b/test/testcases/tests/level1/html/HTMLDocument18.xml.kfail
diff --git a/test/testcases/tests/level1/html/HTMLDocument19.xml.notimpl b/test/testcases/tests/level1/html/HTMLDocument19.xml.kfail
index 3fa1a81..3fa1a81 100644
--- a/test/testcases/tests/level1/html/HTMLDocument19.xml.notimpl
+++ b/test/testcases/tests/level1/html/HTMLDocument19.xml.kfail
diff --git a/test/testcases/tests/level1/html/HTMLDocument20.xml.notimpl b/test/testcases/tests/level1/html/HTMLDocument20.xml.kfail
index 0b03356..0b03356 100644
--- a/test/testcases/tests/level1/html/HTMLDocument20.xml.notimpl
+++ b/test/testcases/tests/level1/html/HTMLDocument20.xml.kfail
diff --git a/test/testcases/tests/level1/html/HTMLDocument21.xml.notimpl b/test/testcases/tests/level1/html/HTMLDocument21.xml.kfail
index 4942f45..4942f45 100644
--- a/test/testcases/tests/level1/html/HTMLDocument21.xml.notimpl
+++ b/test/testcases/tests/level1/html/HTMLDocument21.xml.kfail
diff --git a/test/testcases/tests/level1/html/doc01.xml.notimpl b/test/testcases/tests/level1/html/doc01.xml
index cb0c897..cb0c897 100644
--- a/test/testcases/tests/level1/html/doc01.xml.notimpl
+++ b/test/testcases/tests/level1/html/doc01.xml