From 45a19586c0e59f476bccb53dd7e9b759017e38fe Mon Sep 17 00:00:00 2001 From: rsk1994 Date: Fri, 6 Jun 2014 06:19:49 +0530 Subject: IFrame Element --- Makefile | 1 + include/dom/dom.h | 1 + include/dom/html/html_iframe_element.h | 75 ++++++ src/html/Makefile | 3 +- src/html/html_document.c | 4 + src/html/html_frame_element.h | 2 +- src/html/html_iframe_element.c | 262 +++++++++++++++++++++ src/html/html_iframe_element.h | 48 ++++ test/DOMTSHandler.pm | 1 + test/dom1-interfaces.xml | 6 + .../tests/level1/html/HTMLIFrameElement01.xml | 44 ++++ .../level1/html/HTMLIFrameElement01.xml.kfail | 44 ---- .../tests/level1/html/HTMLIFrameElement02.xml | 45 ++++ .../level1/html/HTMLIFrameElement02.xml.kfail | 45 ---- .../tests/level1/html/HTMLIFrameElement03.xml | 43 ++++ .../level1/html/HTMLIFrameElement03.xml.kfail | 43 ---- .../tests/level1/html/HTMLIFrameElement04.xml | 44 ++++ .../level1/html/HTMLIFrameElement04.xml.kfail | 44 ---- .../tests/level1/html/HTMLIFrameElement05.xml | 43 ++++ .../level1/html/HTMLIFrameElement05.xml.kfail | 43 ---- .../tests/level1/html/HTMLIFrameElement06.xml | 43 ++++ .../level1/html/HTMLIFrameElement06.xml.kfail | 43 ---- .../tests/level1/html/HTMLIFrameElement07.xml | 44 ++++ .../level1/html/HTMLIFrameElement07.xml.kfail | 44 ---- .../tests/level1/html/HTMLIFrameElement08.xml | 44 ++++ .../level1/html/HTMLIFrameElement08.xml.kfail | 44 ---- .../tests/level1/html/HTMLIFrameElement09.xml | 43 ++++ .../level1/html/HTMLIFrameElement09.xml.kfail | 43 ---- .../tests/level1/html/HTMLIFrameElement10.xml | 43 ++++ .../level1/html/HTMLIFrameElement10.xml.kfail | 43 ---- .../tests/level2/html/HTMLIFrameElement11.xml | 39 +++ .../level2/html/HTMLIFrameElement11.xml.kfail | 39 --- 32 files changed, 875 insertions(+), 478 deletions(-) create mode 100644 test/testcases/tests/level1/html/HTMLIFrameElement01.xml delete mode 100644 test/testcases/tests/level1/html/HTMLIFrameElement01.xml.kfail create mode 100644 test/testcases/tests/level1/html/HTMLIFrameElement02.xml delete mode 100644 test/testcases/tests/level1/html/HTMLIFrameElement02.xml.kfail create mode 100644 test/testcases/tests/level1/html/HTMLIFrameElement03.xml delete mode 100644 test/testcases/tests/level1/html/HTMLIFrameElement03.xml.kfail create mode 100644 test/testcases/tests/level1/html/HTMLIFrameElement04.xml delete mode 100644 test/testcases/tests/level1/html/HTMLIFrameElement04.xml.kfail create mode 100644 test/testcases/tests/level1/html/HTMLIFrameElement05.xml delete mode 100644 test/testcases/tests/level1/html/HTMLIFrameElement05.xml.kfail create mode 100644 test/testcases/tests/level1/html/HTMLIFrameElement06.xml delete mode 100644 test/testcases/tests/level1/html/HTMLIFrameElement06.xml.kfail create mode 100644 test/testcases/tests/level1/html/HTMLIFrameElement07.xml delete mode 100644 test/testcases/tests/level1/html/HTMLIFrameElement07.xml.kfail create mode 100644 test/testcases/tests/level1/html/HTMLIFrameElement08.xml delete mode 100644 test/testcases/tests/level1/html/HTMLIFrameElement08.xml.kfail create mode 100644 test/testcases/tests/level1/html/HTMLIFrameElement09.xml delete mode 100644 test/testcases/tests/level1/html/HTMLIFrameElement09.xml.kfail create mode 100644 test/testcases/tests/level1/html/HTMLIFrameElement10.xml delete mode 100644 test/testcases/tests/level1/html/HTMLIFrameElement10.xml.kfail create mode 100644 test/testcases/tests/level2/html/HTMLIFrameElement11.xml delete mode 100644 test/testcases/tests/level2/html/HTMLIFrameElement11.xml.kfail diff --git a/Makefile b/Makefile index 4dc8af6..569e554 100644 --- a/Makefile +++ b/Makefile @@ -133,6 +133,7 @@ INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):$(Is)/html_base_element.h INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):$(Is)/html_style_element.h INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):$(Is)/html_frameset_element.h INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):$(Is)/html_frame_element.h +INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):$(Is)/html_iframe_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 d8245ac..1392ee0 100644 --- a/include/dom/dom.h +++ b/include/dom/dom.h @@ -92,6 +92,7 @@ #include #include #include +#include /* DOM Events header */ #include diff --git a/include/dom/html/html_iframe_element.h b/include/dom/html/html_iframe_element.h index 2e182d5..f064cfe 100644 --- a/include/dom/html/html_iframe_element.h +++ b/include/dom/html/html_iframe_element.h @@ -3,5 +3,80 @@ * 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_iframe_element_h_ +#define dom_html_iframe_element_h_ +#include +#include +#include + +#include +typedef struct dom_html_iframe_element dom_html_iframe_element; + +dom_exception dom_html_iframe_element_get_frame_border( + dom_html_iframe_element *element, dom_string **frame_border); + +dom_exception dom_html_iframe_element_set_frame_border( + dom_html_iframe_element *element, dom_string *frame_border); + +dom_exception dom_html_iframe_element_get_align( + dom_html_iframe_element *element, dom_string **align); + +dom_exception dom_html_iframe_element_set_align( + dom_html_iframe_element *element, dom_string *align); + +dom_exception dom_html_iframe_element_set_long_desc( + dom_html_iframe_element *ele, dom_string *long_desc); + +dom_exception dom_html_iframe_element_get_long_desc( + dom_html_iframe_element *ele, dom_string **long_desc); + +dom_exception dom_html_iframe_element_get_margin_height( + dom_html_iframe_element *element, dom_string **margin_height); + +dom_exception dom_html_iframe_element_set_margin_height( + dom_html_iframe_element *element, dom_string *margin_height); + +dom_exception dom_html_iframe_element_get_margin_width( + dom_html_iframe_element *element, dom_string **margin_width); + +dom_exception dom_html_iframe_element_set_margin_width( + dom_html_iframe_element *element, dom_string *margin_width); + +dom_exception dom_html_iframe_element_get_name( + dom_html_iframe_element *element, dom_string **name); + +dom_exception dom_html_iframe_element_set_name( + dom_html_iframe_element *element, dom_string *name); + +dom_exception dom_html_iframe_element_get_scrolling( + dom_html_iframe_element *element, dom_string **scrolling); + +dom_exception dom_html_iframe_element_set_scrolling( + dom_html_iframe_element *element, dom_string *scrolling); + +dom_exception dom_html_iframe_element_get_src( + dom_html_iframe_element *element, dom_string **src); + +dom_exception dom_html_iframe_element_set_src( + dom_html_iframe_element *element, dom_string *src); + +dom_exception dom_html_iframe_element_get_height( + dom_html_iframe_element *element, dom_string **height); + +dom_exception dom_html_iframe_element_set_height( + dom_html_iframe_element *element, dom_string *height); + +dom_exception dom_html_iframe_element_get_width( + dom_html_iframe_element *element, dom_string **width); + +dom_exception dom_html_iframe_element_set_width( + dom_html_iframe_element *element, dom_string *width); + +dom_exception dom_html_iframe_element_get_content_document( + dom_html_iframe_element *ele, + dom_document **content_document); + +#endif diff --git a/src/html/Makefile b/src/html/Makefile index fa707d4..95550ab 100644 --- a/src/html/Makefile +++ b/src/html/Makefile @@ -18,10 +18,9 @@ DIR_SOURCES := \ html_map_element.c html_script_element.c html_tablecaption_element.c \ html_tablecell_element.c html_tablecol_element.c html_tablesection_element.c \ html_table_element.c html_tablerow_element.c html_frameset_element.c \ - html_frame_element.c + html_frame_element.c html_iframe_element.c UNINMPLEMENTED_SOURCES := \ html_isindex_element.c \ - html_iframe_element.c include $(NSBUILD)/Makefile.subdir diff --git a/src/html/html_document.c b/src/html/html_document.c index cf8d1aa..5d68d51 100644 --- a/src/html/html_document.c +++ b/src/html/html_document.c @@ -59,6 +59,7 @@ #include "html/html_style_element.h" #include "html/html_frameset_element.h" #include "html/html_frame_element.h" +#include "html/html_iframe_element.h" #include "core/attr.h" #include "core/string.h" @@ -373,6 +374,9 @@ _dom_html_document_create_element_internal(dom_html_document *html, } else if (dom_string_caseless_isequal(tag_name, html->memoised[hds_FRAME])) { exc = _dom_html_frame_element_create(html, namespace, prefix, (dom_html_frame_element **) result); + } else if (dom_string_caseless_isequal(tag_name, html->memoised[hds_IFRAME])) { + exc = _dom_html_iframe_element_create(html, namespace, prefix, + (dom_html_iframe_element **) result); } else { exc = _dom_html_element_create(html, tag_name, namespace, prefix, result); diff --git a/src/html/html_frame_element.h b/src/html/html_frame_element.h index 77a137b..c313cbc 100644 --- a/src/html/html_frame_element.h +++ b/src/html/html_frame_element.h @@ -9,7 +9,7 @@ #ifndef dom_internal_html_frame_element_h_ #define dom_internal_html_frame_element_h_ -#include +#include #include "html/html_element.h" diff --git a/src/html/html_iframe_element.c b/src/html/html_iframe_element.c index 2e182d5..6f15b3e 100644 --- a/src/html/html_iframe_element.c +++ b/src/html/html_iframe_element.c @@ -3,5 +3,267 @@ * 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_iframe_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_IFRAME_ELEMENT + }, + DOM_HTML_IFRAME_ELEMENT_PROTECT_VTABLE +}; + +/** + * Create a dom_html_iframe_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_iframe_element_create(struct dom_html_document *doc, + dom_string *namespace, dom_string *prefix, + struct dom_html_iframe_element **ele) +{ + struct dom_node_internal *node; + + *ele = malloc(sizeof(dom_html_iframe_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_iframe_element_initialise(doc, namespace, prefix, *ele); +} + +/** + * Initialise a dom_html_iframe_element object + * + * \param doc The document object + * \param ele The dom_html_iframe_element object + * \return DOM_NO_ERR on success, appropriate dom_exception on failure. + */ +dom_exception _dom_html_iframe_element_initialise(struct dom_html_document *doc, + dom_string *namespace, dom_string *prefix, + struct dom_html_iframe_element *ele) +{ + dom_string *scrolling_default = NULL; + dom_exception err; + err = dom_string_create((const uint8_t *) "auto", SLEN("auto"), &scrolling_default); + if (err != DOM_NO_ERR) + return err; + + + dom_string *frame_border_default = NULL; + err = dom_string_create((const uint8_t *) "1", SLEN("1"), &frame_border_default); + if (err != DOM_NO_ERR) + return err; + + err = _dom_html_element_initialise(doc, &ele->base, + doc->memoised[hds_IFRAME], + namespace, prefix); + + ele->scrolling_default = scrolling_default; + ele->frame_border_default = frame_border_default; + + return err; +} + +/** + * Finalise a dom_html_iframe_element object + * + * \param ele The dom_html_iframe_element object + */ +void _dom_html_iframe_element_finalise(struct dom_html_iframe_element *ele) +{ + _dom_html_element_finalise(&ele->base); +} + +/** + * Destroy a dom_html_iframe_element object + * + * \param ele The dom_html_iframe_element object + */ +void _dom_html_iframe_element_destroy(struct dom_html_iframe_element *ele) +{ + _dom_html_iframe_element_finalise(ele); + free(ele); +} + +/*------------------------------------------------------------------------*/ +/* The protected virtual functions */ + +/* The virtual function used to parse attribute value, see src/core/element.c + * for detail */ +dom_exception _dom_html_iframe_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_iframe_element_destroy(dom_node_internal *node) +{ + _dom_html_iframe_element_destroy((struct dom_html_iframe_element *) node); +} + +/* The virtual copy function, see src/core/node.c for detail */ +dom_exception _dom_html_iframe_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_iframe_element_get_##attr( \ + dom_html_iframe_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_iframe_element_set_##attr( \ + dom_html_iframe_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(long_desc); +SIMPLE_GET_SET(align); +SIMPLE_GET_SET(name); +SIMPLE_GET_SET(src); +SIMPLE_GET_SET(margin_width); +SIMPLE_GET_SET(margin_height); +SIMPLE_SET(scrolling); +SIMPLE_SET(frame_border); +SIMPLE_GET_SET(width); +SIMPLE_GET_SET(height); + + +/** + * Get the frame_border property + * + * \param ele The dom_html_iframe_element object + * \param iframe_border The returned status + * \return DOM_NO_ERR on success, appropriate dom_exception on failure. + */ +dom_exception dom_html_iframe_element_get_frame_border( + dom_html_iframe_element *ele, + dom_string **frame_border) +{ + dom_html_document *doc; + bool has_value = false; + dom_exception err; + + doc = (dom_html_document *) ((dom_node_internal *) ele)->owner; + + err = dom_element_has_attribute(ele, + doc->memoised[hds_frame_border], &has_value); + if(err !=DOM_NO_ERR) + return err; + + if(has_value) { + return dom_element_get_attribute(ele, + doc->memoised[hds_frame_border], frame_border); + } + + *frame_border = ele->frame_border_default; + if (*frame_border != NULL) + dom_string_ref(*frame_border); + return DOM_NO_ERR; +} + +/** + * Get the frame_border property + * + * \param ele The dom_html_iframe_element object + * \param scrolling The returned status + * \return DOM_NO_ERR on success, appropriate dom_exception on failure. + */ +dom_exception dom_html_iframe_element_get_scrolling( + dom_html_iframe_element *ele, + dom_string **scrolling) +{ + dom_html_document *doc; + bool has_value = false; + dom_exception err; + + doc = (dom_html_document *) ((dom_node_internal *) ele)->owner; + + err = dom_element_has_attribute(ele, + doc->memoised[hds_scrolling], &has_value); + if(err !=DOM_NO_ERR) + return err; + + if(has_value) { + return dom_element_get_attribute(ele, + doc->memoised[hds_scrolling], scrolling); + } + + *scrolling = ele->scrolling_default; + if (*scrolling != NULL) + dom_string_ref(*scrolling); + return DOM_NO_ERR; +} + +/** + * Get the frame_border property + * + * \param ele The dom_html_iframe_element object + * \param content_document The returned status + * \return DOM_NO_ERR on success, appropriate dom_exception on failure. + */ +dom_exception dom_html_iframe_element_get_content_document( + dom_html_iframe_element *ele, + dom_document **content_document) +{ + *content_document = dom_node_get_owner(ele); + return DOM_NO_ERR; +} diff --git a/src/html/html_iframe_element.h b/src/html/html_iframe_element.h index 2e182d5..dafc9e1 100644 --- a/src/html/html_iframe_element.h +++ b/src/html/html_iframe_element.h @@ -3,5 +3,53 @@ * 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_iframe_element_h_ +#define dom_internal_html_iframe_element_h_ + +#include +#include "html/html_element.h" + + +struct dom_html_iframe_element { + struct dom_html_element base; + /**< The base class */ + dom_string *scrolling_default; + dom_string *frame_border_default; +}; + +/* Create a dom_html_iframe_element object */ +dom_exception _dom_html_iframe_element_create(struct dom_html_document *doc, + dom_string *namespace, dom_string *prefix, + struct dom_html_iframe_element **ele); + +/* Initialise a dom_html_iframe_element object */ +dom_exception _dom_html_iframe_element_initialise(struct dom_html_document *doc, + dom_string *namespace, dom_string *prefix, + struct dom_html_iframe_element *ele); + +/* Finalise a dom_html_iframe_element object */ +void _dom_html_iframe_element_finalise(struct dom_html_iframe_element *ele); + +/* Destroy a dom_html_iframe_element object */ +void _dom_html_iframe_element_destroy(struct dom_html_iframe_element *ele); + +/* The protected virtual functions */ +dom_exception _dom_html_iframe_element_parse_attribute(dom_element *ele, + dom_string *name, dom_string *value, + dom_string **parsed); +void _dom_virtual_html_iframe_element_destroy(dom_node_internal *node); +dom_exception _dom_html_iframe_element_copy(dom_node_internal *old, + dom_node_internal **copy); + +#define DOM_HTML_IFRAME_ELEMENT_PROTECT_VTABLE \ + _dom_html_iframe_element_parse_attribute + +#define DOM_NODE_PROTECT_VTABLE_HTML_IFRAME_ELEMENT \ + _dom_virtual_html_iframe_element_destroy, \ + _dom_html_iframe_element_copy + +#endif + diff --git a/test/DOMTSHandler.pm b/test/DOMTSHandler.pm index ee9298c..304ac29 100644 --- a/test/DOMTSHandler.pm +++ b/test/DOMTSHandler.pm @@ -64,6 +64,7 @@ our %special_prefix = ( HTMLTableCaptionElement => "dom_html_table_caption_element", HTMLTableSectionElement => "dom_html_table_section_element", HTMLIsIndexElement => "dom_html_isindex_element", + HTMLIFrameElement => "dom_html_iframe_element", caption => "dom_html_table_caption_element *", section => "dom_html_table_section_element *", createCaption => "dom_html_element *", diff --git a/test/dom1-interfaces.xml b/test/dom1-interfaces.xml index 25d29d8..fc88b80 100644 --- a/test/dom1-interfaces.xml +++ b/test/dom1-interfaces.xml @@ -3667,5 +3667,11 @@ See W3C License http://www.w3.org/Consortium/Legal/ for more details.

Frame width. See thewidth attribute definitionin HTML 4.0.

+ + +

+ + + diff --git a/test/testcases/tests/level1/html/HTMLIFrameElement01.xml b/test/testcases/tests/level1/html/HTMLIFrameElement01.xml new file mode 100644 index 0000000..1280955 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLIFrameElement01.xml @@ -0,0 +1,44 @@ + + + + + + + +HTMLIFrameElement01 +NIST + + The align attribute aligns this object(vertically or horizontally with + respect to its surrounding text. + + Retrieve the align attribute of the first IFRAME element and examine + it's value. + +Rick Rivello +2002-05-08 + + + + + + + + + + + + + diff --git a/test/testcases/tests/level1/html/HTMLIFrameElement01.xml.kfail b/test/testcases/tests/level1/html/HTMLIFrameElement01.xml.kfail deleted file mode 100644 index 1280955..0000000 --- a/test/testcases/tests/level1/html/HTMLIFrameElement01.xml.kfail +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - -HTMLIFrameElement01 -NIST - - The align attribute aligns this object(vertically or horizontally with - respect to its surrounding text. - - Retrieve the align attribute of the first IFRAME element and examine - it's value. - -Rick Rivello -2002-05-08 - - - - - - - - - - - - - diff --git a/test/testcases/tests/level1/html/HTMLIFrameElement02.xml b/test/testcases/tests/level1/html/HTMLIFrameElement02.xml new file mode 100644 index 0000000..c815c67 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLIFrameElement02.xml @@ -0,0 +1,45 @@ + + + + + + + +HTMLIFrameElement02 +NIST + + The frameBorder attribute specifies the request for frame borders. + (frameBorder=1 A border is drawn) + (FrameBorder=0 A border is not drawn) + + Retrieve the frameBorder attribute of the first IFRAME element and examine + it's value. + +Rick Rivello +2002-05-08 + + + + + + + + + + + + + diff --git a/test/testcases/tests/level1/html/HTMLIFrameElement02.xml.kfail b/test/testcases/tests/level1/html/HTMLIFrameElement02.xml.kfail deleted file mode 100644 index c815c67..0000000 --- a/test/testcases/tests/level1/html/HTMLIFrameElement02.xml.kfail +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - -HTMLIFrameElement02 -NIST - - The frameBorder attribute specifies the request for frame borders. - (frameBorder=1 A border is drawn) - (FrameBorder=0 A border is not drawn) - - Retrieve the frameBorder attribute of the first IFRAME element and examine - it's value. - -Rick Rivello -2002-05-08 - - - - - - - - - - - - - diff --git a/test/testcases/tests/level1/html/HTMLIFrameElement03.xml b/test/testcases/tests/level1/html/HTMLIFrameElement03.xml new file mode 100644 index 0000000..3842aa3 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLIFrameElement03.xml @@ -0,0 +1,43 @@ + + + + + + + +HTMLIFrameElement03 +NIST + + The height attribute specifies the frame height. + + Retrieve the height attribute of the first IFRAME element and examine + it's value. + +Rick Rivello +2002-05-08 + + + + + + + + + + + + + diff --git a/test/testcases/tests/level1/html/HTMLIFrameElement03.xml.kfail b/test/testcases/tests/level1/html/HTMLIFrameElement03.xml.kfail deleted file mode 100644 index 3842aa3..0000000 --- a/test/testcases/tests/level1/html/HTMLIFrameElement03.xml.kfail +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - -HTMLIFrameElement03 -NIST - - The height attribute specifies the frame height. - - Retrieve the height attribute of the first IFRAME element and examine - it's value. - -Rick Rivello -2002-05-08 - - - - - - - - - - - - - diff --git a/test/testcases/tests/level1/html/HTMLIFrameElement04.xml b/test/testcases/tests/level1/html/HTMLIFrameElement04.xml new file mode 100644 index 0000000..65535fd --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLIFrameElement04.xml @@ -0,0 +1,44 @@ + + + + + + + +HTMLIFrameElement04 +NIST + + The longDesc attribute specifies a URI designating a long description + of this image or frame. + + Retrieve the longDesc attribute of the first IFRAME element and examine + its value. + +Rick Rivello +2002-05-08 + + + + + + + + + + + + + diff --git a/test/testcases/tests/level1/html/HTMLIFrameElement04.xml.kfail b/test/testcases/tests/level1/html/HTMLIFrameElement04.xml.kfail deleted file mode 100644 index 65535fd..0000000 --- a/test/testcases/tests/level1/html/HTMLIFrameElement04.xml.kfail +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - -HTMLIFrameElement04 -NIST - - The longDesc attribute specifies a URI designating a long description - of this image or frame. - - Retrieve the longDesc attribute of the first IFRAME element and examine - its value. - -Rick Rivello -2002-05-08 - - - - - - - - - - - - - diff --git a/test/testcases/tests/level1/html/HTMLIFrameElement05.xml b/test/testcases/tests/level1/html/HTMLIFrameElement05.xml new file mode 100644 index 0000000..5ba9855 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLIFrameElement05.xml @@ -0,0 +1,43 @@ + + + + + + + +HTMLIFrameElement05 +NIST + + The marginWidth attribute specifies the frame margin width, in pixels. + + Retrieve the marginWidth attribute of the first FRAME element and examine + it's value. + +Rick Rivello +2002-05-08 + + + + + + + + + + + + + diff --git a/test/testcases/tests/level1/html/HTMLIFrameElement05.xml.kfail b/test/testcases/tests/level1/html/HTMLIFrameElement05.xml.kfail deleted file mode 100644 index 5ba9855..0000000 --- a/test/testcases/tests/level1/html/HTMLIFrameElement05.xml.kfail +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - -HTMLIFrameElement05 -NIST - - The marginWidth attribute specifies the frame margin width, in pixels. - - Retrieve the marginWidth attribute of the first FRAME element and examine - it's value. - -Rick Rivello -2002-05-08 - - - - - - - - - - - - - diff --git a/test/testcases/tests/level1/html/HTMLIFrameElement06.xml b/test/testcases/tests/level1/html/HTMLIFrameElement06.xml new file mode 100644 index 0000000..85654d7 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLIFrameElement06.xml @@ -0,0 +1,43 @@ + + + + + + + +HTMLIFrameElement06 +NIST + + The marginHeight attribute specifies the frame margin height, in pixels. + + Retrieve the marginHeight attribute of the first IFRAME element and examine + it's value. + +Rick Rivello +2002-05-08 + + + + + + + + + + + + + diff --git a/test/testcases/tests/level1/html/HTMLIFrameElement06.xml.kfail b/test/testcases/tests/level1/html/HTMLIFrameElement06.xml.kfail deleted file mode 100644 index 85654d7..0000000 --- a/test/testcases/tests/level1/html/HTMLIFrameElement06.xml.kfail +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - -HTMLIFrameElement06 -NIST - - The marginHeight attribute specifies the frame margin height, in pixels. - - Retrieve the marginHeight attribute of the first IFRAME element and examine - it's value. - -Rick Rivello -2002-05-08 - - - - - - - - - - - - - diff --git a/test/testcases/tests/level1/html/HTMLIFrameElement07.xml b/test/testcases/tests/level1/html/HTMLIFrameElement07.xml new file mode 100644 index 0000000..8143aa5 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLIFrameElement07.xml @@ -0,0 +1,44 @@ + + + + + + + +HTMLIFrameElement07 +NIST + + The name attribute specifies the frame name(object of the target + attribute). + + Retrieve the name attribute of the first IFRAME element and examine + it's value. + +Rick Rivello +2002-05-08 + + + + + + + + + + + + + diff --git a/test/testcases/tests/level1/html/HTMLIFrameElement07.xml.kfail b/test/testcases/tests/level1/html/HTMLIFrameElement07.xml.kfail deleted file mode 100644 index 8143aa5..0000000 --- a/test/testcases/tests/level1/html/HTMLIFrameElement07.xml.kfail +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - -HTMLIFrameElement07 -NIST - - The name attribute specifies the frame name(object of the target - attribute). - - Retrieve the name attribute of the first IFRAME element and examine - it's value. - -Rick Rivello -2002-05-08 - - - - - - - - - - - - - diff --git a/test/testcases/tests/level1/html/HTMLIFrameElement08.xml b/test/testcases/tests/level1/html/HTMLIFrameElement08.xml new file mode 100644 index 0000000..729c1a9 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLIFrameElement08.xml @@ -0,0 +1,44 @@ + + + + + + + +HTMLIFrameElement08 +NIST + + The scrolling attribute specifies whether or not the frame should have + scrollbars. + + Retrieve the scrolling attribute of the first FRAME element and examine + it's value. + +Rick Rivello +2002-05-08 + + + + + + + + + + + + + diff --git a/test/testcases/tests/level1/html/HTMLIFrameElement08.xml.kfail b/test/testcases/tests/level1/html/HTMLIFrameElement08.xml.kfail deleted file mode 100644 index 729c1a9..0000000 --- a/test/testcases/tests/level1/html/HTMLIFrameElement08.xml.kfail +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - -HTMLIFrameElement08 -NIST - - The scrolling attribute specifies whether or not the frame should have - scrollbars. - - Retrieve the scrolling attribute of the first FRAME element and examine - it's value. - -Rick Rivello -2002-05-08 - - - - - - - - - - - - - diff --git a/test/testcases/tests/level1/html/HTMLIFrameElement09.xml b/test/testcases/tests/level1/html/HTMLIFrameElement09.xml new file mode 100644 index 0000000..e9cc84b --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLIFrameElement09.xml @@ -0,0 +1,43 @@ + + + + + + + +HTMLIFrameElement09 +NIST + + The src attribute specifies a URI designating the initial frame contents. + + Retrieve the src attribute of the first FRAME element and examine + it's value. + +Rick Rivello +2002-05-08 + + + + + + + + + + + + + diff --git a/test/testcases/tests/level1/html/HTMLIFrameElement09.xml.kfail b/test/testcases/tests/level1/html/HTMLIFrameElement09.xml.kfail deleted file mode 100644 index e9cc84b..0000000 --- a/test/testcases/tests/level1/html/HTMLIFrameElement09.xml.kfail +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - -HTMLIFrameElement09 -NIST - - The src attribute specifies a URI designating the initial frame contents. - - Retrieve the src attribute of the first FRAME element and examine - it's value. - -Rick Rivello -2002-05-08 - - - - - - - - - - - - - diff --git a/test/testcases/tests/level1/html/HTMLIFrameElement10.xml b/test/testcases/tests/level1/html/HTMLIFrameElement10.xml new file mode 100644 index 0000000..7278bb4 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLIFrameElement10.xml @@ -0,0 +1,43 @@ + + + + + + + +HTMLIFrameElement10 +NIST + + The width attribute specifies the frame width. + + Retrieve the width attribute of the first IFRAME element and examine + it's value. + +Rick Rivello +2002-05-08 + + + + + + + + + + + + + diff --git a/test/testcases/tests/level1/html/HTMLIFrameElement10.xml.kfail b/test/testcases/tests/level1/html/HTMLIFrameElement10.xml.kfail deleted file mode 100644 index 7278bb4..0000000 --- a/test/testcases/tests/level1/html/HTMLIFrameElement10.xml.kfail +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - -HTMLIFrameElement10 -NIST - - The width attribute specifies the frame width. - - Retrieve the width attribute of the first IFRAME element and examine - it's value. - -Rick Rivello -2002-05-08 - - - - - - - - - - - - - diff --git a/test/testcases/tests/level2/html/HTMLIFrameElement11.xml b/test/testcases/tests/level2/html/HTMLIFrameElement11.xml new file mode 100644 index 0000000..4220a43 --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLIFrameElement11.xml @@ -0,0 +1,39 @@ + + + + + + +HTMLIFrameElement11 +NIST + + Retrieve the contentDocument attribute of the second IFRAME element + and examine its title. + +Rick Rivello +2002-07-03 + + + + + + + + + + +<assertEquals actual="vtitle" expected='"NIST DOM HTML Test - IFRAME2"' id="titleLink" ignoreCase="false" /> +</test> diff --git a/test/testcases/tests/level2/html/HTMLIFrameElement11.xml.kfail b/test/testcases/tests/level2/html/HTMLIFrameElement11.xml.kfail deleted file mode 100644 index c77d2f4..0000000 --- a/test/testcases/tests/level2/html/HTMLIFrameElement11.xml.kfail +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> - -<!-- - -Copyright (c) 2001-2004 World Wide Web Consortium, -(Massachusetts Institute of Technology, Institut National de -Recherche en Informatique et en Automatique, Keio University). All -Rights Reserved. This program is distributed under the W3C's Software -Intellectual Property License. This program is distributed in the -hope that it will be useful, but WITHOUT ANY WARRANTY; without even -the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR -PURPOSE. - -See W3C License http://www.w3.org/Consortium/Legal/ for more details. - ---> -<!DOCTYPE test SYSTEM "dom2.dtd"> -<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-2" name="HTMLIFrameElement11"> -<metadata> -<title>HTMLIFrameElement11 -NIST - - Retrieve the contentDocument attribute of the second IFRAME element - and examine its title. - -Rick Rivello -2002-07-03 - - - - - - - - - - -<assertEquals actual="vtitle" expected='"NIST DOM HTML Test - FRAME"' id="titleLink" ignoreCase="false" /> -</test> -- cgit v1.2.3