From 644e93ff924466c41e55bad14fb7a42c468a4f7c Mon Sep 17 00:00:00 2001 From: rsk1994 Date: Sat, 17 May 2014 05:59:23 +0530 Subject: Area Element & documentElement minor fix --- Makefile | 1 + include/dom/dom.h | 1 + include/dom/html/html_area_element.h | 62 ++++++ src/html/Makefile | 5 +- src/html/html_area_element.c | 215 +++++++++++++++++++++ src/html/html_area_element.h | 45 +++++ src/html/html_collection.c | 2 +- .../tests/level1/html/HTMLAreaElement01.xml | 43 +++++ .../level1/html/HTMLAreaElement01.xml.notimpl | 43 ----- .../tests/level1/html/HTMLAreaElement02.xml | 43 +++++ .../level1/html/HTMLAreaElement02.xml.notimpl | 43 ----- .../tests/level1/html/HTMLAreaElement03.xml | 43 +++++ .../level1/html/HTMLAreaElement03.xml.notimpl | 43 ----- .../tests/level1/html/HTMLAreaElement04.xml | 42 ++++ .../level1/html/HTMLAreaElement04.xml.notimpl | 42 ---- .../tests/level1/html/HTMLAreaElement05.xml | 42 ++++ .../level1/html/HTMLAreaElement05.xml.notimpl | 42 ---- .../tests/level1/html/HTMLAreaElement06.xml | 42 ++++ .../level1/html/HTMLAreaElement06.xml.notimpl | 42 ---- .../tests/level1/html/HTMLAreaElement07.xml | 43 +++++ .../level1/html/HTMLAreaElement07.xml.notimpl | 43 ----- .../tests/level1/html/HTMLAreaElement08.xml | 42 ++++ .../level1/html/HTMLAreaElement08.xml.notimpl | 42 ---- test/testcases/tests/level2/html/files/area.html | 14 ++ test/testcases/tests/level2/html/files/area.xhtml | 17 ++ test/testcases/tests/level2/html/files/area.xml | 17 ++ test/testcases/tests/level2/html/files/area2.html | 15 ++ test/testcases/tests/level2/html/files/area2.xhtml | 16 ++ test/testcases/tests/level2/html/files/area2.xml | 16 ++ 29 files changed, 762 insertions(+), 344 deletions(-) create mode 100644 test/testcases/tests/level1/html/HTMLAreaElement01.xml delete mode 100644 test/testcases/tests/level1/html/HTMLAreaElement01.xml.notimpl create mode 100644 test/testcases/tests/level1/html/HTMLAreaElement02.xml delete mode 100644 test/testcases/tests/level1/html/HTMLAreaElement02.xml.notimpl create mode 100644 test/testcases/tests/level1/html/HTMLAreaElement03.xml delete mode 100644 test/testcases/tests/level1/html/HTMLAreaElement03.xml.notimpl create mode 100644 test/testcases/tests/level1/html/HTMLAreaElement04.xml delete mode 100644 test/testcases/tests/level1/html/HTMLAreaElement04.xml.notimpl create mode 100644 test/testcases/tests/level1/html/HTMLAreaElement05.xml delete mode 100644 test/testcases/tests/level1/html/HTMLAreaElement05.xml.notimpl create mode 100644 test/testcases/tests/level1/html/HTMLAreaElement06.xml delete mode 100644 test/testcases/tests/level1/html/HTMLAreaElement06.xml.notimpl create mode 100644 test/testcases/tests/level1/html/HTMLAreaElement07.xml delete mode 100644 test/testcases/tests/level1/html/HTMLAreaElement07.xml.notimpl create mode 100644 test/testcases/tests/level1/html/HTMLAreaElement08.xml delete mode 100644 test/testcases/tests/level1/html/HTMLAreaElement08.xml.notimpl create mode 100644 test/testcases/tests/level2/html/files/area.html create mode 100644 test/testcases/tests/level2/html/files/area.xhtml create mode 100644 test/testcases/tests/level2/html/files/area.xml create mode 100644 test/testcases/tests/level2/html/files/area2.html create mode 100644 test/testcases/tests/level2/html/files/area2.xhtml create mode 100644 test/testcases/tests/level2/html/files/area2.xml diff --git a/Makefile b/Makefile index d3c73cc..6be20eb 100644 --- a/Makefile +++ b/Makefile @@ -120,6 +120,7 @@ INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):$(Is)/html_image_element.h INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):$(Is)/html_object_element.h INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):$(Is)/html_param_element.h INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):$(Is)/html_applet_element.h +INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):$(Is)/html_area_element.h INSTALL_ITEMS := $(INSTALL_ITEMS) /$(LIBDIR)/pkgconfig:lib$(COMPONENT).pc.in INSTALL_ITEMS := $(INSTALL_ITEMS) /$(LIBDIR):$(OUTPUT) diff --git a/include/dom/dom.h b/include/dom/dom.h index 2a2e1cc..69a4f77 100644 --- a/include/dom/dom.h +++ b/include/dom/dom.h @@ -79,6 +79,7 @@ #include #include #include +#include /* DOM Events header */ #include diff --git a/include/dom/html/html_area_element.h b/include/dom/html/html_area_element.h index 2e182d5..c57202b 100644 --- a/include/dom/html/html_area_element.h +++ b/include/dom/html/html_area_element.h @@ -3,5 +3,67 @@ * Licensed under the MIT License, * http://www.opensource.org/licenses/mit-license.php * Copyright 2009 Bo Yang + * Copyright 2014 Rupinder Singh Khokhar */ +#ifndef dom_html_area_element_h_ +#define dom_html_area_element_h_ + +#include +#include +#include + +#include +#include + +typedef struct dom_html_area_element dom_html_area_element; + +dom_exception dom_html_area_element_get_access_key( + dom_html_area_element *area, dom_string **access_key); + +dom_exception dom_html_area_element_set_access_key( + dom_html_area_element *area, dom_string *access_key); + +dom_exception dom_html_area_element_get_alt( + dom_html_area_element *area, dom_string **alt); + +dom_exception dom_html_area_element_set_alt( + dom_html_area_element *area, dom_string *alt); + +dom_exception dom_html_area_element_get_coords( + dom_html_area_element *area, dom_string **coords); + +dom_exception dom_html_area_element_set_coords( + dom_html_area_element *area, dom_string *coords); + +dom_exception dom_html_area_element_get_href( + dom_html_area_element *area, dom_string **href); + +dom_exception dom_html_area_element_set_href( + dom_html_area_element *area, dom_string *href); + +dom_exception dom_html_area_element_get_no_href( + dom_html_area_element *ele, bool *no_href); + +dom_exception dom_html_area_element_set_no_href( + dom_html_area_element *ele, bool no_href); + +dom_exception dom_html_area_element_get_shape( + dom_html_area_element *area, dom_string **shape); + +dom_exception dom_html_area_element_set_shape( + dom_html_area_element *area, dom_string *shape); + +dom_exception dom_html_area_element_get_tab_index( + dom_html_area_element *area, int32_t *tab_index); + +dom_exception dom_html_area_element_set_tab_index( + dom_html_area_element *area, uint32_t tab_index); + +dom_exception dom_html_area_element_get_target( + dom_html_area_element *area, dom_string **target); + +dom_exception dom_html_area_element_set_target( + dom_html_area_element *area, dom_string *target); + +#endif diff --git a/src/html/Makefile b/src/html/Makefile index 0d8bcae..ba76d6c 100644 --- a/src/html/Makefile +++ b/src/html/Makefile @@ -14,11 +14,10 @@ DIR_SOURCES := \ html_ulist_element.c html_olist_element.c html_li_element.c \ html_font_element.c html_mod_element.c html_anchor_element.c \ html_basefont_element.c html_image_element.c html_object_element.c \ - html_param_element.c html_applet_element.c + html_param_element.c html_applet_element.c html_area_element.c UNINMPLEMENTED_SOURCES := \ - html_map_element.c \ - html_area_element.c html_script_element.c html_table_element.c \ + html_map_element.c html_script_element.c html_table_element.c \ html_tablecaption_element.c html_tablecol_element.c html_tablesection_element.c \ html_tablerow_element.c html_tablecell_element.c html_frameset_element.c \ html_frame_element.c html_iframe_element.c diff --git a/src/html/html_area_element.c b/src/html/html_area_element.c index 2e182d5..85a2a3e 100644 --- a/src/html/html_area_element.c +++ b/src/html/html_area_element.c @@ -3,5 +3,220 @@ * Licensed under the MIT License, * http://www.opensource.org/licenses/mit-license.php * Copyright 2009 Bo Yang + * Copyright 2014 Rupinder Singh Khokhar */ +#include +#include + +#include + +#include "html/html_document.h" +#include "html/html_area_element.h" + +#include "core/node.h" +#include "core/attr.h" +#include "utils/utils.h" + +static struct dom_element_protected_vtable _protect_vtable = { + { + DOM_NODE_PROTECT_VTABLE_HTML_AREA_ELEMENT + }, + DOM_HTML_AREA_ELEMENT_PROTECT_VTABLE +}; + +/** + * Create a dom_html_area_element object + * + * \param doc The document object + * \param ele The returned element object + * \return DOM_NO_ERR on success, appropriate dom_exception on failure. + */ +dom_exception _dom_html_area_element_create(struct dom_html_document *doc, + dom_string *namespace, dom_string *prefix, + struct dom_html_area_element **ele) +{ + struct dom_node_internal *node; + + *ele = malloc(sizeof(dom_html_area_element)); + if (*ele == NULL) + return DOM_NO_MEM_ERR; + + /* Set up vtables */ + node = (struct dom_node_internal *) *ele; + node->base.vtable = &_dom_html_element_vtable; + node->vtable = &_protect_vtable; + + return _dom_html_area_element_initialise(doc, namespace, prefix, *ele); +} + +/** + * Initialise a dom_html_area_element object + * + * \param doc The document object + * \param ele The dom_html_area_element object + * \return DOM_NO_ERR on success, appropriate dom_exception on failure. + */ +dom_exception _dom_html_area_element_initialise(struct dom_html_document *doc, + dom_string *namespace, dom_string *prefix, + struct dom_html_area_element *ele) +{ + return _dom_html_element_initialise(doc, &ele->base, + doc->memoised[hds_AREA], + namespace, prefix); +} + +/** + * Finalise a dom_html_area_element object + * + * \param ele The dom_html_area_element object + */ +void _dom_html_area_element_finalise(struct dom_html_area_element *ele) +{ + _dom_html_element_finalise(&ele->base); +} + +/** + * Destroy a dom_html_area_element object + * + * \param ele The dom_html_area_element object + */ +void _dom_html_area_element_destroy(struct dom_html_area_element *ele) +{ + _dom_html_area_element_finalise(ele); + free(ele); +} + +/** + * Get the no_href property + * + * \param ele The dom_html_area_element object + * \param no_href The status + * \return DOM_NO_ERR on success, appropriate dom_exception on failure. + */ +dom_exception dom_html_area_element_get_no_href(dom_html_area_element *ele, + bool *no_href) +{ + return dom_html_element_get_bool_property(&ele->base, "nohref", + SLEN("nohref"), no_href); +} + +/** + * Set the no_href property + * + * \param ele The dom_html_area_element object + * \param no_href The status + * \return DOM_NO_ERR on success, appropriate dom_exception on failure. + */ +dom_exception dom_html_area_element_set_no_href(dom_html_area_element *ele, + bool no_href) +{ + return dom_html_element_set_bool_property(&ele->base, "nohref", + SLEN("nohref"), no_href); +} + +/** + * Set the tab_index property + * + * \param ele The dom_html_area_element object + * \param no_href The status + * \return DOM_NO_ERR on success, appropriate dom_exception on failure. + */ +dom_exception dom_html_area_element_get_tab_index( + dom_html_area_element *area, int32_t *tab_index) +{ + return dom_html_element_get_int32_t_property(&area->base, "tabindex", + SLEN("tabindex"), tab_index); +} + +/** + * Set the tab_index property + * + * \param ele The dom_html_area_element object + * \param no_href The status + * \return DOM_NO_ERR on success, appropriate dom_exception on failure. + */ +dom_exception dom_html_area_element_set_tab_index( + dom_html_area_element *area, uint32_t tab_index) +{ + return dom_html_element_set_int32_t_property(&area->base, "tabindex", + SLEN("tabindex"), tab_index); +} + +/*------------------------------------------------------------------------*/ +/* The protected virtual functions */ + +/* The virtual function used to parse attribute value, see src/core/element.c + * for detail */ +dom_exception _dom_html_area_element_parse_attribute(dom_element *ele, + dom_string *name, dom_string *value, + dom_string **parsed) +{ + UNUSED(ele); + UNUSED(name); + + dom_string_ref(value); + *parsed = value; + + return DOM_NO_ERR; +} + +/* The virtual destroy function, see src/core/node.c for detail */ +void _dom_virtual_html_area_element_destroy(dom_node_internal *node) +{ + _dom_html_area_element_destroy((struct dom_html_area_element *) node); +} + +/* The virtual copy function, see src/core/node.c for detail */ +dom_exception _dom_html_area_element_copy(dom_node_internal *old, + dom_node_internal **copy) +{ + return _dom_html_element_copy(old, copy); +} + +/*-----------------------------------------------------------------------*/ +/* API functions */ + +#define SIMPLE_GET(attr) \ + dom_exception dom_html_area_element_get_##attr( \ + dom_html_area_element *element, \ + dom_string **attr) \ + { \ + dom_exception ret; \ + dom_string *_memo_##attr; \ + \ + _memo_##attr = \ + ((struct dom_html_document *) \ + ((struct dom_node_internal *)element)->owner)->\ + memoised[hds_##attr]; \ + \ + ret = dom_element_get_attribute(element, _memo_##attr, attr); \ + \ + return ret; \ + } +#define SIMPLE_SET(attr) \ +dom_exception dom_html_area_element_set_##attr( \ + dom_html_area_element *element, \ + dom_string *attr) \ + { \ + dom_exception ret; \ + dom_string *_memo_##attr; \ + \ + _memo_##attr = \ + ((struct dom_html_document *) \ + ((struct dom_node_internal *)element)->owner)->\ + memoised[hds_##attr]; \ + \ + ret = dom_element_set_attribute(element, _memo_##attr, attr); \ + \ + return ret; \ + } + +#define SIMPLE_GET_SET(attr) SIMPLE_GET(attr) SIMPLE_SET(attr) + +SIMPLE_GET_SET(access_key); +SIMPLE_GET_SET(alt); +SIMPLE_GET_SET(coords); +SIMPLE_GET_SET(href); +SIMPLE_GET_SET(shape); +SIMPLE_GET_SET(target); diff --git a/src/html/html_area_element.h b/src/html/html_area_element.h index 2e182d5..a45d1df 100644 --- a/src/html/html_area_element.h +++ b/src/html/html_area_element.h @@ -3,5 +3,50 @@ * Licensed under the MIT License, * http://www.opensource.org/licenses/mit-license.php * Copyright 2009 Bo Yang + * Copyright 2014 Rupinder Singh Khokhar */ +#ifndef dom_internal_html_area_element_h_ +#define dom_internal_html_area_element_h_ + +#include +#include "html/html_element.h" + + +struct dom_html_area_element { + struct dom_html_element base; + /**< The base class */ +}; + +/* Create a dom_html_area_element object */ +dom_exception _dom_html_area_element_create(struct dom_html_document *doc, + dom_string *namespace, dom_string *prefix, + struct dom_html_area_element **ele); + +/* Initialise a dom_html_area_element object */ +dom_exception _dom_html_area_element_initialise(struct dom_html_document *doc, + dom_string *namespace, dom_string *prefix, + struct dom_html_area_element *ele); + +/* Finalise a dom_html_area_element object */ +void _dom_html_area_element_finalise(struct dom_html_area_element *ele); + +/* Destroy a dom_html_area_element object */ +void _dom_html_area_element_destroy(struct dom_html_area_element *ele); + +/* The protected virtual functions */ +dom_exception _dom_html_area_element_parse_attribute(dom_element *ele, + dom_string *name, dom_string *value, + dom_string **parsed); +void _dom_virtual_html_area_element_destroy(dom_node_internal *node); +dom_exception _dom_html_area_element_copy(dom_node_internal *old, + dom_node_internal **copy); + +#define DOM_HTML_AREA_ELEMENT_PROTECT_VTABLE \ + _dom_html_area_element_parse_attribute + +#define DOM_NODE_PROTECT_VTABLE_HTML_AREA_ELEMENT \ + _dom_virtual_html_area_element_destroy, \ + _dom_html_area_element_copy + +#endif diff --git a/src/html/html_collection.c b/src/html/html_collection.c index a99297f..fb801d9 100644 --- a/src/html/html_collection.c +++ b/src/html/html_collection.c @@ -25,7 +25,7 @@ * \param doc The document * \param root The root element of the collection * \param ic The callback function used to determin whether certain node - * beint32_ts to the collection + * belongs to the collection * \param col The result collection object * \return DOM_NO_ERR on success, appropriate dom_exception on failure. */ diff --git a/test/testcases/tests/level1/html/HTMLAreaElement01.xml b/test/testcases/tests/level1/html/HTMLAreaElement01.xml new file mode 100644 index 0000000..58db920 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLAreaElement01.xml @@ -0,0 +1,43 @@ + + + + + + + +HTMLAreaElement01 +NIST + + The accessKey attribute specifies a single character access key to + give access to the control form. + + Retrieve the accessKey attribute and examine its value. + +Mary Brady +2002-02-22 + + + + + + + + + + + + + diff --git a/test/testcases/tests/level1/html/HTMLAreaElement01.xml.notimpl b/test/testcases/tests/level1/html/HTMLAreaElement01.xml.notimpl deleted file mode 100644 index 58db920..0000000 --- a/test/testcases/tests/level1/html/HTMLAreaElement01.xml.notimpl +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - -HTMLAreaElement01 -NIST - - The accessKey attribute specifies a single character access key to - give access to the control form. - - Retrieve the accessKey attribute and examine its value. - -Mary Brady -2002-02-22 - - - - - - - - - - - - - diff --git a/test/testcases/tests/level1/html/HTMLAreaElement02.xml b/test/testcases/tests/level1/html/HTMLAreaElement02.xml new file mode 100644 index 0000000..e90e643 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLAreaElement02.xml @@ -0,0 +1,43 @@ + + + + + + + +HTMLAreaElement02 +NIST + + The alt attribute specifies an alternate text for user agents not + rendering the normal content of this element. + + Retrieve the alt attribute and examine its value. + +Mary Brady +2002-02-22 + + + + + + + + + + + + + diff --git a/test/testcases/tests/level1/html/HTMLAreaElement02.xml.notimpl b/test/testcases/tests/level1/html/HTMLAreaElement02.xml.notimpl deleted file mode 100644 index e90e643..0000000 --- a/test/testcases/tests/level1/html/HTMLAreaElement02.xml.notimpl +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - -HTMLAreaElement02 -NIST - - The alt attribute specifies an alternate text for user agents not - rendering the normal content of this element. - - Retrieve the alt attribute and examine its value. - -Mary Brady -2002-02-22 - - - - - - - - - - - - - diff --git a/test/testcases/tests/level1/html/HTMLAreaElement03.xml b/test/testcases/tests/level1/html/HTMLAreaElement03.xml new file mode 100644 index 0000000..e0d2114 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLAreaElement03.xml @@ -0,0 +1,43 @@ + + + + + + + +HTMLAreaElement03 +NIST + + The coords attribute specifies a comma-seperated list of lengths, + defining an active region geometry. + + Retrieve the coords attribute and examine its value. + +Mary Brady +2002-02-22 + + + + + + + + + + + + + diff --git a/test/testcases/tests/level1/html/HTMLAreaElement03.xml.notimpl b/test/testcases/tests/level1/html/HTMLAreaElement03.xml.notimpl deleted file mode 100644 index e0d2114..0000000 --- a/test/testcases/tests/level1/html/HTMLAreaElement03.xml.notimpl +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - -HTMLAreaElement03 -NIST - - The coords attribute specifies a comma-seperated list of lengths, - defining an active region geometry. - - Retrieve the coords attribute and examine its value. - -Mary Brady -2002-02-22 - - - - - - - - - - - - - diff --git a/test/testcases/tests/level1/html/HTMLAreaElement04.xml b/test/testcases/tests/level1/html/HTMLAreaElement04.xml new file mode 100644 index 0000000..c464ae0 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLAreaElement04.xml @@ -0,0 +1,42 @@ + + + + + + + +HTMLAreaElement04 +NIST + + The href attribute specifies the URI of the linked resource. + + Retrieve the href attribute and examine its value. + +Mary Brady +2002-02-22 + + + + + + + + + + + + + diff --git a/test/testcases/tests/level1/html/HTMLAreaElement04.xml.notimpl b/test/testcases/tests/level1/html/HTMLAreaElement04.xml.notimpl deleted file mode 100644 index c464ae0..0000000 --- a/test/testcases/tests/level1/html/HTMLAreaElement04.xml.notimpl +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - -HTMLAreaElement04 -NIST - - The href attribute specifies the URI of the linked resource. - - Retrieve the href attribute and examine its value. - -Mary Brady -2002-02-22 - - - - - - - - - - - - - diff --git a/test/testcases/tests/level1/html/HTMLAreaElement05.xml b/test/testcases/tests/level1/html/HTMLAreaElement05.xml new file mode 100644 index 0000000..31bff76 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLAreaElement05.xml @@ -0,0 +1,42 @@ + + + + + + + +HTMLAreaElement05 +NIST + + The noHref attribute specifies that this area is inactive. + + Retrieve the noHref attribute and examine its value. + +Mary Brady +2002-02-22 + + + + + + + + + + + + + diff --git a/test/testcases/tests/level1/html/HTMLAreaElement05.xml.notimpl b/test/testcases/tests/level1/html/HTMLAreaElement05.xml.notimpl deleted file mode 100644 index 31bff76..0000000 --- a/test/testcases/tests/level1/html/HTMLAreaElement05.xml.notimpl +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - -HTMLAreaElement05 -NIST - - The noHref attribute specifies that this area is inactive. - - Retrieve the noHref attribute and examine its value. - -Mary Brady -2002-02-22 - - - - - - - - - - - - - diff --git a/test/testcases/tests/level1/html/HTMLAreaElement06.xml b/test/testcases/tests/level1/html/HTMLAreaElement06.xml new file mode 100644 index 0000000..407f72a --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLAreaElement06.xml @@ -0,0 +1,42 @@ + + + + + + + +HTMLAreaElement06 +NIST + + The shape attribute specifies the shape of the active area. + + Retrieve the shape attribute and examine its value. + +Mary Brady +2002-02-22 + + + + + + + + + + + + + diff --git a/test/testcases/tests/level1/html/HTMLAreaElement06.xml.notimpl b/test/testcases/tests/level1/html/HTMLAreaElement06.xml.notimpl deleted file mode 100644 index 407f72a..0000000 --- a/test/testcases/tests/level1/html/HTMLAreaElement06.xml.notimpl +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - -HTMLAreaElement06 -NIST - - The shape attribute specifies the shape of the active area. - - Retrieve the shape attribute and examine its value. - -Mary Brady -2002-02-22 - - - - - - - - - - - - - diff --git a/test/testcases/tests/level1/html/HTMLAreaElement07.xml b/test/testcases/tests/level1/html/HTMLAreaElement07.xml new file mode 100644 index 0000000..c03b07d --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLAreaElement07.xml @@ -0,0 +1,43 @@ + + + + + + + +HTMLAreaElement07 +NIST + + The tabIndex attribute specifies an index that represents the element's + position in the tabbing order. + + Retrieve the tabIndex attribute and examine its value. + +Mary Brady +2002-02-22 + + + + + + + + + + + + + diff --git a/test/testcases/tests/level1/html/HTMLAreaElement07.xml.notimpl b/test/testcases/tests/level1/html/HTMLAreaElement07.xml.notimpl deleted file mode 100644 index c03b07d..0000000 --- a/test/testcases/tests/level1/html/HTMLAreaElement07.xml.notimpl +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - -HTMLAreaElement07 -NIST - - The tabIndex attribute specifies an index that represents the element's - position in the tabbing order. - - Retrieve the tabIndex attribute and examine its value. - -Mary Brady -2002-02-22 - - - - - - - - - - - - - diff --git a/test/testcases/tests/level1/html/HTMLAreaElement08.xml b/test/testcases/tests/level1/html/HTMLAreaElement08.xml new file mode 100644 index 0000000..9d485fe --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLAreaElement08.xml @@ -0,0 +1,42 @@ + + + + + + + +HTMLAreaElement08 +NIST + + The target specifies the frame to render the resource in. + + Retrieve the target attribute and examine it's value. + +Rick Rivello +2002-05-09 + + + + + + + + + + + + + diff --git a/test/testcases/tests/level1/html/HTMLAreaElement08.xml.notimpl b/test/testcases/tests/level1/html/HTMLAreaElement08.xml.notimpl deleted file mode 100644 index 9d485fe..0000000 --- a/test/testcases/tests/level1/html/HTMLAreaElement08.xml.notimpl +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - -HTMLAreaElement08 -NIST - - The target specifies the frame to render the resource in. - - Retrieve the target attribute and examine it's value. - -Rick Rivello -2002-05-09 - - - - - - - - - - - - - diff --git a/test/testcases/tests/level2/html/files/area.html b/test/testcases/tests/level2/html/files/area.html new file mode 100644 index 0000000..dddff68 --- /dev/null +++ b/test/testcases/tests/level2/html/files/area.html @@ -0,0 +1,14 @@ + + + + +NIST DOM HTML Test - Area + + +

+ +Domain + +

+ + diff --git a/test/testcases/tests/level2/html/files/area.xhtml b/test/testcases/tests/level2/html/files/area.xhtml new file mode 100644 index 0000000..1e497f3 --- /dev/null +++ b/test/testcases/tests/level2/html/files/area.xhtml @@ -0,0 +1,17 @@ + + + + +NIST DOM HTML Test - Area + + +

+ +Domain + +

+ + + diff --git a/test/testcases/tests/level2/html/files/area.xml b/test/testcases/tests/level2/html/files/area.xml new file mode 100644 index 0000000..1e497f3 --- /dev/null +++ b/test/testcases/tests/level2/html/files/area.xml @@ -0,0 +1,17 @@ + + + + +NIST DOM HTML Test - Area + + +

+ +Domain + +

+ + + diff --git a/test/testcases/tests/level2/html/files/area2.html b/test/testcases/tests/level2/html/files/area2.html new file mode 100644 index 0000000..f1ae081 --- /dev/null +++ b/test/testcases/tests/level2/html/files/area2.html @@ -0,0 +1,15 @@ + + + + +NIST DOM HTML Test - Area + + +

+ +Domain + +

+ + diff --git a/test/testcases/tests/level2/html/files/area2.xhtml b/test/testcases/tests/level2/html/files/area2.xhtml new file mode 100644 index 0000000..5476bee --- /dev/null +++ b/test/testcases/tests/level2/html/files/area2.xhtml @@ -0,0 +1,16 @@ + + + + +NIST DOM HTML Test - Area + + +

+ +Domain + +

+ + diff --git a/test/testcases/tests/level2/html/files/area2.xml b/test/testcases/tests/level2/html/files/area2.xml new file mode 100644 index 0000000..5476bee --- /dev/null +++ b/test/testcases/tests/level2/html/files/area2.xml @@ -0,0 +1,16 @@ + + + + +NIST DOM HTML Test - Area + + +

+ +Domain + +

+ + -- cgit v1.2.3