Gitweb links:
...log
http://git.netsurf-browser.org/libdom.git/shortlog/15fa04e97c7c0c9108c032...
...commit
http://git.netsurf-browser.org/libdom.git/commit/15fa04e97c7c0c9108c0324b...
...tree
http://git.netsurf-browser.org/libdom.git/tree/15fa04e97c7c0c9108c0324bae...
The branch, jmb/libdom-select has been updated
via 15fa04e97c7c0c9108c0324bae4dfd384e2eb3be (commit)
from 2a9572f844e04332d6a448b2f52be8ba2a5e8784 (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/commitdiff/15fa04e97c7c0c9108c0...
commit 15fa04e97c7c0c9108c0324bae4dfd384e2eb3be
Author: John-Mark Bell <jmb(a)netsurf-browser.org>
Commit: John-Mark Bell <jmb(a)netsurf-browser.org>
Enable HTMLSelectElement tests
diff --git a/include/dom/html/html_select_element.h
b/include/dom/html/html_select_element.h
index 89b6844..b92abd6 100644
--- a/include/dom/html/html_select_element.h
+++ b/include/dom/html/html_select_element.h
@@ -40,9 +40,12 @@ dom_exception dom_html_select_element_set_length(
dom_exception dom_html_select_element_get_form(
dom_html_select_element *ele, dom_html_form_element **form);
-dom_exception dom_html_select_element_get_options(
+dom_exception dom__html_select_element_get_options(
dom_html_select_element *ele,
struct dom_html_options_collection **col);
+#define dom_html_select_element_get_options(e, c) \
+ dom__html_select_element_get_options((dom_html_select_element *) (e), \
+ (struct dom_html_options_collection **) (c))
dom_exception dom_html_select_element_get_disabled(
dom_html_select_element *ele, bool *disabled);
@@ -70,8 +73,12 @@ dom_exception dom_html_select_element_set_tab_index(
dom_html_select_element *ele, unsigned long tab_index);
/* Functions */
-dom_exception dom_html_select_element_add(dom_html_select_element *select,
+dom_exception dom__html_select_element_add(dom_html_select_element *select,
struct dom_html_element *ele, struct dom_html_element *before);
+#define dom_html_select_element_add(s, e, b) \
+ dom__html_select_element_add((dom_html_select_element *) (s), \
+ (struct dom_html_element *) (e), \
+ (struct dom_html_element *) (b))
dom_exception dom_html_select_element_remove(dom_html_select_element *ele,
long index);
dom_exception dom_html_select_element_blur(struct dom_html_select_element *ele);
diff --git a/src/html/html_select_element.c b/src/html/html_select_element.c
index 9992376..89e46a9 100644
--- a/src/html/html_select_element.c
+++ b/src/html/html_select_element.c
@@ -361,7 +361,7 @@ dom_exception dom_html_select_element_get_form(
* \param col THe returned collection object
* \return DOM_NO_ERR on success.
*/
-dom_exception dom_html_select_element_get_options(
+dom_exception dom__html_select_element_get_options(
dom_html_select_element *ele,
struct dom_html_options_collection **col)
{
@@ -524,7 +524,7 @@ dom_exception dom_html_select_element_set_tab_index(
/* Functions */
-dom_exception dom_html_select_element_add(dom_html_select_element *select,
+dom_exception dom__html_select_element_add(dom_html_select_element *select,
struct dom_html_element *ele, struct dom_html_element *before)
{
UNUSED(select);
diff --git a/test/DOMTSHandler.pm b/test/DOMTSHandler.pm
index 890a8ff..93a97e9 100644
--- a/test/DOMTSHandler.pm
+++ b/test/DOMTSHandler.pm
@@ -1244,6 +1244,13 @@ sub generate_control_statement {
print "foreach_initialise_domnamednodemap($coll,
\&iterator$iterator_index);\n";
print "while(get_next_domnamednodemap($coll, \&iterator$iterator_index,
\&$member)) {\n";
}
+
+ if ($self->{"var"}->{$coll} eq "HTMLCollection") {
+ $iterator_index++;
+ print "unsigned int iterator$iterator_index = 0;";
+ print "foreach_initialise_domhtmlcollection($coll,
\&iterator$iterator_index);\n";
+ print "while(get_next_domhtmlcollection($coll, \&iterator$iterator_index,
\&$member)) {\n";
+ }
}
}
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement01.xml
b/test/testcases/tests/level1/html/HTMLSelectElement01.xml
new file mode 100644
index 0000000..3b08881
--- /dev/null
+++ b/test/testcases/tests/level1/html/HTMLSelectElement01.xml
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+Copyright (c) 2001 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 "dom1.dtd">
+<test
xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1"
name="HTMLSelectElement01">
+<metadata>
+<title>HTMLSelectElement01</title>
+<creator>NIST</creator>
+<description>
+ The type attribute is the string "select-multiple" when multiple
+ attribute is true.
+
+ Retrieve the type attribute from the first SELECT element and
+ examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject
resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-o...
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vtype" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="select"
willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc"
var="nodeList" tagname='"select"'/>
+<assertSize collection="nodeList" size="3"
id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode"
index="0"/>
+<type interface="HTMLSelectElement" obj="testNode"
var="vtype"/>
+<assertEquals actual="vtype" expected='"select-multiple"'
id="typeLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement01.xml.kfail
b/test/testcases/tests/level1/html/HTMLSelectElement01.xml.kfail
deleted file mode 100644
index 3b08881..0000000
--- a/test/testcases/tests/level1/html/HTMLSelectElement01.xml.kfail
+++ /dev/null
@@ -1,44 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
-
-<!--
-
-Copyright (c) 2001 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 "dom1.dtd">
-<test
xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1"
name="HTMLSelectElement01">
-<metadata>
-<title>HTMLSelectElement01</title>
-<creator>NIST</creator>
-<description>
- The type attribute is the string "select-multiple" when multiple
- attribute is true.
-
- Retrieve the type attribute from the first SELECT element and
- examine its value.
-</description>
-<contributor>Mary Brady</contributor>
-<date qualifier="created">2002-02-22</date>
-<subject
resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-o...
-</metadata>
-<var name="nodeList" type="NodeList"/>
-<var name="testNode" type="Node"/>
-<var name="vtype" type="DOMString"/>
-<var name="doc" type="Document"/>
-<load var="doc" href="select"
willBeModified="false"/>
-<getElementsByTagName interface="Document" obj="doc"
var="nodeList" tagname='"select"'/>
-<assertSize collection="nodeList" size="3"
id="Asize"/>
-<item interface="NodeList" obj="nodeList" var="testNode"
index="0"/>
-<type interface="HTMLSelectElement" obj="testNode"
var="vtype"/>
-<assertEquals actual="vtype" expected='"select-multiple"'
id="typeLink" ignoreCase="false"/>
-</test>
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement02.xml
b/test/testcases/tests/level1/html/HTMLSelectElement02.xml
new file mode 100644
index 0000000..f9e865d
--- /dev/null
+++ b/test/testcases/tests/level1/html/HTMLSelectElement02.xml
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+Copyright (c) 2001 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 "dom1.dtd">
+<test
xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1"
name="HTMLSelectElement02">
+<metadata>
+<title>HTMLSelectElement02</title>
+<creator>NIST</creator>
+<description>
+ The selectedIndex attribute specifies the ordinal index of the selected
+ option.
+
+ Retrieve the selectedIndex attribute from the first SELECT element and
+ examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject
resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-o...
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vselectedindex" type="int"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="select"
willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc"
var="nodeList" tagname='"select"'/>
+<assertSize collection="nodeList" size="3"
id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode"
index="0"/>
+<selectedIndex interface="HTMLSelectElement" obj="testNode"
var="vselectedindex"/>
+<assertEquals actual="vselectedindex" expected="0"
id="selectedIndexLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement02.xml.kfail
b/test/testcases/tests/level1/html/HTMLSelectElement02.xml.kfail
deleted file mode 100644
index f9e865d..0000000
--- a/test/testcases/tests/level1/html/HTMLSelectElement02.xml.kfail
+++ /dev/null
@@ -1,44 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
-
-<!--
-
-Copyright (c) 2001 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 "dom1.dtd">
-<test
xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1"
name="HTMLSelectElement02">
-<metadata>
-<title>HTMLSelectElement02</title>
-<creator>NIST</creator>
-<description>
- The selectedIndex attribute specifies the ordinal index of the selected
- option.
-
- Retrieve the selectedIndex attribute from the first SELECT element and
- examine its value.
-</description>
-<contributor>Mary Brady</contributor>
-<date qualifier="created">2002-02-22</date>
-<subject
resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-o...
-</metadata>
-<var name="nodeList" type="NodeList"/>
-<var name="testNode" type="Node"/>
-<var name="vselectedindex" type="int"/>
-<var name="doc" type="Document"/>
-<load var="doc" href="select"
willBeModified="false"/>
-<getElementsByTagName interface="Document" obj="doc"
var="nodeList" tagname='"select"'/>
-<assertSize collection="nodeList" size="3"
id="Asize"/>
-<item interface="NodeList" obj="nodeList" var="testNode"
index="0"/>
-<selectedIndex interface="HTMLSelectElement" obj="testNode"
var="vselectedindex"/>
-<assertEquals actual="vselectedindex" expected="0"
id="selectedIndexLink" ignoreCase="false"/>
-</test>
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement03.xml
b/test/testcases/tests/level1/html/HTMLSelectElement03.xml
new file mode 100644
index 0000000..97d217c
--- /dev/null
+++ b/test/testcases/tests/level1/html/HTMLSelectElement03.xml
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+Copyright (c) 2001 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 "dom1.dtd">
+<test
xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1"
name="HTMLSelectElement03">
+<metadata>
+<title>HTMLSelectElement03</title>
+<creator>NIST</creator>
+<description>
+ The selectedIndex attribute specifies the ordinal index of the selected
+ option. If no element is selected -1 is returned.
+
+ Retrieve the selectedIndex attribute from the second SELECT element and
+ examine its value.
+
+ Per
http://www.w3.org/TR/html401/interact/forms.html#h-17.6.1,
+ without an explicit selected attribute, user agent behavior is
+ undefined. There is no way to coerce no option to be selected.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject
resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-o...
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vselectedindex" type="int"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="select"
willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc"
var="nodeList" tagname='"select"'/>
+<assertSize collection="nodeList" size="3"
id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode"
index="1"/>
+<selectedIndex interface="HTMLSelectElement" obj="testNode"
var="vselectedindex"/>
+<!-- Commented assertion per section 17.6.3 -->
+<!-- assertEquals actual="vselectedindex" expected="-1"
id="selectedIndexLink" ignoreCase="false"/ -->
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement03.xml.kfail
b/test/testcases/tests/level1/html/HTMLSelectElement03.xml.kfail
deleted file mode 100644
index 97d217c..0000000
--- a/test/testcases/tests/level1/html/HTMLSelectElement03.xml.kfail
+++ /dev/null
@@ -1,49 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
-
-<!--
-
-Copyright (c) 2001 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 "dom1.dtd">
-<test
xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1"
name="HTMLSelectElement03">
-<metadata>
-<title>HTMLSelectElement03</title>
-<creator>NIST</creator>
-<description>
- The selectedIndex attribute specifies the ordinal index of the selected
- option. If no element is selected -1 is returned.
-
- Retrieve the selectedIndex attribute from the second SELECT element and
- examine its value.
-
- Per
http://www.w3.org/TR/html401/interact/forms.html#h-17.6.1,
- without an explicit selected attribute, user agent behavior is
- undefined. There is no way to coerce no option to be selected.
-</description>
-<contributor>Mary Brady</contributor>
-<date qualifier="created">2002-02-22</date>
-<subject
resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-o...
-</metadata>
-<var name="nodeList" type="NodeList"/>
-<var name="testNode" type="Node"/>
-<var name="vselectedindex" type="int"/>
-<var name="doc" type="Document"/>
-<load var="doc" href="select"
willBeModified="false"/>
-<getElementsByTagName interface="Document" obj="doc"
var="nodeList" tagname='"select"'/>
-<assertSize collection="nodeList" size="3"
id="Asize"/>
-<item interface="NodeList" obj="nodeList" var="testNode"
index="1"/>
-<selectedIndex interface="HTMLSelectElement" obj="testNode"
var="vselectedindex"/>
-<!-- Commented assertion per section 17.6.3 -->
-<!-- assertEquals actual="vselectedindex" expected="-1"
id="selectedIndexLink" ignoreCase="false"/ -->
-</test>
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement04.xml
b/test/testcases/tests/level1/html/HTMLSelectElement04.xml
new file mode 100644
index 0000000..11ff6ee
--- /dev/null
+++ b/test/testcases/tests/level1/html/HTMLSelectElement04.xml
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+Copyright (c) 2001 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 "dom1.dtd">
+<test
xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1"
name="HTMLSelectElement04">
+<metadata>
+<title>HTMLSelectElement04</title>
+<creator>NIST</creator>
+<description>
+ The value attribute specifies the current form control value.
+
+ Retrieve the value attribute from the first SELECT element and
+ examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject
resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-o...
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vvalue" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="select"
willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc"
var="nodeList" tagname='"select"'/>
+<assertSize collection="nodeList" size="3"
id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode"
index="0"/>
+<value interface="HTMLSelectElement" obj="testNode"
var="vvalue"/>
+<assertEquals actual="vvalue" expected='"EMP1"'
id="valueLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement04.xml.kfail
b/test/testcases/tests/level1/html/HTMLSelectElement04.xml.kfail
deleted file mode 100644
index 11ff6ee..0000000
--- a/test/testcases/tests/level1/html/HTMLSelectElement04.xml.kfail
+++ /dev/null
@@ -1,43 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
-
-<!--
-
-Copyright (c) 2001 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 "dom1.dtd">
-<test
xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1"
name="HTMLSelectElement04">
-<metadata>
-<title>HTMLSelectElement04</title>
-<creator>NIST</creator>
-<description>
- The value attribute specifies the current form control value.
-
- Retrieve the value attribute from the first SELECT element and
- examine its value.
-</description>
-<contributor>Mary Brady</contributor>
-<date qualifier="created">2002-02-22</date>
-<subject
resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-o...
-</metadata>
-<var name="nodeList" type="NodeList"/>
-<var name="testNode" type="Node"/>
-<var name="vvalue" type="DOMString"/>
-<var name="doc" type="Document"/>
-<load var="doc" href="select"
willBeModified="false"/>
-<getElementsByTagName interface="Document" obj="doc"
var="nodeList" tagname='"select"'/>
-<assertSize collection="nodeList" size="3"
id="Asize"/>
-<item interface="NodeList" obj="nodeList" var="testNode"
index="0"/>
-<value interface="HTMLSelectElement" obj="testNode"
var="vvalue"/>
-<assertEquals actual="vvalue" expected='"EMP1"'
id="valueLink" ignoreCase="false"/>
-</test>
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement05.xml
b/test/testcases/tests/level1/html/HTMLSelectElement05.xml
new file mode 100644
index 0000000..16c78e1
--- /dev/null
+++ b/test/testcases/tests/level1/html/HTMLSelectElement05.xml
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+Copyright (c) 2001 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 "dom1.dtd">
+<test
xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1"
name="HTMLSelectElement05">
+<metadata>
+<title>HTMLSelectElement05</title>
+<creator>NIST</creator>
+<description>
+ The length attribute specifies the number of options in this select.
+
+ Retrieve the length attribute from the first SELECT element and
+ examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject
resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-o...
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vlength" type="int"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="select"
willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc"
var="nodeList" tagname='"select"'/>
+<assertSize collection="nodeList" size="3"
id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode"
index="0"/>
+<length interface="HTMLSelectElement" obj="testNode"
var="vlength"/>
+<assertEquals actual="vlength" expected="5"
id="lengthLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement05.xml.kfail
b/test/testcases/tests/level1/html/HTMLSelectElement05.xml.kfail
deleted file mode 100644
index 16c78e1..0000000
--- a/test/testcases/tests/level1/html/HTMLSelectElement05.xml.kfail
+++ /dev/null
@@ -1,43 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
-
-<!--
-
-Copyright (c) 2001 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 "dom1.dtd">
-<test
xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1"
name="HTMLSelectElement05">
-<metadata>
-<title>HTMLSelectElement05</title>
-<creator>NIST</creator>
-<description>
- The length attribute specifies the number of options in this select.
-
- Retrieve the length attribute from the first SELECT element and
- examine its value.
-</description>
-<contributor>Mary Brady</contributor>
-<date qualifier="created">2002-02-22</date>
-<subject
resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-o...
-</metadata>
-<var name="nodeList" type="NodeList"/>
-<var name="testNode" type="Node"/>
-<var name="vlength" type="int"/>
-<var name="doc" type="Document"/>
-<load var="doc" href="select"
willBeModified="false"/>
-<getElementsByTagName interface="Document" obj="doc"
var="nodeList" tagname='"select"'/>
-<assertSize collection="nodeList" size="3"
id="Asize"/>
-<item interface="NodeList" obj="nodeList" var="testNode"
index="0"/>
-<length interface="HTMLSelectElement" obj="testNode"
var="vlength"/>
-<assertEquals actual="vlength" expected="5"
id="lengthLink" ignoreCase="false"/>
-</test>
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement06.xml
b/test/testcases/tests/level1/html/HTMLSelectElement06.xml
new file mode 100644
index 0000000..8ff66a0
--- /dev/null
+++ b/test/testcases/tests/level1/html/HTMLSelectElement06.xml
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+Copyright (c) 2001 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 "dom1.dtd">
+<test
xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1"
name="HTMLSelectElement06">
+<metadata>
+<title>HTMLSelectElement06</title>
+<creator>NIST</creator>
+<description>
+ The form attribute returns the FORM element containing this control.
+
+ Retrieve the form attribute from the first SELECT element
+ and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject
resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-o...
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vform" type="DOMString" />
+<var name="fNode" type="HTMLFormElement"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="select"
willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc"
var="nodeList" tagname='"select"'/>
+<assertSize collection="nodeList" size="3"
id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode"
index="0"/>
+<form interface="HTMLSelectElement" obj="testNode"
var="fNode"/>
+<id obj="fNode" var="vform"/>
+<assertEquals actual="vform" expected='"form1"'
id="formLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement06.xml.kfail
b/test/testcases/tests/level1/html/HTMLSelectElement06.xml.kfail
deleted file mode 100644
index 8ff66a0..0000000
--- a/test/testcases/tests/level1/html/HTMLSelectElement06.xml.kfail
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
-
-<!--
-
-Copyright (c) 2001 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 "dom1.dtd">
-<test
xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1"
name="HTMLSelectElement06">
-<metadata>
-<title>HTMLSelectElement06</title>
-<creator>NIST</creator>
-<description>
- The form attribute returns the FORM element containing this control.
-
- Retrieve the form attribute from the first SELECT element
- and examine its value.
-</description>
-<contributor>Mary Brady</contributor>
-<date qualifier="created">2002-02-22</date>
-<subject
resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-o...
-</metadata>
-<var name="nodeList" type="NodeList"/>
-<var name="testNode" type="Node"/>
-<var name="vform" type="DOMString" />
-<var name="fNode" type="HTMLFormElement"/>
-<var name="doc" type="Document"/>
-<load var="doc" href="select"
willBeModified="false"/>
-<getElementsByTagName interface="Document" obj="doc"
var="nodeList" tagname='"select"'/>
-<assertSize collection="nodeList" size="3"
id="Asize"/>
-<item interface="NodeList" obj="nodeList" var="testNode"
index="0"/>
-<form interface="HTMLSelectElement" obj="testNode"
var="fNode"/>
-<id obj="fNode" var="vform"/>
-<assertEquals actual="vform" expected='"form1"'
id="formLink" ignoreCase="false"/>
-</test>
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement07.xml
b/test/testcases/tests/level1/html/HTMLSelectElement07.xml
new file mode 100644
index 0000000..218b9d6
--- /dev/null
+++ b/test/testcases/tests/level1/html/HTMLSelectElement07.xml
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+Copyright (c) 2001 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 "dom1.dtd">
+<test
xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1"
name="HTMLSelectElement07">
+<metadata>
+<title>HTMLSelectElement07</title>
+<creator>NIST</creator>
+<description>
+ The form attribute returns null if control in not within the context of
+ a form.
+
+ Retrieve the second SELECT element and
+ examine its form element.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject
resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-o...
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vform" type="HTMLFormElement" />
+<var name="doc" type="Document"/>
+<load var="doc" href="select"
willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc"
var="nodeList" tagname='"select"'/>
+<assertSize collection="nodeList" size="3"
id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode"
index="1"/>
+<form interface="HTMLSelectElement" obj="testNode"
var="vform"/>
+<assertNull actual="vform" id="formNullLink"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement07.xml.kfail
b/test/testcases/tests/level1/html/HTMLSelectElement07.xml.kfail
deleted file mode 100644
index 218b9d6..0000000
--- a/test/testcases/tests/level1/html/HTMLSelectElement07.xml.kfail
+++ /dev/null
@@ -1,44 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
-
-<!--
-
-Copyright (c) 2001 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 "dom1.dtd">
-<test
xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1"
name="HTMLSelectElement07">
-<metadata>
-<title>HTMLSelectElement07</title>
-<creator>NIST</creator>
-<description>
- The form attribute returns null if control in not within the context of
- a form.
-
- Retrieve the second SELECT element and
- examine its form element.
-</description>
-<contributor>Mary Brady</contributor>
-<date qualifier="created">2002-02-22</date>
-<subject
resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-o...
-</metadata>
-<var name="nodeList" type="NodeList"/>
-<var name="testNode" type="Node"/>
-<var name="vform" type="HTMLFormElement" />
-<var name="doc" type="Document"/>
-<load var="doc" href="select"
willBeModified="false"/>
-<getElementsByTagName interface="Document" obj="doc"
var="nodeList" tagname='"select"'/>
-<assertSize collection="nodeList" size="3"
id="Asize"/>
-<item interface="NodeList" obj="nodeList" var="testNode"
index="1"/>
-<form interface="HTMLSelectElement" obj="testNode"
var="vform"/>
-<assertNull actual="vform" id="formNullLink"/>
-</test>
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement08.xml
b/test/testcases/tests/level1/html/HTMLSelectElement08.xml
new file mode 100644
index 0000000..12593fe
--- /dev/null
+++ b/test/testcases/tests/level1/html/HTMLSelectElement08.xml
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+Copyright (c) 2001 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 "dom1.dtd">
+<test
xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1"
name="HTMLSelectElement08">
+<metadata>
+<title>HTMLSelectElement08</title>
+<creator>NIST</creator>
+<description>
+ The options attribute returns a collection of OPTION elements contained
+ by this element.
+
+ Retrieve the options attribute from the first SELECT element and
+ examine the items of the returned collection.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject
resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-o...
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="optionsnodeList" type="HTMLCollection"/>
+<var name="testNode" type="Node"/>
+<var name="vareas" type="int" />
+<var name="doc" type="Document"/>
+<var name="optionName" type="DOMString"/>
+<var name="voption" type="Node"/>
+<var name="result" type="List"/>
+<var name="expectedOptions" type="List">
+<member>"option"</member>
+<member>"option"</member>
+<member>"option"</member>
+<member>"option"</member>
+<member>"option"</member>
+</var>
+<load var="doc" href="select"
willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc"
var="nodeList" tagname='"select"'/>
+<assertSize collection="nodeList" size="3"
id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode"
index="0"/>
+<options interface="HTMLSelectElement" obj="testNode"
var="optionsnodeList"/>
+<for-each collection="optionsnodeList" member="voption">
+<nodeName obj="voption" var="optionName"/>
+<append collection="result" item="optionName"/>
+</for-each>
+<assertEquals actual="result" expected="expectedOptions"
id="optionsLink" ignoreCase="auto"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement08.xml.kfail
b/test/testcases/tests/level1/html/HTMLSelectElement08.xml.kfail
deleted file mode 100644
index 12593fe..0000000
--- a/test/testcases/tests/level1/html/HTMLSelectElement08.xml.kfail
+++ /dev/null
@@ -1,59 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
-
-<!--
-
-Copyright (c) 2001 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 "dom1.dtd">
-<test
xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1"
name="HTMLSelectElement08">
-<metadata>
-<title>HTMLSelectElement08</title>
-<creator>NIST</creator>
-<description>
- The options attribute returns a collection of OPTION elements contained
- by this element.
-
- Retrieve the options attribute from the first SELECT element and
- examine the items of the returned collection.
-</description>
-<contributor>Mary Brady</contributor>
-<date qualifier="created">2002-02-22</date>
-<subject
resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-o...
-</metadata>
-<var name="nodeList" type="NodeList"/>
-<var name="optionsnodeList" type="HTMLCollection"/>
-<var name="testNode" type="Node"/>
-<var name="vareas" type="int" />
-<var name="doc" type="Document"/>
-<var name="optionName" type="DOMString"/>
-<var name="voption" type="Node"/>
-<var name="result" type="List"/>
-<var name="expectedOptions" type="List">
-<member>"option"</member>
-<member>"option"</member>
-<member>"option"</member>
-<member>"option"</member>
-<member>"option"</member>
-</var>
-<load var="doc" href="select"
willBeModified="false"/>
-<getElementsByTagName interface="Document" obj="doc"
var="nodeList" tagname='"select"'/>
-<assertSize collection="nodeList" size="3"
id="Asize"/>
-<item interface="NodeList" obj="nodeList" var="testNode"
index="0"/>
-<options interface="HTMLSelectElement" obj="testNode"
var="optionsnodeList"/>
-<for-each collection="optionsnodeList" member="voption">
-<nodeName obj="voption" var="optionName"/>
-<append collection="result" item="optionName"/>
-</for-each>
-<assertEquals actual="result" expected="expectedOptions"
id="optionsLink" ignoreCase="auto"/>
-</test>
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement09.xml
b/test/testcases/tests/level1/html/HTMLSelectElement09.xml
new file mode 100644
index 0000000..382510d
--- /dev/null
+++ b/test/testcases/tests/level1/html/HTMLSelectElement09.xml
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+Copyright (c) 2001 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 "dom1.dtd">
+<test
xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1"
name="HTMLSelectElement09">
+<metadata>
+<title>HTMLSelectElement09</title>
+<creator>NIST</creator>
+<description>
+ The disabled attribute indicates that this control is not available
+ within this context.
+
+ Retrieve the disabled attribute from the third SELECT element
+ and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject
resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-o...
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vdisabled" type="boolean" />
+<var name="doc" type="Document"/>
+<load var="doc" href="select"
willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc"
var="nodeList" tagname='"select"'/>
+<assertSize collection="nodeList" size="3"
id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode"
index="2"/>
+<disabled interface="HTMLSelectElement" obj="testNode"
var="vdisabled"/>
+<assertTrue actual="vdisabled" id="disabledLink"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement09.xml.kfail
b/test/testcases/tests/level1/html/HTMLSelectElement09.xml.kfail
deleted file mode 100644
index 382510d..0000000
--- a/test/testcases/tests/level1/html/HTMLSelectElement09.xml.kfail
+++ /dev/null
@@ -1,44 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
-
-<!--
-
-Copyright (c) 2001 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 "dom1.dtd">
-<test
xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1"
name="HTMLSelectElement09">
-<metadata>
-<title>HTMLSelectElement09</title>
-<creator>NIST</creator>
-<description>
- The disabled attribute indicates that this control is not available
- within this context.
-
- Retrieve the disabled attribute from the third SELECT element
- and examine its value.
-</description>
-<contributor>Mary Brady</contributor>
-<date qualifier="created">2002-02-22</date>
-<subject
resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-o...
-</metadata>
-<var name="nodeList" type="NodeList"/>
-<var name="testNode" type="Node"/>
-<var name="vdisabled" type="boolean" />
-<var name="doc" type="Document"/>
-<load var="doc" href="select"
willBeModified="false"/>
-<getElementsByTagName interface="Document" obj="doc"
var="nodeList" tagname='"select"'/>
-<assertSize collection="nodeList" size="3"
id="Asize"/>
-<item interface="NodeList" obj="nodeList" var="testNode"
index="2"/>
-<disabled interface="HTMLSelectElement" obj="testNode"
var="vdisabled"/>
-<assertTrue actual="vdisabled" id="disabledLink"/>
-</test>
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement10.xml
b/test/testcases/tests/level1/html/HTMLSelectElement10.xml
new file mode 100644
index 0000000..b9f5762
--- /dev/null
+++ b/test/testcases/tests/level1/html/HTMLSelectElement10.xml
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+Copyright (c) 2001 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 "dom1.dtd">
+<test
xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1"
name="HTMLSelectElement10">
+<metadata>
+<title>HTMLSelectElement10</title>
+<creator>NIST</creator>
+<description>
+ The multiple attribute(if true) indicates that multiple OPTION elements
+ may be selected
+
+ Retrieve the multiple attribute from the first SELECT element
+ and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject
resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-o...
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vmultiple" type="boolean" />
+<var name="doc" type="Document"/>
+<load var="doc" href="select"
willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc"
var="nodeList" tagname='"select"'/>
+<assertSize collection="nodeList" size="3"
id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode"
index="0"/>
+<multiple interface="HTMLSelectElement" obj="testNode"
var="vmultiple"/>
+<assertTrue actual="vmultiple" id="multipleLink"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement10.xml.kfail
b/test/testcases/tests/level1/html/HTMLSelectElement10.xml.kfail
deleted file mode 100644
index b9f5762..0000000
--- a/test/testcases/tests/level1/html/HTMLSelectElement10.xml.kfail
+++ /dev/null
@@ -1,44 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
-
-<!--
-
-Copyright (c) 2001 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 "dom1.dtd">
-<test
xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1"
name="HTMLSelectElement10">
-<metadata>
-<title>HTMLSelectElement10</title>
-<creator>NIST</creator>
-<description>
- The multiple attribute(if true) indicates that multiple OPTION elements
- may be selected
-
- Retrieve the multiple attribute from the first SELECT element
- and examine its value.
-</description>
-<contributor>Mary Brady</contributor>
-<date qualifier="created">2002-02-22</date>
-<subject
resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-o...
-</metadata>
-<var name="nodeList" type="NodeList"/>
-<var name="testNode" type="Node"/>
-<var name="vmultiple" type="boolean" />
-<var name="doc" type="Document"/>
-<load var="doc" href="select"
willBeModified="false"/>
-<getElementsByTagName interface="Document" obj="doc"
var="nodeList" tagname='"select"'/>
-<assertSize collection="nodeList" size="3"
id="Asize"/>
-<item interface="NodeList" obj="nodeList" var="testNode"
index="0"/>
-<multiple interface="HTMLSelectElement" obj="testNode"
var="vmultiple"/>
-<assertTrue actual="vmultiple" id="multipleLink"/>
-</test>
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement11.xml
b/test/testcases/tests/level1/html/HTMLSelectElement11.xml
new file mode 100644
index 0000000..ebb4d1b
--- /dev/null
+++ b/test/testcases/tests/level1/html/HTMLSelectElement11.xml
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+Copyright (c) 2001 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 "dom1.dtd">
+<test
xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1"
name="HTMLSelectElement11">
+<metadata>
+<title>HTMLSelectElement11</title>
+<creator>NIST</creator>
+<description>
+ The name attribute specifies the form control or object name when
+ submitted with a form.
+
+ Retrieve the name attribute from the first SELECT element and
+ examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject
resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-o...
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vname" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="select"
willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc"
var="nodeList" tagname='"select"'/>
+<assertSize collection="nodeList" size="3"
id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode"
index="0"/>
+<name interface="HTMLSelectElement" obj="testNode"
var="vname"/>
+<assertEquals actual="vname" expected='"select1"'
id="nameLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement11.xml.kfail
b/test/testcases/tests/level1/html/HTMLSelectElement11.xml.kfail
deleted file mode 100644
index ebb4d1b..0000000
--- a/test/testcases/tests/level1/html/HTMLSelectElement11.xml.kfail
+++ /dev/null
@@ -1,44 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
-
-<!--
-
-Copyright (c) 2001 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 "dom1.dtd">
-<test
xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1"
name="HTMLSelectElement11">
-<metadata>
-<title>HTMLSelectElement11</title>
-<creator>NIST</creator>
-<description>
- The name attribute specifies the form control or object name when
- submitted with a form.
-
- Retrieve the name attribute from the first SELECT element and
- examine its value.
-</description>
-<contributor>Mary Brady</contributor>
-<date qualifier="created">2002-02-22</date>
-<subject
resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-o...
-</metadata>
-<var name="nodeList" type="NodeList"/>
-<var name="testNode" type="Node"/>
-<var name="vname" type="DOMString"/>
-<var name="doc" type="Document"/>
-<load var="doc" href="select"
willBeModified="false"/>
-<getElementsByTagName interface="Document" obj="doc"
var="nodeList" tagname='"select"'/>
-<assertSize collection="nodeList" size="3"
id="Asize"/>
-<item interface="NodeList" obj="nodeList" var="testNode"
index="0"/>
-<name interface="HTMLSelectElement" obj="testNode"
var="vname"/>
-<assertEquals actual="vname" expected='"select1"'
id="nameLink" ignoreCase="false"/>
-</test>
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement12.xml
b/test/testcases/tests/level1/html/HTMLSelectElement12.xml
new file mode 100644
index 0000000..5559f5d
--- /dev/null
+++ b/test/testcases/tests/level1/html/HTMLSelectElement12.xml
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+Copyright (c) 2001 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 "dom1.dtd">
+<test
xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1"
name="HTMLSelectElement12">
+<metadata>
+<title>HTMLSelectElement12</title>
+<creator>NIST</creator>
+<description>
+ The size attribute specifies the number of visible rows.
+
+ Retrieve the size attribute from the first SELECT element and
+ examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject
resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-o...
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vsize" type="int"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="select"
willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc"
var="nodeList" tagname='"select"'/>
+<assertSize collection="nodeList" size="3"
id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode"
index="0"/>
+<size interface="HTMLSelectElement" obj="testNode"
var="vsize"/>
+<assertEquals actual="vsize" expected="1" id="sizeLink"
ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement12.xml.kfail
b/test/testcases/tests/level1/html/HTMLSelectElement12.xml.kfail
deleted file mode 100644
index 5559f5d..0000000
--- a/test/testcases/tests/level1/html/HTMLSelectElement12.xml.kfail
+++ /dev/null
@@ -1,43 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
-
-<!--
-
-Copyright (c) 2001 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 "dom1.dtd">
-<test
xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1"
name="HTMLSelectElement12">
-<metadata>
-<title>HTMLSelectElement12</title>
-<creator>NIST</creator>
-<description>
- The size attribute specifies the number of visible rows.
-
- Retrieve the size attribute from the first SELECT element and
- examine its value.
-</description>
-<contributor>Mary Brady</contributor>
-<date qualifier="created">2002-02-22</date>
-<subject
resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-o...
-</metadata>
-<var name="nodeList" type="NodeList"/>
-<var name="testNode" type="Node"/>
-<var name="vsize" type="int"/>
-<var name="doc" type="Document"/>
-<load var="doc" href="select"
willBeModified="false"/>
-<getElementsByTagName interface="Document" obj="doc"
var="nodeList" tagname='"select"'/>
-<assertSize collection="nodeList" size="3"
id="Asize"/>
-<item interface="NodeList" obj="nodeList" var="testNode"
index="0"/>
-<size interface="HTMLSelectElement" obj="testNode"
var="vsize"/>
-<assertEquals actual="vsize" expected="1" id="sizeLink"
ignoreCase="false"/>
-</test>
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement13.xml
b/test/testcases/tests/level1/html/HTMLSelectElement13.xml
new file mode 100644
index 0000000..2c0aafb
--- /dev/null
+++ b/test/testcases/tests/level1/html/HTMLSelectElement13.xml
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+Copyright (c) 2001 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 "dom1.dtd">
+<test
xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1"
name="HTMLSelectElement13">
+<metadata>
+<title>HTMLSelectElement13</title>
+<creator>NIST</creator>
+<description>
+ The tabIndex attribute specifies an index that represents the elements
+ position in the tabbing order.
+
+ Retrieve the tabIndex attribute from the first SELECT element and
+ examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject
resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-o...
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vtabindex" type="int"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="select"
willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc"
var="nodeList" tagname='"select"'/>
+<assertSize collection="nodeList" size="3"
id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode"
index="0"/>
+<tabIndex interface="HTMLSelectElement" obj="testNode"
var="vtabindex"/>
+<assertEquals actual="vtabindex" expected="7"
id="tabIndexLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement13.xml.kfail
b/test/testcases/tests/level1/html/HTMLSelectElement13.xml.kfail
deleted file mode 100644
index 2c0aafb..0000000
--- a/test/testcases/tests/level1/html/HTMLSelectElement13.xml.kfail
+++ /dev/null
@@ -1,44 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
-
-<!--
-
-Copyright (c) 2001 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 "dom1.dtd">
-<test
xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1"
name="HTMLSelectElement13">
-<metadata>
-<title>HTMLSelectElement13</title>
-<creator>NIST</creator>
-<description>
- The tabIndex attribute specifies an index that represents the elements
- position in the tabbing order.
-
- Retrieve the tabIndex attribute from the first SELECT element and
- examine its value.
-</description>
-<contributor>Mary Brady</contributor>
-<date qualifier="created">2002-02-22</date>
-<subject
resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-o...
-</metadata>
-<var name="nodeList" type="NodeList"/>
-<var name="testNode" type="Node"/>
-<var name="vtabindex" type="int"/>
-<var name="doc" type="Document"/>
-<load var="doc" href="select"
willBeModified="false"/>
-<getElementsByTagName interface="Document" obj="doc"
var="nodeList" tagname='"select"'/>
-<assertSize collection="nodeList" size="3"
id="Asize"/>
-<item interface="NodeList" obj="nodeList" var="testNode"
index="0"/>
-<tabIndex interface="HTMLSelectElement" obj="testNode"
var="vtabindex"/>
-<assertEquals actual="vtabindex" expected="7"
id="tabIndexLink" ignoreCase="false"/>
-</test>
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement14.xml
b/test/testcases/tests/level1/html/HTMLSelectElement14.xml
new file mode 100644
index 0000000..df22987
--- /dev/null
+++ b/test/testcases/tests/level1/html/HTMLSelectElement14.xml
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+Copyright (c) 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 "dom1.dtd">
+<test
xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1"
name="HTMLSelectElement14">
+<metadata>
+<title>HTMLSelectElement14</title>
+<creator>Curt Arnold</creator>
+<description>
+focus should give the select element input focus.
+</description>
+<date qualifier="created">2004-03-18</date>
+<subject
resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-o...
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="select"
willBeModified="true"/>
+<getElementsByTagName interface="Document" obj="doc"
var="nodeList" tagname='"select"'/>
+<assertSize collection="nodeList" size="3"
id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode"
index="0"/>
+<focus interface="HTMLSelectElement" obj="testNode"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement14.xml.kfail
b/test/testcases/tests/level1/html/HTMLSelectElement14.xml.kfail
deleted file mode 100644
index df22987..0000000
--- a/test/testcases/tests/level1/html/HTMLSelectElement14.xml.kfail
+++ /dev/null
@@ -1,37 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
-
-<!--
-
-Copyright (c) 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 "dom1.dtd">
-<test
xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1"
name="HTMLSelectElement14">
-<metadata>
-<title>HTMLSelectElement14</title>
-<creator>Curt Arnold</creator>
-<description>
-focus should give the select element input focus.
-</description>
-<date qualifier="created">2004-03-18</date>
-<subject
resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-o...
-</metadata>
-<var name="nodeList" type="NodeList"/>
-<var name="testNode" type="Node"/>
-<var name="doc" type="Document"/>
-<load var="doc" href="select"
willBeModified="true"/>
-<getElementsByTagName interface="Document" obj="doc"
var="nodeList" tagname='"select"'/>
-<assertSize collection="nodeList" size="3"
id="Asize"/>
-<item interface="NodeList" obj="nodeList" var="testNode"
index="0"/>
-<focus interface="HTMLSelectElement" obj="testNode"/>
-</test>
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement15.xml
b/test/testcases/tests/level1/html/HTMLSelectElement15.xml
new file mode 100644
index 0000000..dcc2f6d
--- /dev/null
+++ b/test/testcases/tests/level1/html/HTMLSelectElement15.xml
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+Copyright (c) 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 "dom1.dtd">
+<test
xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1"
name="HTMLSelectElement15">
+<metadata>
+<title>HTMLSelectElement15</title>
+<creator>Curt Arnold</creator>
+<description>
+blur should surrender input focus.
+</description>
+<date qualifier="created">2004-03-18</date>
+<subject
resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-o...
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="select"
willBeModified="true"/>
+<getElementsByTagName interface="Document" obj="doc"
var="nodeList" tagname='"select"'/>
+<assertSize collection="nodeList" size="3"
id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode"
index="0"/>
+<blur interface="HTMLSelectElement" obj="testNode"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement15.xml.kfail
b/test/testcases/tests/level1/html/HTMLSelectElement15.xml.kfail
deleted file mode 100644
index dcc2f6d..0000000
--- a/test/testcases/tests/level1/html/HTMLSelectElement15.xml.kfail
+++ /dev/null
@@ -1,37 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
-
-<!--
-
-Copyright (c) 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 "dom1.dtd">
-<test
xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1"
name="HTMLSelectElement15">
-<metadata>
-<title>HTMLSelectElement15</title>
-<creator>Curt Arnold</creator>
-<description>
-blur should surrender input focus.
-</description>
-<date qualifier="created">2004-03-18</date>
-<subject
resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-o...
-</metadata>
-<var name="nodeList" type="NodeList"/>
-<var name="testNode" type="Node"/>
-<var name="doc" type="Document"/>
-<load var="doc" href="select"
willBeModified="true"/>
-<getElementsByTagName interface="Document" obj="doc"
var="nodeList" tagname='"select"'/>
-<assertSize collection="nodeList" size="3"
id="Asize"/>
-<item interface="NodeList" obj="nodeList" var="testNode"
index="0"/>
-<blur interface="HTMLSelectElement" obj="testNode"/>
-</test>
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement17.xml
b/test/testcases/tests/level1/html/HTMLSelectElement17.xml
new file mode 100644
index 0000000..03549ff
--- /dev/null
+++ b/test/testcases/tests/level1/html/HTMLSelectElement17.xml
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+Copyright (c) 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 "dom1.dtd">
+<test
xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1"
name="HTMLSelectElement17">
+<metadata>
+<title>HTMLSelectElement17</title>
+<creator>Curt Arnold</creator>
+<description>
+Removes a non-existant option using HTMLSelectElement.remove.
+</description>
+<date qualifier="created">2004-03-18</date>
+<subject
resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-o...
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="doc" type="Document"/>
+<var name="optLength" type="int"/>
+<var name="selected" type="int"/>
+<load var="doc" href="select"
willBeModified="true"/>
+<getElementsByTagName interface="Document" obj="doc"
var="nodeList" tagname='"select"'/>
+<assertSize collection="nodeList" size="3"
id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode"
index="0"/>
+<remove interface="HTMLSelectElement" obj="testNode"
index="6"/>
+<length interface="HTMLSelectElement" obj="testNode"
var="optLength"/>
+<assertEquals actual="optLength" expected="5"
id="optLength" ignoreCase="false"/>
+<selectedIndex interface="HTMLSelectElement" obj="testNode"
var="selected"/>
+<assertEquals actual="selected" expected="0"
id="selected" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement17.xml.kfail
b/test/testcases/tests/level1/html/HTMLSelectElement17.xml.kfail
deleted file mode 100644
index 03549ff..0000000
--- a/test/testcases/tests/level1/html/HTMLSelectElement17.xml.kfail
+++ /dev/null
@@ -1,43 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
-
-<!--
-
-Copyright (c) 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 "dom1.dtd">
-<test
xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1"
name="HTMLSelectElement17">
-<metadata>
-<title>HTMLSelectElement17</title>
-<creator>Curt Arnold</creator>
-<description>
-Removes a non-existant option using HTMLSelectElement.remove.
-</description>
-<date qualifier="created">2004-03-18</date>
-<subject
resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-o...
-</metadata>
-<var name="nodeList" type="NodeList"/>
-<var name="testNode" type="Node"/>
-<var name="doc" type="Document"/>
-<var name="optLength" type="int"/>
-<var name="selected" type="int"/>
-<load var="doc" href="select"
willBeModified="true"/>
-<getElementsByTagName interface="Document" obj="doc"
var="nodeList" tagname='"select"'/>
-<assertSize collection="nodeList" size="3"
id="Asize"/>
-<item interface="NodeList" obj="nodeList" var="testNode"
index="0"/>
-<remove interface="HTMLSelectElement" obj="testNode"
index="6"/>
-<length interface="HTMLSelectElement" obj="testNode"
var="optLength"/>
-<assertEquals actual="optLength" expected="5"
id="optLength" ignoreCase="false"/>
-<selectedIndex interface="HTMLSelectElement" obj="testNode"
var="selected"/>
-<assertEquals actual="selected" expected="0"
id="selected" ignoreCase="false"/>
-</test>
diff --git a/test/testutils/foreach.c b/test/testutils/foreach.c
index 764920c..bbc8a47 100644
--- a/test/testutils/foreach.c
+++ b/test/testutils/foreach.c
@@ -34,6 +34,11 @@ void foreach_initialise_domnamednodemap(dom_namednodemap *map, unsigned
int *ite
*iterator = 0;
}
+void foreach_initialise_domhtmlcollection(dom_html_collection *coll, unsigned int
*iterator)
+{
+ (void)coll;
+ *iterator = 0;
+}
bool _get_next_domnodelist(dom_nodelist *list, unsigned int *iterator, dom_node **ret)
{
@@ -97,3 +102,24 @@ bool _get_next_domnamednodemap(dom_namednodemap *map, unsigned int
*iterator, do
return true;
}
+
+bool _get_next_domhtmlcollection(dom_html_collection *coll, unsigned int *iterator,
dom_node **ret)
+{
+ dom_exception err;
+ unsigned long len;
+
+ err = dom_html_collection_get_length(coll, &len);
+ if (err != DOM_NO_ERR)
+ return false;
+
+ if (*iterator >= len)
+ return false;
+
+ err = dom_html_collection_item(coll, (*iterator), ret);
+ if (err != DOM_NO_ERR)
+ return false;
+
+ (*iterator)++;
+
+ return true;
+}
diff --git a/test/testutils/foreach.h b/test/testutils/foreach.h
index 75874bc..aa9543d 100644
--- a/test/testutils/foreach.h
+++ b/test/testutils/foreach.h
@@ -26,6 +26,7 @@
void foreach_initialise_domnodelist(dom_nodelist *list, unsigned int *iterator);
void foreach_initialise_list(list *list, unsigned int *iterator);
void foreach_initialise_domnamednodemap(dom_namednodemap *map, unsigned int *iterator);
+void foreach_initialise_domhtmlcollection(dom_html_collection *coll, unsigned int
*iterator);
bool _get_next_domnodelist(dom_nodelist *list, unsigned int *iterator, dom_node **ret);
#define get_next_domnodelist(l, i, r) _get_next_domnodelist( \
@@ -37,5 +38,8 @@ bool _get_next_domnamednodemap(dom_namednodemap *map, unsigned int
*iterator, do
#define get_next_domnamednodemap(m, i, r) _get_next_domnamednodemap( \
(dom_namednodemap *) (m), (unsigned int *) (i), (dom_node **) (r))
+bool _get_next_domhtmlcollection(dom_html_collection *coll, unsigned int *iterator,
dom_node **ret);
+#define get_next_domhtmlcollection(c, i, r) _get_next_domhtmlcollection( \
+ (dom_html_collection *) (c), (unsigned int *) (i), (dom_node **) (r))
#endif
-----------------------------------------------------------------------
Summary of changes:
include/dom/html/html_select_element.h | 11 +++++++-
src/html/html_select_element.c | 4 +-
test/DOMTSHandler.pm | 7 +++++
...Element01.xml.kfail => HTMLSelectElement01.xml} | 0
...Element02.xml.kfail => HTMLSelectElement02.xml} | 0
...Element03.xml.kfail => HTMLSelectElement03.xml} | 0
...Element04.xml.kfail => HTMLSelectElement04.xml} | 0
...Element05.xml.kfail => HTMLSelectElement05.xml} | 0
...Element06.xml.kfail => HTMLSelectElement06.xml} | 0
...Element07.xml.kfail => HTMLSelectElement07.xml} | 0
...Element08.xml.kfail => HTMLSelectElement08.xml} | 0
...Element09.xml.kfail => HTMLSelectElement09.xml} | 0
...Element10.xml.kfail => HTMLSelectElement10.xml} | 0
...Element11.xml.kfail => HTMLSelectElement11.xml} | 0
...Element12.xml.kfail => HTMLSelectElement12.xml} | 0
...Element13.xml.kfail => HTMLSelectElement13.xml} | 0
...Element14.xml.kfail => HTMLSelectElement14.xml} | 0
...Element15.xml.kfail => HTMLSelectElement15.xml} | 0
...Element17.xml.kfail => HTMLSelectElement17.xml} | 0
test/testutils/foreach.c | 26 ++++++++++++++++++++
test/testutils/foreach.h | 4 +++
21 files changed, 48 insertions(+), 4 deletions(-)
rename test/testcases/tests/level1/html/{HTMLSelectElement01.xml.kfail =>
HTMLSelectElement01.xml} (100%)
rename test/testcases/tests/level1/html/{HTMLSelectElement02.xml.kfail =>
HTMLSelectElement02.xml} (100%)
rename test/testcases/tests/level1/html/{HTMLSelectElement03.xml.kfail =>
HTMLSelectElement03.xml} (100%)
rename test/testcases/tests/level1/html/{HTMLSelectElement04.xml.kfail =>
HTMLSelectElement04.xml} (100%)
rename test/testcases/tests/level1/html/{HTMLSelectElement05.xml.kfail =>
HTMLSelectElement05.xml} (100%)
rename test/testcases/tests/level1/html/{HTMLSelectElement06.xml.kfail =>
HTMLSelectElement06.xml} (100%)
rename test/testcases/tests/level1/html/{HTMLSelectElement07.xml.kfail =>
HTMLSelectElement07.xml} (100%)
rename test/testcases/tests/level1/html/{HTMLSelectElement08.xml.kfail =>
HTMLSelectElement08.xml} (100%)
rename test/testcases/tests/level1/html/{HTMLSelectElement09.xml.kfail =>
HTMLSelectElement09.xml} (100%)
rename test/testcases/tests/level1/html/{HTMLSelectElement10.xml.kfail =>
HTMLSelectElement10.xml} (100%)
rename test/testcases/tests/level1/html/{HTMLSelectElement11.xml.kfail =>
HTMLSelectElement11.xml} (100%)
rename test/testcases/tests/level1/html/{HTMLSelectElement12.xml.kfail =>
HTMLSelectElement12.xml} (100%)
rename test/testcases/tests/level1/html/{HTMLSelectElement13.xml.kfail =>
HTMLSelectElement13.xml} (100%)
rename test/testcases/tests/level1/html/{HTMLSelectElement14.xml.kfail =>
HTMLSelectElement14.xml} (100%)
rename test/testcases/tests/level1/html/{HTMLSelectElement15.xml.kfail =>
HTMLSelectElement15.xml} (100%)
rename test/testcases/tests/level1/html/{HTMLSelectElement17.xml.kfail =>
HTMLSelectElement17.xml} (100%)
diff --git a/include/dom/html/html_select_element.h
b/include/dom/html/html_select_element.h
index 89b6844..b92abd6 100644
--- a/include/dom/html/html_select_element.h
+++ b/include/dom/html/html_select_element.h
@@ -40,9 +40,12 @@ dom_exception dom_html_select_element_set_length(
dom_exception dom_html_select_element_get_form(
dom_html_select_element *ele, dom_html_form_element **form);
-dom_exception dom_html_select_element_get_options(
+dom_exception dom__html_select_element_get_options(
dom_html_select_element *ele,
struct dom_html_options_collection **col);
+#define dom_html_select_element_get_options(e, c) \
+ dom__html_select_element_get_options((dom_html_select_element *) (e), \
+ (struct dom_html_options_collection **) (c))
dom_exception dom_html_select_element_get_disabled(
dom_html_select_element *ele, bool *disabled);
@@ -70,8 +73,12 @@ dom_exception dom_html_select_element_set_tab_index(
dom_html_select_element *ele, unsigned long tab_index);
/* Functions */
-dom_exception dom_html_select_element_add(dom_html_select_element *select,
+dom_exception dom__html_select_element_add(dom_html_select_element *select,
struct dom_html_element *ele, struct dom_html_element *before);
+#define dom_html_select_element_add(s, e, b) \
+ dom__html_select_element_add((dom_html_select_element *) (s), \
+ (struct dom_html_element *) (e), \
+ (struct dom_html_element *) (b))
dom_exception dom_html_select_element_remove(dom_html_select_element *ele,
long index);
dom_exception dom_html_select_element_blur(struct dom_html_select_element *ele);
diff --git a/src/html/html_select_element.c b/src/html/html_select_element.c
index 9992376..89e46a9 100644
--- a/src/html/html_select_element.c
+++ b/src/html/html_select_element.c
@@ -361,7 +361,7 @@ dom_exception dom_html_select_element_get_form(
* \param col THe returned collection object
* \return DOM_NO_ERR on success.
*/
-dom_exception dom_html_select_element_get_options(
+dom_exception dom__html_select_element_get_options(
dom_html_select_element *ele,
struct dom_html_options_collection **col)
{
@@ -524,7 +524,7 @@ dom_exception dom_html_select_element_set_tab_index(
/* Functions */
-dom_exception dom_html_select_element_add(dom_html_select_element *select,
+dom_exception dom__html_select_element_add(dom_html_select_element *select,
struct dom_html_element *ele, struct dom_html_element *before)
{
UNUSED(select);
diff --git a/test/DOMTSHandler.pm b/test/DOMTSHandler.pm
index 890a8ff..93a97e9 100644
--- a/test/DOMTSHandler.pm
+++ b/test/DOMTSHandler.pm
@@ -1244,6 +1244,13 @@ sub generate_control_statement {
print "foreach_initialise_domnamednodemap($coll,
\&iterator$iterator_index);\n";
print "while(get_next_domnamednodemap($coll, \&iterator$iterator_index,
\&$member)) {\n";
}
+
+ if ($self->{"var"}->{$coll} eq "HTMLCollection") {
+ $iterator_index++;
+ print "unsigned int iterator$iterator_index = 0;";
+ print "foreach_initialise_domhtmlcollection($coll,
\&iterator$iterator_index);\n";
+ print "while(get_next_domhtmlcollection($coll, \&iterator$iterator_index,
\&$member)) {\n";
+ }
}
}
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement01.xml.kfail
b/test/testcases/tests/level1/html/HTMLSelectElement01.xml
similarity index 100%
rename from test/testcases/tests/level1/html/HTMLSelectElement01.xml.kfail
rename to test/testcases/tests/level1/html/HTMLSelectElement01.xml
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement02.xml.kfail
b/test/testcases/tests/level1/html/HTMLSelectElement02.xml
similarity index 100%
rename from test/testcases/tests/level1/html/HTMLSelectElement02.xml.kfail
rename to test/testcases/tests/level1/html/HTMLSelectElement02.xml
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement03.xml.kfail
b/test/testcases/tests/level1/html/HTMLSelectElement03.xml
similarity index 100%
rename from test/testcases/tests/level1/html/HTMLSelectElement03.xml.kfail
rename to test/testcases/tests/level1/html/HTMLSelectElement03.xml
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement04.xml.kfail
b/test/testcases/tests/level1/html/HTMLSelectElement04.xml
similarity index 100%
rename from test/testcases/tests/level1/html/HTMLSelectElement04.xml.kfail
rename to test/testcases/tests/level1/html/HTMLSelectElement04.xml
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement05.xml.kfail
b/test/testcases/tests/level1/html/HTMLSelectElement05.xml
similarity index 100%
rename from test/testcases/tests/level1/html/HTMLSelectElement05.xml.kfail
rename to test/testcases/tests/level1/html/HTMLSelectElement05.xml
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement06.xml.kfail
b/test/testcases/tests/level1/html/HTMLSelectElement06.xml
similarity index 100%
rename from test/testcases/tests/level1/html/HTMLSelectElement06.xml.kfail
rename to test/testcases/tests/level1/html/HTMLSelectElement06.xml
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement07.xml.kfail
b/test/testcases/tests/level1/html/HTMLSelectElement07.xml
similarity index 100%
rename from test/testcases/tests/level1/html/HTMLSelectElement07.xml.kfail
rename to test/testcases/tests/level1/html/HTMLSelectElement07.xml
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement08.xml.kfail
b/test/testcases/tests/level1/html/HTMLSelectElement08.xml
similarity index 100%
rename from test/testcases/tests/level1/html/HTMLSelectElement08.xml.kfail
rename to test/testcases/tests/level1/html/HTMLSelectElement08.xml
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement09.xml.kfail
b/test/testcases/tests/level1/html/HTMLSelectElement09.xml
similarity index 100%
rename from test/testcases/tests/level1/html/HTMLSelectElement09.xml.kfail
rename to test/testcases/tests/level1/html/HTMLSelectElement09.xml
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement10.xml.kfail
b/test/testcases/tests/level1/html/HTMLSelectElement10.xml
similarity index 100%
rename from test/testcases/tests/level1/html/HTMLSelectElement10.xml.kfail
rename to test/testcases/tests/level1/html/HTMLSelectElement10.xml
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement11.xml.kfail
b/test/testcases/tests/level1/html/HTMLSelectElement11.xml
similarity index 100%
rename from test/testcases/tests/level1/html/HTMLSelectElement11.xml.kfail
rename to test/testcases/tests/level1/html/HTMLSelectElement11.xml
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement12.xml.kfail
b/test/testcases/tests/level1/html/HTMLSelectElement12.xml
similarity index 100%
rename from test/testcases/tests/level1/html/HTMLSelectElement12.xml.kfail
rename to test/testcases/tests/level1/html/HTMLSelectElement12.xml
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement13.xml.kfail
b/test/testcases/tests/level1/html/HTMLSelectElement13.xml
similarity index 100%
rename from test/testcases/tests/level1/html/HTMLSelectElement13.xml.kfail
rename to test/testcases/tests/level1/html/HTMLSelectElement13.xml
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement14.xml.kfail
b/test/testcases/tests/level1/html/HTMLSelectElement14.xml
similarity index 100%
rename from test/testcases/tests/level1/html/HTMLSelectElement14.xml.kfail
rename to test/testcases/tests/level1/html/HTMLSelectElement14.xml
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement15.xml.kfail
b/test/testcases/tests/level1/html/HTMLSelectElement15.xml
similarity index 100%
rename from test/testcases/tests/level1/html/HTMLSelectElement15.xml.kfail
rename to test/testcases/tests/level1/html/HTMLSelectElement15.xml
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement17.xml.kfail
b/test/testcases/tests/level1/html/HTMLSelectElement17.xml
similarity index 100%
rename from test/testcases/tests/level1/html/HTMLSelectElement17.xml.kfail
rename to test/testcases/tests/level1/html/HTMLSelectElement17.xml
diff --git a/test/testutils/foreach.c b/test/testutils/foreach.c
index 764920c..bbc8a47 100644
--- a/test/testutils/foreach.c
+++ b/test/testutils/foreach.c
@@ -34,6 +34,11 @@ void foreach_initialise_domnamednodemap(dom_namednodemap *map, unsigned
int *ite
*iterator = 0;
}
+void foreach_initialise_domhtmlcollection(dom_html_collection *coll, unsigned int
*iterator)
+{
+ (void)coll;
+ *iterator = 0;
+}
bool _get_next_domnodelist(dom_nodelist *list, unsigned int *iterator, dom_node **ret)
{
@@ -97,3 +102,24 @@ bool _get_next_domnamednodemap(dom_namednodemap *map, unsigned int
*iterator, do
return true;
}
+
+bool _get_next_domhtmlcollection(dom_html_collection *coll, unsigned int *iterator,
dom_node **ret)
+{
+ dom_exception err;
+ unsigned long len;
+
+ err = dom_html_collection_get_length(coll, &len);
+ if (err != DOM_NO_ERR)
+ return false;
+
+ if (*iterator >= len)
+ return false;
+
+ err = dom_html_collection_item(coll, (*iterator), ret);
+ if (err != DOM_NO_ERR)
+ return false;
+
+ (*iterator)++;
+
+ return true;
+}
diff --git a/test/testutils/foreach.h b/test/testutils/foreach.h
index 75874bc..aa9543d 100644
--- a/test/testutils/foreach.h
+++ b/test/testutils/foreach.h
@@ -26,6 +26,7 @@
void foreach_initialise_domnodelist(dom_nodelist *list, unsigned int *iterator);
void foreach_initialise_list(list *list, unsigned int *iterator);
void foreach_initialise_domnamednodemap(dom_namednodemap *map, unsigned int *iterator);
+void foreach_initialise_domhtmlcollection(dom_html_collection *coll, unsigned int
*iterator);
bool _get_next_domnodelist(dom_nodelist *list, unsigned int *iterator, dom_node **ret);
#define get_next_domnodelist(l, i, r) _get_next_domnodelist( \
@@ -37,5 +38,8 @@ bool _get_next_domnamednodemap(dom_namednodemap *map, unsigned int
*iterator, do
#define get_next_domnamednodemap(m, i, r) _get_next_domnamednodemap( \
(dom_namednodemap *) (m), (unsigned int *) (i), (dom_node **) (r))
+bool _get_next_domhtmlcollection(dom_html_collection *coll, unsigned int *iterator,
dom_node **ret);
+#define get_next_domhtmlcollection(c, i, r) _get_next_domhtmlcollection( \
+ (dom_html_collection *) (c), (unsigned int *) (i), (dom_node **) (r))
#endif
--
Document Object Model library