Attr Nodes should not have children
authorcdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 5 May 2017 19:26:11 +0000 (19:26 +0000)
committercdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 5 May 2017 19:26:11 +0000 (19:26 +0000)
https://bugs.webkit.org/show_bug.cgi?id=171688
<rdar://problem/31998412>

Reviewed by Andreas Kling.

Source/WebCore:

Attr Nodes should not have children as per the latest DOM specification:
- https://dom.spec.whatwg.org/#interface-attr
- https://dom.spec.whatwg.org/#dom-attr-value
- https://dom.spec.whatwg.org/#concept-node-ensure-pre-insertion-validity (Step 1)

Firefox and Chrome both have been matching the DOM specification for a while so I think
we should do the same. This aligns us with other browsers, simplifies the code, is
more efficient and the code being removed has been prone to security bugs.

Test: fast/dom/Attr/cannot-have-children.html

* dom/Attr.cpp:
(WebCore::Attr::Attr):
(WebCore::Attr::create):
(WebCore::Attr::setValue):
(WebCore::Attr::cloneNodeInternal):
* dom/Attr.h:
- Have Attr subclass Node instead of ContainerNode as it can no longer have children.
- Drop logic to dealing with children / creating a Text child.

* dom/CharacterData.cpp:
(WebCore::CharacterData::notifyParentAfterChange):
Drop useless check found by the compiler. parentNode() can no longer be an Attr node.

* dom/Node.cpp:
(WebCore::appendTextContent):
appendTextContent() is called by Node.TextContent(). For Attr Nodes, we should no longer traverse
its subtree to gather Text Nodes. Instead, we now return Attr.value, as per the specification:
- https://dom.spec.whatwg.org/#dom-node-textcontent

* dom/Range.cpp:
(WebCore::lengthOfContentsInNode):
As per https://dom.spec.whatwg.org/#concept-node-length, we should return the number of children
for Attr Nodes, which will always be 0.

* xml/XPathUtil.cpp:
(WebCore::XPath::isValidContextNode):
Always return true for TEXT_NODE as the !(node->parentNode() && node->parentNode()->isAttributeNode())
check will also with true now. This is because a parentNode() cannot be an Attribute Node.

LayoutTests:

* fast/dom/Attr/cannot-have-children-expected.txt: Added.
* fast/dom/Attr/cannot-have-children.html: Added.
Add layout test coverage. I have verified that this test passes in both
Firefox and Chrome.

* dom/html/level1/*: Removed legacy / outdated tests.
* dom/xhtml/level1/*: Removed legacy / outdated tests.

* fast/dom/Attr/child-nodes-cache-expected.txt: Removed.
* fast/dom/Attr/child-nodes-cache.html: Removed.
* fast/dom/Attr/child-nodes-length-cache-expected.txt: Removed.
* fast/dom/Attr/child-nodes-length-cache.html: Removed.
* fast/dom/Attr/invalidate-nodelist-after-attr-setvalue-expected.txt: Removed.
* fast/dom/Attr/invalidate-nodelist-after-attr-setvalue.html: Removed.
* fast/dom/attribute-change-on-mutate-expected.txt: Removed.
* fast/dom/attribute-change-on-mutate.html: Removed.
* svg/custom/image-with-attr-change-after-delete-crash-expected.txt: Removed.
* svg/custom/image-with-attr-change-after-delete-crash.html: Removed.
* traversal/moz-bug590771-expected.txt: Removed.
* traversal/moz-bug590771.html: Removed.
Removed some outdated tests.

* fast/custom-elements/reactions-for-webkit-extensions-expected.txt:
* fast/custom-elements/reactions-for-webkit-extensions.html:
* fast/dom/Attr/change-id-via-attr-node-value-expected.txt:
* fast/dom/Attr/change-id-via-attr-node-value.html:
* fast/dom/Element/normalize-crash.html:
* fast/dom/Element/normalize-crash2.html:
* fast/dom/HTMLLinkElement/event-while-removing-attribute-expected.txt:
* fast/dom/HTMLLinkElement/event-while-removing-attribute.html:
* fast/dom/MutationObserver/observe-attributes-expected.txt:
* fast/dom/MutationObserver/observe-attributes.html:
* fast/dom/import-attribute-node.html:
* fast/dom/insertedIntoDocument-child.html:
* fast/dom/insertedIntoDocument-sibling.html:
* fast/dom/no-assert-for-malformed-js-url-attribute-expected.txt:
* fast/dom/no-assert-for-malformed-js-url-attribute.html:
* fast/dom/normalize-attributes-mutation-event-crash.html:
* fast/dom/serialize-nodes.xhtml:
* http/tests/security/xss-DENIED-iframe-src-alias-expected.txt:
Update existing tests so they stop relying on Attr Node having Text children.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@216259 268f45cc-cd09-0410-ab3c-d52691b4dbfc

211 files changed:
LayoutTests/ChangeLog
LayoutTests/dom/html/level1/core/hc_attrappendchild1-expected.txt [deleted file]
LayoutTests/dom/html/level1/core/hc_attrappendchild1.html [deleted file]
LayoutTests/dom/html/level1/core/hc_attrappendchild1.js [deleted file]
LayoutTests/dom/html/level1/core/hc_attrappendchild2-expected.txt [deleted file]
LayoutTests/dom/html/level1/core/hc_attrappendchild2.html [deleted file]
LayoutTests/dom/html/level1/core/hc_attrappendchild2.js [deleted file]
LayoutTests/dom/html/level1/core/hc_attrappendchild3-expected.txt [deleted file]
LayoutTests/dom/html/level1/core/hc_attrappendchild3.html [deleted file]
LayoutTests/dom/html/level1/core/hc_attrappendchild3.js [deleted file]
LayoutTests/dom/html/level1/core/hc_attrappendchild4-expected.txt [deleted file]
LayoutTests/dom/html/level1/core/hc_attrappendchild4.html [deleted file]
LayoutTests/dom/html/level1/core/hc_attrappendchild4.js [deleted file]
LayoutTests/dom/html/level1/core/hc_attrappendchild5-expected.txt [deleted file]
LayoutTests/dom/html/level1/core/hc_attrappendchild5.html [deleted file]
LayoutTests/dom/html/level1/core/hc_attrappendchild5.js [deleted file]
LayoutTests/dom/html/level1/core/hc_attrappendchild6-expected.txt [deleted file]
LayoutTests/dom/html/level1/core/hc_attrappendchild6.html [deleted file]
LayoutTests/dom/html/level1/core/hc_attrappendchild6.js [deleted file]
LayoutTests/dom/html/level1/core/hc_attrchildnodes1-expected.txt [deleted file]
LayoutTests/dom/html/level1/core/hc_attrchildnodes1.html [deleted file]
LayoutTests/dom/html/level1/core/hc_attrchildnodes1.js [deleted file]
LayoutTests/dom/html/level1/core/hc_attrchildnodes2-expected.txt [deleted file]
LayoutTests/dom/html/level1/core/hc_attrchildnodes2.html [deleted file]
LayoutTests/dom/html/level1/core/hc_attrchildnodes2.js [deleted file]
LayoutTests/dom/html/level1/core/hc_attrclonenode1-expected.txt [deleted file]
LayoutTests/dom/html/level1/core/hc_attrclonenode1.html [deleted file]
LayoutTests/dom/html/level1/core/hc_attrclonenode1.js [deleted file]
LayoutTests/dom/html/level1/core/hc_attrfirstchild-expected.txt [deleted file]
LayoutTests/dom/html/level1/core/hc_attrfirstchild.html [deleted file]
LayoutTests/dom/html/level1/core/hc_attrfirstchild.js [deleted file]
LayoutTests/dom/html/level1/core/hc_attrhaschildnodes-expected.txt [deleted file]
LayoutTests/dom/html/level1/core/hc_attrhaschildnodes.html [deleted file]
LayoutTests/dom/html/level1/core/hc_attrhaschildnodes.js [deleted file]
LayoutTests/dom/html/level1/core/hc_attrinsertbefore1-expected.txt [deleted file]
LayoutTests/dom/html/level1/core/hc_attrinsertbefore1.html [deleted file]
LayoutTests/dom/html/level1/core/hc_attrinsertbefore1.js [deleted file]
LayoutTests/dom/html/level1/core/hc_attrinsertbefore2-expected.txt [deleted file]
LayoutTests/dom/html/level1/core/hc_attrinsertbefore2.html [deleted file]
LayoutTests/dom/html/level1/core/hc_attrinsertbefore2.js [deleted file]
LayoutTests/dom/html/level1/core/hc_attrinsertbefore3-expected.txt [deleted file]
LayoutTests/dom/html/level1/core/hc_attrinsertbefore3.html [deleted file]
LayoutTests/dom/html/level1/core/hc_attrinsertbefore3.js [deleted file]
LayoutTests/dom/html/level1/core/hc_attrinsertbefore4-expected.txt [deleted file]
LayoutTests/dom/html/level1/core/hc_attrinsertbefore4.html [deleted file]
LayoutTests/dom/html/level1/core/hc_attrinsertbefore4.js [deleted file]
LayoutTests/dom/html/level1/core/hc_attrinsertbefore5-expected.txt [deleted file]
LayoutTests/dom/html/level1/core/hc_attrinsertbefore5.html [deleted file]
LayoutTests/dom/html/level1/core/hc_attrinsertbefore5.js [deleted file]
LayoutTests/dom/html/level1/core/hc_attrinsertbefore6-expected.txt [deleted file]
LayoutTests/dom/html/level1/core/hc_attrinsertbefore6.html [deleted file]
LayoutTests/dom/html/level1/core/hc_attrinsertbefore6.js [deleted file]
LayoutTests/dom/html/level1/core/hc_attrinsertbefore7-expected.txt [deleted file]
LayoutTests/dom/html/level1/core/hc_attrinsertbefore7.html [deleted file]
LayoutTests/dom/html/level1/core/hc_attrinsertbefore7.js [deleted file]
LayoutTests/dom/html/level1/core/hc_attrlastchild-expected.txt [deleted file]
LayoutTests/dom/html/level1/core/hc_attrlastchild.html [deleted file]
LayoutTests/dom/html/level1/core/hc_attrlastchild.js [deleted file]
LayoutTests/dom/html/level1/core/hc_attrnormalize-expected.txt [deleted file]
LayoutTests/dom/html/level1/core/hc_attrnormalize.html [deleted file]
LayoutTests/dom/html/level1/core/hc_attrnormalize.js [deleted file]
LayoutTests/dom/html/level1/core/hc_attrremovechild1-expected.txt [deleted file]
LayoutTests/dom/html/level1/core/hc_attrremovechild1.html [deleted file]
LayoutTests/dom/html/level1/core/hc_attrremovechild1.js [deleted file]
LayoutTests/dom/html/level1/core/hc_attrreplacechild1-expected.txt [deleted file]
LayoutTests/dom/html/level1/core/hc_attrreplacechild1.html [deleted file]
LayoutTests/dom/html/level1/core/hc_attrreplacechild1.js [deleted file]
LayoutTests/dom/html/level1/core/hc_attrreplacechild2-expected.txt [deleted file]
LayoutTests/dom/html/level1/core/hc_attrreplacechild2.html [deleted file]
LayoutTests/dom/html/level1/core/hc_attrreplacechild2.js [deleted file]
LayoutTests/dom/html/level1/core/hc_attrsetvalue1-expected.txt [deleted file]
LayoutTests/dom/html/level1/core/hc_attrsetvalue1.html [deleted file]
LayoutTests/dom/html/level1/core/hc_attrsetvalue1.js [deleted file]
LayoutTests/dom/html/level1/core/hc_attrsetvalue2-expected.txt [deleted file]
LayoutTests/dom/html/level1/core/hc_attrsetvalue2.html [deleted file]
LayoutTests/dom/html/level1/core/hc_attrsetvalue2.js [deleted file]
LayoutTests/dom/html/level1/core/hc_elementnormalize2-expected.txt [deleted file]
LayoutTests/dom/html/level1/core/hc_elementnormalize2.html [deleted file]
LayoutTests/dom/html/level1/core/hc_elementnormalize2.js [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrappendchild1-expected.txt [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrappendchild1.js [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrappendchild1.xhtml [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrappendchild2-expected.txt [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrappendchild2.js [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrappendchild2.xhtml [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrappendchild3-expected.txt [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrappendchild3.js [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrappendchild3.xhtml [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrappendchild4-expected.txt [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrappendchild4.js [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrappendchild4.xhtml [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrappendchild5-expected.txt [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrappendchild5.js [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrappendchild5.xhtml [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrappendchild6-expected.txt [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrappendchild6.js [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrappendchild6.xhtml [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrchildnodes1-expected.txt [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrchildnodes1.js [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrchildnodes1.xhtml [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrchildnodes2-expected.txt [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrchildnodes2.js [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrchildnodes2.xhtml [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrclonenode1-expected.txt [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrclonenode1.js [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrclonenode1.xhtml [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrfirstchild-expected.txt [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrfirstchild.js [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrfirstchild.xhtml [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrhaschildnodes-expected.txt [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrhaschildnodes.js [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrhaschildnodes.xhtml [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrinsertbefore1-expected.txt [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrinsertbefore1.js [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrinsertbefore1.xhtml [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrinsertbefore2-expected.txt [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrinsertbefore2.js [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrinsertbefore2.xhtml [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrinsertbefore3-expected.txt [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrinsertbefore3.js [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrinsertbefore3.xhtml [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrinsertbefore4-expected.txt [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrinsertbefore4.js [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrinsertbefore4.xhtml [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrinsertbefore5-expected.txt [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrinsertbefore5.js [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrinsertbefore5.xhtml [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrinsertbefore6-expected.txt [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrinsertbefore6.js [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrinsertbefore6.xhtml [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrinsertbefore7-expected.txt [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrinsertbefore7.js [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrinsertbefore7.xhtml [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrlastchild-expected.txt [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrlastchild.js [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrlastchild.xhtml [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrnormalize-expected.txt [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrnormalize.js [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrnormalize.xhtml [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrremovechild1-expected.txt [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrremovechild1.js [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrremovechild1.xhtml [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrreplacechild1-expected.txt [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrreplacechild1.js [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrreplacechild1.xhtml [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrreplacechild2-expected.txt [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrreplacechild2.js [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrreplacechild2.xhtml [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrsetvalue1-expected.txt [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrsetvalue1.js [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrsetvalue1.xhtml [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrsetvalue2-expected.txt [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrsetvalue2.js [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_attrsetvalue2.xhtml [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_elementnormalize2-expected.txt [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_elementnormalize2.js [deleted file]
LayoutTests/dom/xhtml/level1/core/hc_elementnormalize2.xhtml [deleted file]
LayoutTests/dom/xhtml/level3/core/documentadoptnode01-expected.txt [deleted file]
LayoutTests/dom/xhtml/level3/core/documentadoptnode01.js [deleted file]
LayoutTests/dom/xhtml/level3/core/documentadoptnode01.xhtml [deleted file]
LayoutTests/dom/xhtml/level3/core/documentadoptnode02-expected.txt [deleted file]
LayoutTests/dom/xhtml/level3/core/documentadoptnode02.js [deleted file]
LayoutTests/dom/xhtml/level3/core/documentadoptnode02.xhtml [deleted file]
LayoutTests/dom/xhtml/level3/core/noderemovechild28-expected.txt [deleted file]
LayoutTests/dom/xhtml/level3/core/noderemovechild28.js [deleted file]
LayoutTests/dom/xhtml/level3/core/noderemovechild28.xhtml [deleted file]
LayoutTests/dom/xhtml/level3/core/noderemovechild29-expected.txt [deleted file]
LayoutTests/dom/xhtml/level3/core/noderemovechild29.js [deleted file]
LayoutTests/dom/xhtml/level3/core/noderemovechild29.xhtml [deleted file]
LayoutTests/dom/xhtml/level3/core/noderemovechild30-expected.txt [deleted file]
LayoutTests/dom/xhtml/level3/core/noderemovechild30.js [deleted file]
LayoutTests/dom/xhtml/level3/core/noderemovechild30.xhtml [deleted file]
LayoutTests/fast/custom-elements/reactions-for-webkit-extensions-expected.txt
LayoutTests/fast/custom-elements/reactions-for-webkit-extensions.html
LayoutTests/fast/dom/Attr/cannot-have-children-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/Attr/cannot-have-children.html [new file with mode: 0644]
LayoutTests/fast/dom/Attr/change-id-via-attr-node-value-expected.txt
LayoutTests/fast/dom/Attr/change-id-via-attr-node-value.html
LayoutTests/fast/dom/Attr/child-nodes-cache-expected.txt [deleted file]
LayoutTests/fast/dom/Attr/child-nodes-cache.html [deleted file]
LayoutTests/fast/dom/Attr/child-nodes-length-cache-expected.txt [deleted file]
LayoutTests/fast/dom/Attr/child-nodes-length-cache.html [deleted file]
LayoutTests/fast/dom/Attr/invalidate-nodelist-after-attr-setvalue-expected.txt [deleted file]
LayoutTests/fast/dom/Attr/invalidate-nodelist-after-attr-setvalue.html [deleted file]
LayoutTests/fast/dom/Element/normalize-crash.html
LayoutTests/fast/dom/Element/normalize-crash2.html
LayoutTests/fast/dom/HTMLLinkElement/event-while-removing-attribute-expected.txt
LayoutTests/fast/dom/HTMLLinkElement/event-while-removing-attribute.html
LayoutTests/fast/dom/MutationObserver/observe-attributes-expected.txt
LayoutTests/fast/dom/MutationObserver/observe-attributes.html
LayoutTests/fast/dom/attribute-change-on-mutate-expected.txt [deleted file]
LayoutTests/fast/dom/attribute-change-on-mutate.html [deleted file]
LayoutTests/fast/dom/import-attribute-node.html
LayoutTests/fast/dom/insertedIntoDocument-child.html
LayoutTests/fast/dom/insertedIntoDocument-sibling.html
LayoutTests/fast/dom/no-assert-for-malformed-js-url-attribute-expected.txt
LayoutTests/fast/dom/no-assert-for-malformed-js-url-attribute.html
LayoutTests/fast/dom/normalize-attributes-mutation-event-crash.html
LayoutTests/fast/dom/serialize-nodes.xhtml
LayoutTests/http/tests/security/xss-DENIED-iframe-src-alias-expected.txt
LayoutTests/svg/custom/image-with-attr-change-after-delete-crash-expected.txt [deleted file]
LayoutTests/svg/custom/image-with-attr-change-after-delete-crash.html [deleted file]
LayoutTests/traversal/moz-bug590771-expected.txt [deleted file]
LayoutTests/traversal/moz-bug590771.html [deleted file]
Source/WebCore/ChangeLog
Source/WebCore/dom/Attr.cpp
Source/WebCore/dom/Attr.h
Source/WebCore/dom/CharacterData.cpp
Source/WebCore/dom/Node.cpp
Source/WebCore/dom/Range.cpp
Source/WebCore/xml/XPathUtil.cpp

index d56dac9..4892e59 100644 (file)
@@ -1,3 +1,53 @@
+2017-05-05  Chris Dumez  <cdumez@apple.com>
+
+        Attr Nodes should not have children
+        https://bugs.webkit.org/show_bug.cgi?id=171688
+        <rdar://problem/31998412>
+
+        Reviewed by Andreas Kling.
+
+        * fast/dom/Attr/cannot-have-children-expected.txt: Added.
+        * fast/dom/Attr/cannot-have-children.html: Added.
+        Add layout test coverage. I have verified that this test passes in both
+        Firefox and Chrome.
+
+        * dom/html/level1/*: Removed legacy / outdated tests.
+        * dom/xhtml/level1/*: Removed legacy / outdated tests.
+
+        * fast/dom/Attr/child-nodes-cache-expected.txt: Removed.
+        * fast/dom/Attr/child-nodes-cache.html: Removed.
+        * fast/dom/Attr/child-nodes-length-cache-expected.txt: Removed.
+        * fast/dom/Attr/child-nodes-length-cache.html: Removed.
+        * fast/dom/Attr/invalidate-nodelist-after-attr-setvalue-expected.txt: Removed.
+        * fast/dom/Attr/invalidate-nodelist-after-attr-setvalue.html: Removed.
+        * fast/dom/attribute-change-on-mutate-expected.txt: Removed.
+        * fast/dom/attribute-change-on-mutate.html: Removed.
+        * svg/custom/image-with-attr-change-after-delete-crash-expected.txt: Removed.
+        * svg/custom/image-with-attr-change-after-delete-crash.html: Removed.
+        * traversal/moz-bug590771-expected.txt: Removed.
+        * traversal/moz-bug590771.html: Removed.
+        Removed some outdated tests.
+
+        * fast/custom-elements/reactions-for-webkit-extensions-expected.txt:
+        * fast/custom-elements/reactions-for-webkit-extensions.html:
+        * fast/dom/Attr/change-id-via-attr-node-value-expected.txt:
+        * fast/dom/Attr/change-id-via-attr-node-value.html:
+        * fast/dom/Element/normalize-crash.html:
+        * fast/dom/Element/normalize-crash2.html:
+        * fast/dom/HTMLLinkElement/event-while-removing-attribute-expected.txt:
+        * fast/dom/HTMLLinkElement/event-while-removing-attribute.html:
+        * fast/dom/MutationObserver/observe-attributes-expected.txt:
+        * fast/dom/MutationObserver/observe-attributes.html:
+        * fast/dom/import-attribute-node.html:
+        * fast/dom/insertedIntoDocument-child.html:
+        * fast/dom/insertedIntoDocument-sibling.html:
+        * fast/dom/no-assert-for-malformed-js-url-attribute-expected.txt:
+        * fast/dom/no-assert-for-malformed-js-url-attribute.html:
+        * fast/dom/normalize-attributes-mutation-event-crash.html:
+        * fast/dom/serialize-nodes.xhtml:
+        * http/tests/security/xss-DENIED-iframe-src-alias-expected.txt:
+        Update existing tests so they stop relying on Attr Node having Text children.
+
 2017-05-05  Ryan Haddad  <ryanhaddad@apple.com>
 
         Mark w3c test persisted-user-state-restoration/scroll-restoration-fragment-scrolling-cross-origin.html as flaky on mac-wk1.
diff --git a/LayoutTests/dom/html/level1/core/hc_attrappendchild1-expected.txt b/LayoutTests/dom/html/level1/core/hc_attrappendchild1-expected.txt
deleted file mode 100644 (file)
index dfd0980..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-Test:  http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrappendchild1
-Status:        Success
diff --git a/LayoutTests/dom/html/level1/core/hc_attrappendchild1.html b/LayoutTests/dom/html/level1/core/hc_attrappendchild1.html
deleted file mode 100644 (file)
index 6c221ac..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" 
-    "http://www.w3.org/TR/html4/strict.dtd" >
-<!-- This is comment number 1.-->
-<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>hc_staff</title><script type="text/javascript" src="selfhtml.js"></script><script charset="UTF-8" type="text/javascript" src="hc_attrappendchild1.js"></script><script type='text/javascript'>function loadComplete() { startTest(); }</script></head><body onload="loadComplete()">
- <p>
-  <em>EMP0001</em>
-  <strong>Margaret Martin</strong>
-  <code>Accountant</code>           
-  <sup>56,000</sup>
-  <var>Female</var>
-  <acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym>
- </p>
- <p>
-  <em>EMP0002</em>
-  <strong>Martha RaynoldsThis is a CDATASection with EntityReference number 2 &amp;ent2;
-This is an adjacent CDATASection with a reference to a tab &amp;tab;</strong>
-  <code>Secretary</code>
-  <sup>35,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Yes">&beta; Dallas, &gamma;
- 98554</acronym>
- </p>
- <p>
-  <em>EMP0003</em>
-  <strong>Roger
- Jones</strong>
-  <code>Department Manager</code>
-  <sup>100,000</sup>
-  <var>&delta;</var>
-  <acronym title="Yes" class="No">PO Box 27 Irving, texas 98553</acronym>
- </p>
- <p>
-  <em>EMP0004</em>
-  <strong>Jeny Oconnor</strong>
-  <code>Personnel Director</code>
-  <sup>95,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Y&alpha;">27 South Road. Dallas, Texas 98556</acronym>
- </p>
- <p>
-  <em>EMP0005</em>
-  <strong>Robert Myers</strong>
-  <code>Computer Specialist</code>
-  <sup>90,000</sup>
-  <var>male</var>
-  <acronym title="Yes">1821 Nordic. Road, Irving Texas 98558</acronym>
- </p>
-</body></html>
diff --git a/LayoutTests/dom/html/level1/core/hc_attrappendchild1.js b/LayoutTests/dom/html/level1/core/hc_attrappendchild1.js
deleted file mode 100644 (file)
index 0bb0ad9..0000000
+++ /dev/null
@@ -1,132 +0,0 @@
-
-/*
-Copyright Â© 2001-2004 World Wide Web Consortium, 
-(Massachusetts Institute of Technology, European Research Consortium 
-for Informatics and Mathematics, Keio University). All 
-Rights Reserved. This work is distributed under the W3C® Software License [1] 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. 
-
-[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
-*/
-
-
-
-   /**
-    *  Gets URI that identifies the test.
-    *  @return uri identifier of test
-    */
-function getTargetURI() {
-      return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrappendchild1";
-   }
-
-var docsLoaded = -1000000;
-var builder = null;
-
-//
-//   This function is called by the testing framework before
-//      running the test suite.
-//
-//   If there are no configuration exceptions, asynchronous
-//        document loading is started.  Otherwise, the status
-//        is set to complete and the exception is immediately
-//        raised when entering the body of the test.
-//
-function setUpPage() {
-   setUpPageStatus = 'running';
-   try {
-     //
-     //   creates test document builder, may throw exception
-     //
-     builder = createConfiguredBuilder();
-
-      docsLoaded = 0;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      docsLoaded += preload(docRef, "doc", "hc_staff");
-        
-       if (docsLoaded == 1) {
-          setUpPageStatus = 'complete';
-       }
-    } catch(ex) {
-       catchInitializationError(builder, ex);
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-
-//
-//   This method is called on the completion of 
-//      each asychronous load started in setUpTests.
-//
-//   When every synchronous loaded document has completed,
-//      the page status is changed which allows the
-//      body of the test to be executed.
-function loadComplete() {
-    if (++docsLoaded == 1) {
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-/**
-* 
-Appends a text node to an attribute and checks if the value of
-the attribute is changed.
-
-* @author Curt Arnold
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-184E7107
-*/
-function hc_attrappendchild1() {
-   var success;
-    if(checkInitialization(builder, "hc_attrappendchild1") != null) return;
-    var doc;
-      var acronymList;
-      var testNode;
-      var attributes;
-      var titleAttr;
-      var value;
-      var textNode;
-      var retval;
-      var lastChild;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      doc = load(docRef, "doc", "hc_staff");
-      acronymList = doc.getElementsByTagName("acronym");
-      testNode = acronymList.item(3);
-      attributes = testNode.attributes;
-
-      titleAttr = attributes.getNamedItem("title");
-      textNode = doc.createTextNode("terday");
-      retval = titleAttr.appendChild(textNode);
-      value = titleAttr.value;
-
-      assertEquals("attrValue","Yesterday",value);
-       value = titleAttr.nodeValue;
-
-      assertEquals("attrNodeValue","Yesterday",value);
-       value = retval.nodeValue;
-
-      assertEquals("retvalValue","terday",value);
-       lastChild = titleAttr.lastChild;
-
-      value = lastChild.nodeValue;
-
-      assertEquals("lastChildValue","terday",value);
-       
-}
-
-
-
-
-function runTest() {
-   hc_attrappendchild1();
-}
diff --git a/LayoutTests/dom/html/level1/core/hc_attrappendchild2-expected.txt b/LayoutTests/dom/html/level1/core/hc_attrappendchild2-expected.txt
deleted file mode 100644 (file)
index a735fa0..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-Test:  http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrappendchild2
-Status:        Success
diff --git a/LayoutTests/dom/html/level1/core/hc_attrappendchild2.html b/LayoutTests/dom/html/level1/core/hc_attrappendchild2.html
deleted file mode 100644 (file)
index d074183..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" 
-    "http://www.w3.org/TR/html4/strict.dtd" >
-<!-- This is comment number 1.-->
-<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>hc_staff</title><script type="text/javascript" src="selfhtml.js"></script><script charset="UTF-8" type="text/javascript" src="hc_attrappendchild2.js"></script><script type='text/javascript'>function loadComplete() { startTest(); }</script></head><body onload="loadComplete()">
- <p>
-  <em>EMP0001</em>
-  <strong>Margaret Martin</strong>
-  <code>Accountant</code>           
-  <sup>56,000</sup>
-  <var>Female</var>
-  <acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym>
- </p>
- <p>
-  <em>EMP0002</em>
-  <strong>Martha RaynoldsThis is a CDATASection with EntityReference number 2 &amp;ent2;
-This is an adjacent CDATASection with a reference to a tab &amp;tab;</strong>
-  <code>Secretary</code>
-  <sup>35,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Yes">&beta; Dallas, &gamma;
- 98554</acronym>
- </p>
- <p>
-  <em>EMP0003</em>
-  <strong>Roger
- Jones</strong>
-  <code>Department Manager</code>
-  <sup>100,000</sup>
-  <var>&delta;</var>
-  <acronym title="Yes" class="No">PO Box 27 Irving, texas 98553</acronym>
- </p>
- <p>
-  <em>EMP0004</em>
-  <strong>Jeny Oconnor</strong>
-  <code>Personnel Director</code>
-  <sup>95,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Y&alpha;">27 South Road. Dallas, Texas 98556</acronym>
- </p>
- <p>
-  <em>EMP0005</em>
-  <strong>Robert Myers</strong>
-  <code>Computer Specialist</code>
-  <sup>90,000</sup>
-  <var>male</var>
-  <acronym title="Yes">1821 Nordic. Road, Irving Texas 98558</acronym>
- </p>
-</body></html>
diff --git a/LayoutTests/dom/html/level1/core/hc_attrappendchild2.js b/LayoutTests/dom/html/level1/core/hc_attrappendchild2.js
deleted file mode 100644 (file)
index ac53896..0000000
+++ /dev/null
@@ -1,127 +0,0 @@
-
-/*
-Copyright Â© 2001-2004 World Wide Web Consortium, 
-(Massachusetts Institute of Technology, European Research Consortium 
-for Informatics and Mathematics, Keio University). All 
-Rights Reserved. This work is distributed under the W3C® Software License [1] 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. 
-
-[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
-*/
-
-
-
-   /**
-    *  Gets URI that identifies the test.
-    *  @return uri identifier of test
-    */
-function getTargetURI() {
-      return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrappendchild2";
-   }
-
-var docsLoaded = -1000000;
-var builder = null;
-
-//
-//   This function is called by the testing framework before
-//      running the test suite.
-//
-//   If there are no configuration exceptions, asynchronous
-//        document loading is started.  Otherwise, the status
-//        is set to complete and the exception is immediately
-//        raised when entering the body of the test.
-//
-function setUpPage() {
-   setUpPageStatus = 'running';
-   try {
-     //
-     //   creates test document builder, may throw exception
-     //
-     builder = createConfiguredBuilder();
-
-      docsLoaded = 0;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      docsLoaded += preload(docRef, "doc", "hc_staff");
-        
-       if (docsLoaded == 1) {
-          setUpPageStatus = 'complete';
-       }
-    } catch(ex) {
-       catchInitializationError(builder, ex);
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-
-//
-//   This method is called on the completion of 
-//      each asychronous load started in setUpTests.
-//
-//   When every synchronous loaded document has completed,
-//      the page status is changed which allows the
-//      body of the test to be executed.
-function loadComplete() {
-    if (++docsLoaded == 1) {
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-/**
-* 
-Attempts to append an element to the child nodes of an attribute.
-
-* @author Curt Arnold
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-184E7107
-*/
-function hc_attrappendchild2() {
-   var success;
-    if(checkInitialization(builder, "hc_attrappendchild2") != null) return;
-    var doc;
-      var acronymList;
-      var testNode;
-      var attributes;
-      var titleAttr;
-      var value;
-      var newChild;
-      var retval;
-      var lastChild;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      doc = load(docRef, "doc", "hc_staff");
-      acronymList = doc.getElementsByTagName("acronym");
-      testNode = acronymList.item(3);
-      attributes = testNode.attributes;
-
-      titleAttr = attributes.getNamedItem("title");
-      newChild = doc.createElement("terday");
-      
-       {
-               success = false;
-               try {
-            retval = titleAttr.appendChild(newChild);
-        }
-               catch(ex) {
-      success = (typeof(ex.code) != 'undefined' && ex.code == 3);
-               }
-               assertTrue("throw_HIERARCHY_REQUEST_ERR",success);
-       }
-
-}
-
-
-
-
-function runTest() {
-   hc_attrappendchild2();
-}
diff --git a/LayoutTests/dom/html/level1/core/hc_attrappendchild3-expected.txt b/LayoutTests/dom/html/level1/core/hc_attrappendchild3-expected.txt
deleted file mode 100644 (file)
index 514c75c..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-Test:  http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrappendchild3
-Status:        Success
diff --git a/LayoutTests/dom/html/level1/core/hc_attrappendchild3.html b/LayoutTests/dom/html/level1/core/hc_attrappendchild3.html
deleted file mode 100644 (file)
index 2eb0236..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" 
-    "http://www.w3.org/TR/html4/strict.dtd" >
-<!-- This is comment number 1.-->
-<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>hc_staff</title><script type="text/javascript" src="selfhtml.js"></script><script charset="UTF-8" type="text/javascript" src="hc_attrappendchild3.js"></script><script type='text/javascript'>function loadComplete() { startTest(); }</script></head><body onload="loadComplete()">
- <p>
-  <em>EMP0001</em>
-  <strong>Margaret Martin</strong>
-  <code>Accountant</code>           
-  <sup>56,000</sup>
-  <var>Female</var>
-  <acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym>
- </p>
- <p>
-  <em>EMP0002</em>
-  <strong>Martha RaynoldsThis is a CDATASection with EntityReference number 2 &amp;ent2;
-This is an adjacent CDATASection with a reference to a tab &amp;tab;</strong>
-  <code>Secretary</code>
-  <sup>35,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Yes">&beta; Dallas, &gamma;
- 98554</acronym>
- </p>
- <p>
-  <em>EMP0003</em>
-  <strong>Roger
- Jones</strong>
-  <code>Department Manager</code>
-  <sup>100,000</sup>
-  <var>&delta;</var>
-  <acronym title="Yes" class="No">PO Box 27 Irving, texas 98553</acronym>
- </p>
- <p>
-  <em>EMP0004</em>
-  <strong>Jeny Oconnor</strong>
-  <code>Personnel Director</code>
-  <sup>95,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Y&alpha;">27 South Road. Dallas, Texas 98556</acronym>
- </p>
- <p>
-  <em>EMP0005</em>
-  <strong>Robert Myers</strong>
-  <code>Computer Specialist</code>
-  <sup>90,000</sup>
-  <var>male</var>
-  <acronym title="Yes">1821 Nordic. Road, Irving Texas 98558</acronym>
- </p>
-</body></html>
diff --git a/LayoutTests/dom/html/level1/core/hc_attrappendchild3.js b/LayoutTests/dom/html/level1/core/hc_attrappendchild3.js
deleted file mode 100644 (file)
index 66adc3d..0000000
+++ /dev/null
@@ -1,138 +0,0 @@
-
-/*
-Copyright Â© 2001-2004 World Wide Web Consortium, 
-(Massachusetts Institute of Technology, European Research Consortium 
-for Informatics and Mathematics, Keio University). All 
-Rights Reserved. This work is distributed under the W3C® Software License [1] 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. 
-
-[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
-*/
-
-
-
-   /**
-    *  Gets URI that identifies the test.
-    *  @return uri identifier of test
-    */
-function getTargetURI() {
-      return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrappendchild3";
-   }
-
-var docsLoaded = -1000000;
-var builder = null;
-
-//
-//   This function is called by the testing framework before
-//      running the test suite.
-//
-//   If there are no configuration exceptions, asynchronous
-//        document loading is started.  Otherwise, the status
-//        is set to complete and the exception is immediately
-//        raised when entering the body of the test.
-//
-function setUpPage() {
-   setUpPageStatus = 'running';
-   try {
-     //
-     //   creates test document builder, may throw exception
-     //
-     builder = createConfiguredBuilder();
-
-      docsLoaded = 0;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      docsLoaded += preload(docRef, "doc", "hc_staff");
-        
-       if (docsLoaded == 1) {
-          setUpPageStatus = 'complete';
-       }
-    } catch(ex) {
-       catchInitializationError(builder, ex);
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-
-//
-//   This method is called on the completion of 
-//      each asychronous load started in setUpTests.
-//
-//   When every synchronous loaded document has completed,
-//      the page status is changed which allows the
-//      body of the test to be executed.
-function loadComplete() {
-    if (++docsLoaded == 1) {
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-/**
-* 
-Appends a document fragment to an attribute and checks if the value of
-the attribute is changed.
-
-* @author Curt Arnold
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-184E7107
-*/
-function hc_attrappendchild3() {
-   var success;
-    if(checkInitialization(builder, "hc_attrappendchild3") != null) return;
-    var doc;
-      var acronymList;
-      var testNode;
-      var attributes;
-      var titleAttr;
-      var value;
-      var terNode;
-      var dayNode;
-      var retval;
-      var lastChild;
-      var docFrag;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      doc = load(docRef, "doc", "hc_staff");
-      acronymList = doc.getElementsByTagName("acronym");
-      testNode = acronymList.item(3);
-      attributes = testNode.attributes;
-
-      titleAttr = attributes.getNamedItem("title");
-      terNode = doc.createTextNode("ter");
-      dayNode = doc.createTextNode("day");
-      docFrag = doc.createDocumentFragment();
-      retval = docFrag.appendChild(terNode);
-      retval = docFrag.appendChild(dayNode);
-      retval = titleAttr.appendChild(docFrag);
-      value = titleAttr.value;
-
-      assertEquals("attrValue","Yesterday",value);
-       value = titleAttr.nodeValue;
-
-      assertEquals("attrNodeValue","Yesterday",value);
-       value = retval.nodeValue;
-
-      assertNull("retvalValue",value);
-    lastChild = titleAttr.lastChild;
-
-      value = lastChild.nodeValue;
-
-      assertEquals("lastChildValue","day",value);
-       
-}
-
-
-
-
-function runTest() {
-   hc_attrappendchild3();
-}
diff --git a/LayoutTests/dom/html/level1/core/hc_attrappendchild4-expected.txt b/LayoutTests/dom/html/level1/core/hc_attrappendchild4-expected.txt
deleted file mode 100644 (file)
index 629c052..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-Test:  http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrappendchild4
-Status:        Success
diff --git a/LayoutTests/dom/html/level1/core/hc_attrappendchild4.html b/LayoutTests/dom/html/level1/core/hc_attrappendchild4.html
deleted file mode 100644 (file)
index c6c437b..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" 
-    "http://www.w3.org/TR/html4/strict.dtd" >
-<!-- This is comment number 1.-->
-<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>hc_staff</title><script type="text/javascript" src="selfhtml.js"></script><script charset="UTF-8" type="text/javascript" src="hc_attrappendchild4.js"></script><script type='text/javascript'>function loadComplete() { startTest(); }</script></head><body onload="loadComplete()">
- <p>
-  <em>EMP0001</em>
-  <strong>Margaret Martin</strong>
-  <code>Accountant</code>           
-  <sup>56,000</sup>
-  <var>Female</var>
-  <acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym>
- </p>
- <p>
-  <em>EMP0002</em>
-  <strong>Martha RaynoldsThis is a CDATASection with EntityReference number 2 &amp;ent2;
-This is an adjacent CDATASection with a reference to a tab &amp;tab;</strong>
-  <code>Secretary</code>
-  <sup>35,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Yes">&beta; Dallas, &gamma;
- 98554</acronym>
- </p>
- <p>
-  <em>EMP0003</em>
-  <strong>Roger
- Jones</strong>
-  <code>Department Manager</code>
-  <sup>100,000</sup>
-  <var>&delta;</var>
-  <acronym title="Yes" class="No">PO Box 27 Irving, texas 98553</acronym>
- </p>
- <p>
-  <em>EMP0004</em>
-  <strong>Jeny Oconnor</strong>
-  <code>Personnel Director</code>
-  <sup>95,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Y&alpha;">27 South Road. Dallas, Texas 98556</acronym>
- </p>
- <p>
-  <em>EMP0005</em>
-  <strong>Robert Myers</strong>
-  <code>Computer Specialist</code>
-  <sup>90,000</sup>
-  <var>male</var>
-  <acronym title="Yes">1821 Nordic. Road, Irving Texas 98558</acronym>
- </p>
-</body></html>
diff --git a/LayoutTests/dom/html/level1/core/hc_attrappendchild4.js b/LayoutTests/dom/html/level1/core/hc_attrappendchild4.js
deleted file mode 100644 (file)
index dc70102..0000000
+++ /dev/null
@@ -1,152 +0,0 @@
-
-/*
-Copyright Â© 2001-2004 World Wide Web Consortium, 
-(Massachusetts Institute of Technology, European Research Consortium 
-for Informatics and Mathematics, Keio University). All 
-Rights Reserved. This work is distributed under the W3C® Software License [1] 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. 
-
-[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
-*/
-
-
-
-   /**
-    *  Gets URI that identifies the test.
-    *  @return uri identifier of test
-    */
-function getTargetURI() {
-      return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrappendchild4";
-   }
-
-var docsLoaded = -1000000;
-var builder = null;
-
-//
-//   This function is called by the testing framework before
-//      running the test suite.
-//
-//   If there are no configuration exceptions, asynchronous
-//        document loading is started.  Otherwise, the status
-//        is set to complete and the exception is immediately
-//        raised when entering the body of the test.
-//
-function setUpPage() {
-   setUpPageStatus = 'running';
-   try {
-     //
-     //   creates test document builder, may throw exception
-     //
-     builder = createConfiguredBuilder();
-       checkFeature("XML", null);
-
-      docsLoaded = 0;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      docsLoaded += preload(docRef, "doc", "hc_staff");
-        
-       if (docsLoaded == 1) {
-          setUpPageStatus = 'complete';
-       }
-    } catch(ex) {
-       catchInitializationError(builder, ex);
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-
-//
-//   This method is called on the completion of 
-//      each asychronous load started in setUpTests.
-//
-//   When every synchronous loaded document has completed,
-//      the page status is changed which allows the
-//      body of the test to be executed.
-function loadComplete() {
-    if (++docsLoaded == 1) {
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-/**
-* 
-Attempt to append a CDATASection to an attribute which should result
-in a HIERARCHY_REQUEST_ERR.
-
-* @author Curt Arnold
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-184E7107
-*/
-function hc_attrappendchild4() {
-   var success;
-    if(checkInitialization(builder, "hc_attrappendchild4") != null) return;
-    var doc;
-      var acronymList;
-      var testNode;
-      var attributes;
-      var titleAttr;
-      var value;
-      var textNode;
-      var retval;
-      var lastChild;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      doc = load(docRef, "doc", "hc_staff");
-      acronymList = doc.getElementsByTagName("acronym");
-      testNode = acronymList.item(3);
-      attributes = testNode.attributes;
-
-      titleAttr = attributes.getNamedItem("title");
-      
-       if(
-       
-       (builder.contentType == "text/html")
-
-       ) {
-       
-       {
-               success = false;
-               try {
-            textNode = doc.createCDATASection("terday");
-        }
-               catch(ex) {
-      success = (typeof(ex.code) != 'undefined' && ex.code == 9);
-               }
-               assertTrue("throw_NOT_SUPPORTED_ERR",success);
-       }
-
-       }
-       
-               else {
-                       textNode = doc.createCDATASection("terday");
-      
-       {
-               success = false;
-               try {
-            retval = titleAttr.appendChild(textNode);
-        }
-               catch(ex) {
-      success = (typeof(ex.code) != 'undefined' && ex.code == 3);
-               }
-               assertTrue("throw_HIERARCHY_REQUEST_ERR",success);
-       }
-
-               }
-       
-}
-
-
-
-
-function runTest() {
-   hc_attrappendchild4();
-}
diff --git a/LayoutTests/dom/html/level1/core/hc_attrappendchild5-expected.txt b/LayoutTests/dom/html/level1/core/hc_attrappendchild5-expected.txt
deleted file mode 100644 (file)
index ce4a75c..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-Test:  http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrappendchild5   
-Status:        failure
-Detail:        throw_WRONG_DOCUMENT_ERR: assertTrue failed
diff --git a/LayoutTests/dom/html/level1/core/hc_attrappendchild5.html b/LayoutTests/dom/html/level1/core/hc_attrappendchild5.html
deleted file mode 100644 (file)
index 237342f..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" 
-    "http://www.w3.org/TR/html4/strict.dtd" >
-<!-- This is comment number 1.-->
-<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>hc_staff</title><script type="text/javascript" src="selfhtml.js"></script><script charset="UTF-8" type="text/javascript" src="hc_attrappendchild5.js"></script><script type='text/javascript'>function loadComplete() { startTest(); }</script></head><body onload="loadComplete()">
- <p>
-  <em>EMP0001</em>
-  <strong>Margaret Martin</strong>
-  <code>Accountant</code>           
-  <sup>56,000</sup>
-  <var>Female</var>
-  <acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym>
- </p>
- <p>
-  <em>EMP0002</em>
-  <strong>Martha RaynoldsThis is a CDATASection with EntityReference number 2 &amp;ent2;
-This is an adjacent CDATASection with a reference to a tab &amp;tab;</strong>
-  <code>Secretary</code>
-  <sup>35,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Yes">&beta; Dallas, &gamma;
- 98554</acronym>
- </p>
- <p>
-  <em>EMP0003</em>
-  <strong>Roger
- Jones</strong>
-  <code>Department Manager</code>
-  <sup>100,000</sup>
-  <var>&delta;</var>
-  <acronym title="Yes" class="No">PO Box 27 Irving, texas 98553</acronym>
- </p>
- <p>
-  <em>EMP0004</em>
-  <strong>Jeny Oconnor</strong>
-  <code>Personnel Director</code>
-  <sup>95,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Y&alpha;">27 South Road. Dallas, Texas 98556</acronym>
- </p>
- <p>
-  <em>EMP0005</em>
-  <strong>Robert Myers</strong>
-  <code>Computer Specialist</code>
-  <sup>90,000</sup>
-  <var>male</var>
-  <acronym title="Yes">1821 Nordic. Road, Irving Texas 98558</acronym>
- </p>
-</body></html>
diff --git a/LayoutTests/dom/html/level1/core/hc_attrappendchild5.js b/LayoutTests/dom/html/level1/core/hc_attrappendchild5.js
deleted file mode 100644 (file)
index c9e8855..0000000
+++ /dev/null
@@ -1,141 +0,0 @@
-
-/*
-Copyright Â© 2001-2004 World Wide Web Consortium, 
-(Massachusetts Institute of Technology, European Research Consortium 
-for Informatics and Mathematics, Keio University). All 
-Rights Reserved. This work is distributed under the W3C® Software License [1] 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. 
-
-[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
-*/
-
-
-
-   /**
-    *  Gets URI that identifies the test.
-    *  @return uri identifier of test
-    */
-function getTargetURI() {
-      return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrappendchild5";
-   }
-
-var docsLoaded = -1000000;
-var builder = null;
-
-//
-//   This function is called by the testing framework before
-//      running the test suite.
-//
-//   If there are no configuration exceptions, asynchronous
-//        document loading is started.  Otherwise, the status
-//        is set to complete and the exception is immediately
-//        raised when entering the body of the test.
-//
-function setUpPage() {
-   setUpPageStatus = 'running';
-   try {
-     //
-     //   creates test document builder, may throw exception
-     //
-     builder = createConfiguredBuilder();
-
-      docsLoaded = 0;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      docsLoaded += preload(docRef, "doc", "hc_staff");
-        
-      var otherDocRef = null;
-      if (typeof(this.otherDoc) != 'undefined') {
-        otherDocRef = this.otherDoc;
-      }
-      docsLoaded += preload(otherDocRef, "otherDoc", "hc_staff");
-        
-       if (docsLoaded == 2) {
-          setUpPageStatus = 'complete';
-       }
-    } catch(ex) {
-       catchInitializationError(builder, ex);
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-
-//
-//   This method is called on the completion of 
-//      each asychronous load started in setUpTests.
-//
-//   When every synchronous loaded document has completed,
-//      the page status is changed which allows the
-//      body of the test to be executed.
-function loadComplete() {
-    if (++docsLoaded == 2) {
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-/**
-* 
-Attempt to append a node from another document to an attribute which should result
-in a WRONG_DOCUMENT_ERR.
-
-* @author Curt Arnold
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-184E7107
-*/
-function hc_attrappendchild5() {
-   var success;
-    if(checkInitialization(builder, "hc_attrappendchild5") != null) return;
-    var doc;
-      var acronymList;
-      var testNode;
-      var attributes;
-      var titleAttr;
-      var value;
-      var textNode;
-      var retval;
-      var lastChild;
-      var otherDoc;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      doc = load(docRef, "doc", "hc_staff");
-      
-      var otherDocRef = null;
-      if (typeof(this.otherDoc) != 'undefined') {
-        otherDocRef = this.otherDoc;
-      }
-      otherDoc = load(otherDocRef, "otherDoc", "hc_staff");
-      acronymList = doc.getElementsByTagName("acronym");
-      testNode = acronymList.item(3);
-      attributes = testNode.attributes;
-
-      titleAttr = attributes.getNamedItem("title");
-      textNode = otherDoc.createTextNode("terday");
-      
-       {
-               success = false;
-               try {
-            retval = titleAttr.appendChild(textNode);
-        }
-               catch(ex) {
-      success = (typeof(ex.code) != 'undefined' && ex.code == 4);
-               }
-               assertTrue("throw_WRONG_DOCUMENT_ERR",success);
-       }
-
-}
-
-
-
-
-function runTest() {
-   hc_attrappendchild5();
-}
diff --git a/LayoutTests/dom/html/level1/core/hc_attrappendchild6-expected.txt b/LayoutTests/dom/html/level1/core/hc_attrappendchild6-expected.txt
deleted file mode 100644 (file)
index 83e105c..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-Test:  http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrappendchild6
-Status:        Success
diff --git a/LayoutTests/dom/html/level1/core/hc_attrappendchild6.html b/LayoutTests/dom/html/level1/core/hc_attrappendchild6.html
deleted file mode 100644 (file)
index 350a45a..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" 
-    "http://www.w3.org/TR/html4/strict.dtd" >
-<!-- This is comment number 1.-->
-<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>hc_staff</title><script type="text/javascript" src="selfhtml.js"></script><script charset="UTF-8" type="text/javascript" src="hc_attrappendchild6.js"></script><script type='text/javascript'>function loadComplete() { startTest(); }</script></head><body onload="loadComplete()">
- <p>
-  <em>EMP0001</em>
-  <strong>Margaret Martin</strong>
-  <code>Accountant</code>           
-  <sup>56,000</sup>
-  <var>Female</var>
-  <acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym>
- </p>
- <p>
-  <em>EMP0002</em>
-  <strong>Martha RaynoldsThis is a CDATASection with EntityReference number 2 &amp;ent2;
-This is an adjacent CDATASection with a reference to a tab &amp;tab;</strong>
-  <code>Secretary</code>
-  <sup>35,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Yes">&beta; Dallas, &gamma;
- 98554</acronym>
- </p>
- <p>
-  <em>EMP0003</em>
-  <strong>Roger
- Jones</strong>
-  <code>Department Manager</code>
-  <sup>100,000</sup>
-  <var>&delta;</var>
-  <acronym title="Yes" class="No">PO Box 27 Irving, texas 98553</acronym>
- </p>
- <p>
-  <em>EMP0004</em>
-  <strong>Jeny Oconnor</strong>
-  <code>Personnel Director</code>
-  <sup>95,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Y&alpha;">27 South Road. Dallas, Texas 98556</acronym>
- </p>
- <p>
-  <em>EMP0005</em>
-  <strong>Robert Myers</strong>
-  <code>Computer Specialist</code>
-  <sup>90,000</sup>
-  <var>male</var>
-  <acronym title="Yes">1821 Nordic. Road, Irving Texas 98558</acronym>
- </p>
-</body></html>
diff --git a/LayoutTests/dom/html/level1/core/hc_attrappendchild6.js b/LayoutTests/dom/html/level1/core/hc_attrappendchild6.js
deleted file mode 100644 (file)
index 01b3d80..0000000
+++ /dev/null
@@ -1,127 +0,0 @@
-
-/*
-Copyright Â© 2001-2004 World Wide Web Consortium, 
-(Massachusetts Institute of Technology, European Research Consortium 
-for Informatics and Mathematics, Keio University). All 
-Rights Reserved. This work is distributed under the W3C® Software License [1] 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. 
-
-[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
-*/
-
-
-
-   /**
-    *  Gets URI that identifies the test.
-    *  @return uri identifier of test
-    */
-function getTargetURI() {
-      return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrappendchild6";
-   }
-
-var docsLoaded = -1000000;
-var builder = null;
-
-//
-//   This function is called by the testing framework before
-//      running the test suite.
-//
-//   If there are no configuration exceptions, asynchronous
-//        document loading is started.  Otherwise, the status
-//        is set to complete and the exception is immediately
-//        raised when entering the body of the test.
-//
-function setUpPage() {
-   setUpPageStatus = 'running';
-   try {
-     //
-     //   creates test document builder, may throw exception
-     //
-     builder = createConfiguredBuilder();
-
-      docsLoaded = 0;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      docsLoaded += preload(docRef, "doc", "hc_staff");
-        
-       if (docsLoaded == 1) {
-          setUpPageStatus = 'complete';
-       }
-    } catch(ex) {
-       catchInitializationError(builder, ex);
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-
-//
-//   This method is called on the completion of 
-//      each asychronous load started in setUpTests.
-//
-//   When every synchronous loaded document has completed,
-//      the page status is changed which allows the
-//      body of the test to be executed.
-function loadComplete() {
-    if (++docsLoaded == 1) {
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-/**
-* 
-Creates an new attribute node and appends a text node.
-
-* @author Curt Arnold
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-184E7107
-*/
-function hc_attrappendchild6() {
-   var success;
-    if(checkInitialization(builder, "hc_attrappendchild6") != null) return;
-    var doc;
-      var acronymList;
-      var testNode;
-      var attributes;
-      var titleAttr;
-      var value;
-      var textNode;
-      var retval;
-      var lastChild;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      doc = load(docRef, "doc", "hc_staff");
-      titleAttr = doc.createAttribute("title");
-      textNode = doc.createTextNode("Yesterday");
-      retval = titleAttr.appendChild(textNode);
-      value = titleAttr.value;
-
-      assertEquals("attrValue","Yesterday",value);
-       value = titleAttr.nodeValue;
-
-      assertEquals("attrNodeValue","Yesterday",value);
-       value = retval.nodeValue;
-
-      assertEquals("retvalValue","Yesterday",value);
-       lastChild = titleAttr.lastChild;
-
-      value = lastChild.nodeValue;
-
-      assertEquals("lastChildValue","Yesterday",value);
-       
-}
-
-
-
-
-function runTest() {
-   hc_attrappendchild6();
-}
diff --git a/LayoutTests/dom/html/level1/core/hc_attrchildnodes1-expected.txt b/LayoutTests/dom/html/level1/core/hc_attrchildnodes1-expected.txt
deleted file mode 100644 (file)
index 6e7bdc3..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-Test:  http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrchildnodes1
-Status:        Success
diff --git a/LayoutTests/dom/html/level1/core/hc_attrchildnodes1.html b/LayoutTests/dom/html/level1/core/hc_attrchildnodes1.html
deleted file mode 100644 (file)
index d3b0b8e..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" 
-    "http://www.w3.org/TR/html4/strict.dtd" >
-<!-- This is comment number 1.-->
-<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>hc_staff</title><script type="text/javascript" src="selfhtml.js"></script><script charset="UTF-8" type="text/javascript" src="hc_attrchildnodes1.js"></script><script type='text/javascript'>function loadComplete() { startTest(); }</script></head><body onload="loadComplete()">
- <p>
-  <em>EMP0001</em>
-  <strong>Margaret Martin</strong>
-  <code>Accountant</code>           
-  <sup>56,000</sup>
-  <var>Female</var>
-  <acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym>
- </p>
- <p>
-  <em>EMP0002</em>
-  <strong>Martha RaynoldsThis is a CDATASection with EntityReference number 2 &amp;ent2;
-This is an adjacent CDATASection with a reference to a tab &amp;tab;</strong>
-  <code>Secretary</code>
-  <sup>35,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Yes">&beta; Dallas, &gamma;
- 98554</acronym>
- </p>
- <p>
-  <em>EMP0003</em>
-  <strong>Roger
- Jones</strong>
-  <code>Department Manager</code>
-  <sup>100,000</sup>
-  <var>&delta;</var>
-  <acronym title="Yes" class="No">PO Box 27 Irving, texas 98553</acronym>
- </p>
- <p>
-  <em>EMP0004</em>
-  <strong>Jeny Oconnor</strong>
-  <code>Personnel Director</code>
-  <sup>95,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Y&alpha;">27 South Road. Dallas, Texas 98556</acronym>
- </p>
- <p>
-  <em>EMP0005</em>
-  <strong>Robert Myers</strong>
-  <code>Computer Specialist</code>
-  <sup>90,000</sup>
-  <var>male</var>
-  <acronym title="Yes">1821 Nordic. Road, Irving Texas 98558</acronym>
- </p>
-</body></html>
diff --git a/LayoutTests/dom/html/level1/core/hc_attrchildnodes1.js b/LayoutTests/dom/html/level1/core/hc_attrchildnodes1.js
deleted file mode 100644 (file)
index ac088f4..0000000
+++ /dev/null
@@ -1,124 +0,0 @@
-
-/*
-Copyright Â© 2001-2004 World Wide Web Consortium, 
-(Massachusetts Institute of Technology, European Research Consortium 
-for Informatics and Mathematics, Keio University). All 
-Rights Reserved. This work is distributed under the W3C® Software License [1] 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. 
-
-[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
-*/
-
-
-
-   /**
-    *  Gets URI that identifies the test.
-    *  @return uri identifier of test
-    */
-function getTargetURI() {
-      return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrchildnodes1";
-   }
-
-var docsLoaded = -1000000;
-var builder = null;
-
-//
-//   This function is called by the testing framework before
-//      running the test suite.
-//
-//   If there are no configuration exceptions, asynchronous
-//        document loading is started.  Otherwise, the status
-//        is set to complete and the exception is immediately
-//        raised when entering the body of the test.
-//
-function setUpPage() {
-   setUpPageStatus = 'running';
-   try {
-     //
-     //   creates test document builder, may throw exception
-     //
-     builder = createConfiguredBuilder();
-
-      docsLoaded = 0;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      docsLoaded += preload(docRef, "doc", "hc_staff");
-        
-       if (docsLoaded == 1) {
-          setUpPageStatus = 'complete';
-       }
-    } catch(ex) {
-       catchInitializationError(builder, ex);
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-
-//
-//   This method is called on the completion of 
-//      each asychronous load started in setUpTests.
-//
-//   When every synchronous loaded document has completed,
-//      the page status is changed which allows the
-//      body of the test to be executed.
-function loadComplete() {
-    if (++docsLoaded == 1) {
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-/**
-* 
-Checks that Node.childNodes for an attribute node contains
-the expected text node.
-
-* @author Curt Arnold
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1451460987
-*/
-function hc_attrchildnodes1() {
-   var success;
-    if(checkInitialization(builder, "hc_attrchildnodes1") != null) return;
-    var doc;
-      var acronymList;
-      var testNode;
-      var attributes;
-      var titleAttr;
-      var value;
-      var textNode;
-      var childNodes;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      doc = load(docRef, "doc", "hc_staff");
-      acronymList = doc.getElementsByTagName("acronym");
-      testNode = acronymList.item(3);
-      attributes = testNode.attributes;
-
-      titleAttr = attributes.getNamedItem("title");
-      childNodes = titleAttr.childNodes;
-
-      assertSize("childNodesSize",1,childNodes);
-textNode = childNodes.item(0);
-      value = textNode.nodeValue;
-
-      assertEquals("child1IsYes","Yes",value);
-       textNode = childNodes.item(1);
-      assertNull("secondItemIsNull",textNode);
-    
-}
-
-
-
-
-function runTest() {
-   hc_attrchildnodes1();
-}
diff --git a/LayoutTests/dom/html/level1/core/hc_attrchildnodes2-expected.txt b/LayoutTests/dom/html/level1/core/hc_attrchildnodes2-expected.txt
deleted file mode 100644 (file)
index db98264..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-Test:  http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrchildnodes2
-Status:        Success
diff --git a/LayoutTests/dom/html/level1/core/hc_attrchildnodes2.html b/LayoutTests/dom/html/level1/core/hc_attrchildnodes2.html
deleted file mode 100644 (file)
index 9b00027..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" 
-    "http://www.w3.org/TR/html4/strict.dtd" >
-<!-- This is comment number 1.-->
-<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>hc_staff</title><script type="text/javascript" src="selfhtml.js"></script><script charset="UTF-8" type="text/javascript" src="hc_attrchildnodes2.js"></script><script type='text/javascript'>function loadComplete() { startTest(); }</script></head><body onload="loadComplete()">
- <p>
-  <em>EMP0001</em>
-  <strong>Margaret Martin</strong>
-  <code>Accountant</code>           
-  <sup>56,000</sup>
-  <var>Female</var>
-  <acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym>
- </p>
- <p>
-  <em>EMP0002</em>
-  <strong>Martha RaynoldsThis is a CDATASection with EntityReference number 2 &amp;ent2;
-This is an adjacent CDATASection with a reference to a tab &amp;tab;</strong>
-  <code>Secretary</code>
-  <sup>35,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Yes">&beta; Dallas, &gamma;
- 98554</acronym>
- </p>
- <p>
-  <em>EMP0003</em>
-  <strong>Roger
- Jones</strong>
-  <code>Department Manager</code>
-  <sup>100,000</sup>
-  <var>&delta;</var>
-  <acronym title="Yes" class="No">PO Box 27 Irving, texas 98553</acronym>
- </p>
- <p>
-  <em>EMP0004</em>
-  <strong>Jeny Oconnor</strong>
-  <code>Personnel Director</code>
-  <sup>95,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Y&alpha;">27 South Road. Dallas, Texas 98556</acronym>
- </p>
- <p>
-  <em>EMP0005</em>
-  <strong>Robert Myers</strong>
-  <code>Computer Specialist</code>
-  <sup>90,000</sup>
-  <var>male</var>
-  <acronym title="Yes">1821 Nordic. Road, Irving Texas 98558</acronym>
- </p>
-</body></html>
diff --git a/LayoutTests/dom/html/level1/core/hc_attrchildnodes2.js b/LayoutTests/dom/html/level1/core/hc_attrchildnodes2.js
deleted file mode 100644 (file)
index c6c6cd5..0000000
+++ /dev/null
@@ -1,130 +0,0 @@
-
-/*
-Copyright Â© 2001-2004 World Wide Web Consortium, 
-(Massachusetts Institute of Technology, European Research Consortium 
-for Informatics and Mathematics, Keio University). All 
-Rights Reserved. This work is distributed under the W3C® Software License [1] 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. 
-
-[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
-*/
-
-
-
-   /**
-    *  Gets URI that identifies the test.
-    *  @return uri identifier of test
-    */
-function getTargetURI() {
-      return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrchildnodes2";
-   }
-
-var docsLoaded = -1000000;
-var builder = null;
-
-//
-//   This function is called by the testing framework before
-//      running the test suite.
-//
-//   If there are no configuration exceptions, asynchronous
-//        document loading is started.  Otherwise, the status
-//        is set to complete and the exception is immediately
-//        raised when entering the body of the test.
-//
-function setUpPage() {
-   setUpPageStatus = 'running';
-   try {
-     //
-     //   creates test document builder, may throw exception
-     //
-     builder = createConfiguredBuilder();
-
-      docsLoaded = 0;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      docsLoaded += preload(docRef, "doc", "hc_staff");
-        
-       if (docsLoaded == 1) {
-          setUpPageStatus = 'complete';
-       }
-    } catch(ex) {
-       catchInitializationError(builder, ex);
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-
-//
-//   This method is called on the completion of 
-//      each asychronous load started in setUpTests.
-//
-//   When every synchronous loaded document has completed,
-//      the page status is changed which allows the
-//      body of the test to be executed.
-function loadComplete() {
-    if (++docsLoaded == 1) {
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-/**
-* 
-Checks Node.childNodes for an attribute with multiple child nodes.
-
-* @author Curt Arnold
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1451460987
-*/
-function hc_attrchildnodes2() {
-   var success;
-    if(checkInitialization(builder, "hc_attrchildnodes2") != null) return;
-    var doc;
-      var acronymList;
-      var testNode;
-      var attributes;
-      var titleAttr;
-      var value;
-      var textNode;
-      var childNodes;
-      var retval;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      doc = load(docRef, "doc", "hc_staff");
-      acronymList = doc.getElementsByTagName("acronym");
-      testNode = acronymList.item(3);
-      attributes = testNode.attributes;
-
-      titleAttr = attributes.getNamedItem("title");
-      childNodes = titleAttr.childNodes;
-
-      textNode = doc.createTextNode("terday");
-      retval = titleAttr.appendChild(textNode);
-      assertSize("childNodesSize",2,childNodes);
-textNode = childNodes.item(0);
-      value = textNode.nodeValue;
-
-      assertEquals("child1IsYes","Yes",value);
-       textNode = childNodes.item(1);
-      value = textNode.nodeValue;
-
-      assertEquals("child2IsTerday","terday",value);
-       textNode = childNodes.item(2);
-      assertNull("thirdItemIsNull",textNode);
-    
-}
-
-
-
-
-function runTest() {
-   hc_attrchildnodes2();
-}
diff --git a/LayoutTests/dom/html/level1/core/hc_attrclonenode1-expected.txt b/LayoutTests/dom/html/level1/core/hc_attrclonenode1-expected.txt
deleted file mode 100644 (file)
index c385eac..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-Test:  http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrclonenode1
-Status:        Success
diff --git a/LayoutTests/dom/html/level1/core/hc_attrclonenode1.html b/LayoutTests/dom/html/level1/core/hc_attrclonenode1.html
deleted file mode 100644 (file)
index ce88477..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" 
-    "http://www.w3.org/TR/html4/strict.dtd" >
-<!-- This is comment number 1.-->
-<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>hc_staff</title><script type="text/javascript" src="selfhtml.js"></script><script charset="UTF-8" type="text/javascript" src="hc_attrclonenode1.js"></script><script type='text/javascript'>function loadComplete() { startTest(); }</script></head><body onload="loadComplete()">
- <p>
-  <em>EMP0001</em>
-  <strong>Margaret Martin</strong>
-  <code>Accountant</code>           
-  <sup>56,000</sup>
-  <var>Female</var>
-  <acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym>
- </p>
- <p>
-  <em>EMP0002</em>
-  <strong>Martha RaynoldsThis is a CDATASection with EntityReference number 2 &amp;ent2;
-This is an adjacent CDATASection with a reference to a tab &amp;tab;</strong>
-  <code>Secretary</code>
-  <sup>35,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Yes">&beta; Dallas, &gamma;
- 98554</acronym>
- </p>
- <p>
-  <em>EMP0003</em>
-  <strong>Roger
- Jones</strong>
-  <code>Department Manager</code>
-  <sup>100,000</sup>
-  <var>&delta;</var>
-  <acronym title="Yes" class="No">PO Box 27 Irving, texas 98553</acronym>
- </p>
- <p>
-  <em>EMP0004</em>
-  <strong>Jeny Oconnor</strong>
-  <code>Personnel Director</code>
-  <sup>95,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Y&alpha;">27 South Road. Dallas, Texas 98556</acronym>
- </p>
- <p>
-  <em>EMP0005</em>
-  <strong>Robert Myers</strong>
-  <code>Computer Specialist</code>
-  <sup>90,000</sup>
-  <var>male</var>
-  <acronym title="Yes">1821 Nordic. Road, Irving Texas 98558</acronym>
- </p>
-</body></html>
diff --git a/LayoutTests/dom/html/level1/core/hc_attrclonenode1.js b/LayoutTests/dom/html/level1/core/hc_attrclonenode1.js
deleted file mode 100644 (file)
index 7667e85..0000000
+++ /dev/null
@@ -1,132 +0,0 @@
-
-/*
-Copyright Â© 2001-2004 World Wide Web Consortium, 
-(Massachusetts Institute of Technology, European Research Consortium 
-for Informatics and Mathematics, Keio University). All 
-Rights Reserved. This work is distributed under the W3C® Software License [1] 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. 
-
-[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
-*/
-
-
-
-   /**
-    *  Gets URI that identifies the test.
-    *  @return uri identifier of test
-    */
-function getTargetURI() {
-      return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrclonenode1";
-   }
-
-var docsLoaded = -1000000;
-var builder = null;
-
-//
-//   This function is called by the testing framework before
-//      running the test suite.
-//
-//   If there are no configuration exceptions, asynchronous
-//        document loading is started.  Otherwise, the status
-//        is set to complete and the exception is immediately
-//        raised when entering the body of the test.
-//
-function setUpPage() {
-   setUpPageStatus = 'running';
-   try {
-     //
-     //   creates test document builder, may throw exception
-     //
-     builder = createConfiguredBuilder();
-
-      docsLoaded = 0;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      docsLoaded += preload(docRef, "doc", "hc_staff");
-        
-       if (docsLoaded == 1) {
-          setUpPageStatus = 'complete';
-       }
-    } catch(ex) {
-       catchInitializationError(builder, ex);
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-
-//
-//   This method is called on the completion of 
-//      each asychronous load started in setUpTests.
-//
-//   When every synchronous loaded document has completed,
-//      the page status is changed which allows the
-//      body of the test to be executed.
-function loadComplete() {
-    if (++docsLoaded == 1) {
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-/**
-* 
-Appends a text node to an attribute and clones the node.
-
-* @author Curt Arnold
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-3A0ED0A4
-*/
-function hc_attrclonenode1() {
-   var success;
-    if(checkInitialization(builder, "hc_attrclonenode1") != null) return;
-    var doc;
-      var acronymList;
-      var testNode;
-      var attributes;
-      var titleAttr;
-      var value;
-      var textNode;
-      var retval;
-      var lastChild;
-      var clonedTitle;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      doc = load(docRef, "doc", "hc_staff");
-      acronymList = doc.getElementsByTagName("acronym");
-      testNode = acronymList.item(3);
-      attributes = testNode.attributes;
-
-      titleAttr = attributes.getNamedItem("title");
-      textNode = doc.createTextNode("terday");
-      retval = titleAttr.appendChild(textNode);
-      clonedTitle = titleAttr.cloneNode(false);
-      textNode.nodeValue = "text_node_not_cloned";
-
-      value = clonedTitle.value;
-
-      assertEquals("attrValue","Yesterday",value);
-       value = clonedTitle.nodeValue;
-
-      assertEquals("attrNodeValue","Yesterday",value);
-       lastChild = clonedTitle.lastChild;
-
-      value = lastChild.nodeValue;
-
-      assertEquals("lastChildValue","terday",value);
-       
-}
-
-
-
-
-function runTest() {
-   hc_attrclonenode1();
-}
diff --git a/LayoutTests/dom/html/level1/core/hc_attrfirstchild-expected.txt b/LayoutTests/dom/html/level1/core/hc_attrfirstchild-expected.txt
deleted file mode 100644 (file)
index a08ebfe..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-Test:  http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrfirstchild
-Status:        Success
diff --git a/LayoutTests/dom/html/level1/core/hc_attrfirstchild.html b/LayoutTests/dom/html/level1/core/hc_attrfirstchild.html
deleted file mode 100644 (file)
index 834b534..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" 
-    "http://www.w3.org/TR/html4/strict.dtd" >
-<!-- This is comment number 1.-->
-<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>hc_staff</title><script type="text/javascript" src="selfhtml.js"></script><script charset="UTF-8" type="text/javascript" src="hc_attrfirstchild.js"></script><script type='text/javascript'>function loadComplete() { startTest(); }</script></head><body onload="loadComplete()">
- <p>
-  <em>EMP0001</em>
-  <strong>Margaret Martin</strong>
-  <code>Accountant</code>           
-  <sup>56,000</sup>
-  <var>Female</var>
-  <acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym>
- </p>
- <p>
-  <em>EMP0002</em>
-  <strong>Martha RaynoldsThis is a CDATASection with EntityReference number 2 &amp;ent2;
-This is an adjacent CDATASection with a reference to a tab &amp;tab;</strong>
-  <code>Secretary</code>
-  <sup>35,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Yes">&beta; Dallas, &gamma;
- 98554</acronym>
- </p>
- <p>
-  <em>EMP0003</em>
-  <strong>Roger
- Jones</strong>
-  <code>Department Manager</code>
-  <sup>100,000</sup>
-  <var>&delta;</var>
-  <acronym title="Yes" class="No">PO Box 27 Irving, texas 98553</acronym>
- </p>
- <p>
-  <em>EMP0004</em>
-  <strong>Jeny Oconnor</strong>
-  <code>Personnel Director</code>
-  <sup>95,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Y&alpha;">27 South Road. Dallas, Texas 98556</acronym>
- </p>
- <p>
-  <em>EMP0005</em>
-  <strong>Robert Myers</strong>
-  <code>Computer Specialist</code>
-  <sup>90,000</sup>
-  <var>male</var>
-  <acronym title="Yes">1821 Nordic. Road, Irving Texas 98558</acronym>
- </p>
-</body></html>
diff --git a/LayoutTests/dom/html/level1/core/hc_attrfirstchild.js b/LayoutTests/dom/html/level1/core/hc_attrfirstchild.js
deleted file mode 100644 (file)
index 68f8b52..0000000
+++ /dev/null
@@ -1,127 +0,0 @@
-
-/*
-Copyright Â© 2001-2004 World Wide Web Consortium, 
-(Massachusetts Institute of Technology, European Research Consortium 
-for Informatics and Mathematics, Keio University). All 
-Rights Reserved. This work is distributed under the W3C® Software License [1] 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. 
-
-[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
-*/
-
-
-
-   /**
-    *  Gets URI that identifies the test.
-    *  @return uri identifier of test
-    */
-function getTargetURI() {
-      return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrfirstchild";
-   }
-
-var docsLoaded = -1000000;
-var builder = null;
-
-//
-//   This function is called by the testing framework before
-//      running the test suite.
-//
-//   If there are no configuration exceptions, asynchronous
-//        document loading is started.  Otherwise, the status
-//        is set to complete and the exception is immediately
-//        raised when entering the body of the test.
-//
-function setUpPage() {
-   setUpPageStatus = 'running';
-   try {
-     //
-     //   creates test document builder, may throw exception
-     //
-     builder = createConfiguredBuilder();
-
-      docsLoaded = 0;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      docsLoaded += preload(docRef, "doc", "hc_staff");
-        
-       if (docsLoaded == 1) {
-          setUpPageStatus = 'complete';
-       }
-    } catch(ex) {
-       catchInitializationError(builder, ex);
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-
-//
-//   This method is called on the completion of 
-//      each asychronous load started in setUpTests.
-//
-//   When every synchronous loaded document has completed,
-//      the page status is changed which allows the
-//      body of the test to be executed.
-function loadComplete() {
-    if (++docsLoaded == 1) {
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-/**
-* 
-Checks that Node.firstChild for an attribute node contains
-the expected text node.
-
-* @author Curt Arnold
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-169727388
-*/
-function hc_attrfirstchild() {
-   var success;
-    if(checkInitialization(builder, "hc_attrfirstchild") != null) return;
-    var doc;
-      var acronymList;
-      var testNode;
-      var attributes;
-      var titleAttr;
-      var value;
-      var textNode;
-      var otherChild;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      doc = load(docRef, "doc", "hc_staff");
-      acronymList = doc.getElementsByTagName("acronym");
-      testNode = acronymList.item(3);
-      attributes = testNode.attributes;
-
-      titleAttr = attributes.getNamedItem("title");
-      textNode = titleAttr.firstChild;
-
-      assertNotNull("textNodeNotNull",textNode);
-value = textNode.nodeValue;
-
-      assertEquals("child1IsYes","Yes",value);
-       otherChild = textNode.nextSibling;
-
-      assertNull("nextSiblingIsNull",otherChild);
-    otherChild = textNode.previousSibling;
-
-      assertNull("previousSiblingIsNull",otherChild);
-    
-}
-
-
-
-
-function runTest() {
-   hc_attrfirstchild();
-}
diff --git a/LayoutTests/dom/html/level1/core/hc_attrhaschildnodes-expected.txt b/LayoutTests/dom/html/level1/core/hc_attrhaschildnodes-expected.txt
deleted file mode 100644 (file)
index fefcead..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-Test:  http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrhaschildnodes
-Status:        Success
diff --git a/LayoutTests/dom/html/level1/core/hc_attrhaschildnodes.html b/LayoutTests/dom/html/level1/core/hc_attrhaschildnodes.html
deleted file mode 100644 (file)
index db784cf..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" 
-    "http://www.w3.org/TR/html4/strict.dtd" >
-<!-- This is comment number 1.-->
-<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>hc_staff</title><script type="text/javascript" src="selfhtml.js"></script><script charset="UTF-8" type="text/javascript" src="hc_attrhaschildnodes.js"></script><script type='text/javascript'>function loadComplete() { startTest(); }</script></head><body onload="loadComplete()">
- <p>
-  <em>EMP0001</em>
-  <strong>Margaret Martin</strong>
-  <code>Accountant</code>           
-  <sup>56,000</sup>
-  <var>Female</var>
-  <acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym>
- </p>
- <p>
-  <em>EMP0002</em>
-  <strong>Martha RaynoldsThis is a CDATASection with EntityReference number 2 &amp;ent2;
-This is an adjacent CDATASection with a reference to a tab &amp;tab;</strong>
-  <code>Secretary</code>
-  <sup>35,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Yes">&beta; Dallas, &gamma;
- 98554</acronym>
- </p>
- <p>
-  <em>EMP0003</em>
-  <strong>Roger
- Jones</strong>
-  <code>Department Manager</code>
-  <sup>100,000</sup>
-  <var>&delta;</var>
-  <acronym title="Yes" class="No">PO Box 27 Irving, texas 98553</acronym>
- </p>
- <p>
-  <em>EMP0004</em>
-  <strong>Jeny Oconnor</strong>
-  <code>Personnel Director</code>
-  <sup>95,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Y&alpha;">27 South Road. Dallas, Texas 98556</acronym>
- </p>
- <p>
-  <em>EMP0005</em>
-  <strong>Robert Myers</strong>
-  <code>Computer Specialist</code>
-  <sup>90,000</sup>
-  <var>male</var>
-  <acronym title="Yes">1821 Nordic. Road, Irving Texas 98558</acronym>
- </p>
-</body></html>
diff --git a/LayoutTests/dom/html/level1/core/hc_attrhaschildnodes.js b/LayoutTests/dom/html/level1/core/hc_attrhaschildnodes.js
deleted file mode 100644 (file)
index 71487c3..0000000
+++ /dev/null
@@ -1,114 +0,0 @@
-
-/*
-Copyright Â© 2001-2004 World Wide Web Consortium, 
-(Massachusetts Institute of Technology, European Research Consortium 
-for Informatics and Mathematics, Keio University). All 
-Rights Reserved. This work is distributed under the W3C® Software License [1] 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. 
-
-[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
-*/
-
-
-
-   /**
-    *  Gets URI that identifies the test.
-    *  @return uri identifier of test
-    */
-function getTargetURI() {
-      return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrhaschildnodes";
-   }
-
-var docsLoaded = -1000000;
-var builder = null;
-
-//
-//   This function is called by the testing framework before
-//      running the test suite.
-//
-//   If there are no configuration exceptions, asynchronous
-//        document loading is started.  Otherwise, the status
-//        is set to complete and the exception is immediately
-//        raised when entering the body of the test.
-//
-function setUpPage() {
-   setUpPageStatus = 'running';
-   try {
-     //
-     //   creates test document builder, may throw exception
-     //
-     builder = createConfiguredBuilder();
-
-      docsLoaded = 0;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      docsLoaded += preload(docRef, "doc", "hc_staff");
-        
-       if (docsLoaded == 1) {
-          setUpPageStatus = 'complete';
-       }
-    } catch(ex) {
-       catchInitializationError(builder, ex);
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-
-//
-//   This method is called on the completion of 
-//      each asychronous load started in setUpTests.
-//
-//   When every synchronous loaded document has completed,
-//      the page status is changed which allows the
-//      body of the test to be executed.
-function loadComplete() {
-    if (++docsLoaded == 1) {
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-/**
-* 
-Checks that Node.hasChildNodes() is true for an attribute with content.
-
-* @author Curt Arnold
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-810594187
-*/
-function hc_attrhaschildnodes() {
-   var success;
-    if(checkInitialization(builder, "hc_attrhaschildnodes") != null) return;
-    var doc;
-      var acronymList;
-      var testNode;
-      var attributes;
-      var titleAttr;
-      var hasChildNodes;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      doc = load(docRef, "doc", "hc_staff");
-      acronymList = doc.getElementsByTagName("acronym");
-      testNode = acronymList.item(3);
-      attributes = testNode.attributes;
-
-      titleAttr = attributes.getNamedItem("title");
-      hasChildNodes = titleAttr.hasChildNodes();
-      assertTrue("hasChildrenIsTrue",hasChildNodes);
-
-}
-
-
-
-
-function runTest() {
-   hc_attrhaschildnodes();
-}
diff --git a/LayoutTests/dom/html/level1/core/hc_attrinsertbefore1-expected.txt b/LayoutTests/dom/html/level1/core/hc_attrinsertbefore1-expected.txt
deleted file mode 100644 (file)
index 631492a..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-Test:  http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrinsertbefore1
-Status:        Success
diff --git a/LayoutTests/dom/html/level1/core/hc_attrinsertbefore1.html b/LayoutTests/dom/html/level1/core/hc_attrinsertbefore1.html
deleted file mode 100644 (file)
index 99d7ae9..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" 
-    "http://www.w3.org/TR/html4/strict.dtd" >
-<!-- This is comment number 1.-->
-<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>hc_staff</title><script type="text/javascript" src="selfhtml.js"></script><script charset="UTF-8" type="text/javascript" src="hc_attrinsertbefore1.js"></script><script type='text/javascript'>function loadComplete() { startTest(); }</script></head><body onload="loadComplete()">
- <p>
-  <em>EMP0001</em>
-  <strong>Margaret Martin</strong>
-  <code>Accountant</code>           
-  <sup>56,000</sup>
-  <var>Female</var>
-  <acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym>
- </p>
- <p>
-  <em>EMP0002</em>
-  <strong>Martha RaynoldsThis is a CDATASection with EntityReference number 2 &amp;ent2;
-This is an adjacent CDATASection with a reference to a tab &amp;tab;</strong>
-  <code>Secretary</code>
-  <sup>35,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Yes">&beta; Dallas, &gamma;
- 98554</acronym>
- </p>
- <p>
-  <em>EMP0003</em>
-  <strong>Roger
- Jones</strong>
-  <code>Department Manager</code>
-  <sup>100,000</sup>
-  <var>&delta;</var>
-  <acronym title="Yes" class="No">PO Box 27 Irving, texas 98553</acronym>
- </p>
- <p>
-  <em>EMP0004</em>
-  <strong>Jeny Oconnor</strong>
-  <code>Personnel Director</code>
-  <sup>95,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Y&alpha;">27 South Road. Dallas, Texas 98556</acronym>
- </p>
- <p>
-  <em>EMP0005</em>
-  <strong>Robert Myers</strong>
-  <code>Computer Specialist</code>
-  <sup>90,000</sup>
-  <var>male</var>
-  <acronym title="Yes">1821 Nordic. Road, Irving Texas 98558</acronym>
- </p>
-</body></html>
diff --git a/LayoutTests/dom/html/level1/core/hc_attrinsertbefore1.js b/LayoutTests/dom/html/level1/core/hc_attrinsertbefore1.js
deleted file mode 100644 (file)
index 89aa99e..0000000
+++ /dev/null
@@ -1,140 +0,0 @@
-
-/*
-Copyright Â© 2001-2004 World Wide Web Consortium, 
-(Massachusetts Institute of Technology, European Research Consortium 
-for Informatics and Mathematics, Keio University). All 
-Rights Reserved. This work is distributed under the W3C® Software License [1] 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. 
-
-[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
-*/
-
-
-
-   /**
-    *  Gets URI that identifies the test.
-    *  @return uri identifier of test
-    */
-function getTargetURI() {
-      return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrinsertbefore1";
-   }
-
-var docsLoaded = -1000000;
-var builder = null;
-
-//
-//   This function is called by the testing framework before
-//      running the test suite.
-//
-//   If there are no configuration exceptions, asynchronous
-//        document loading is started.  Otherwise, the status
-//        is set to complete and the exception is immediately
-//        raised when entering the body of the test.
-//
-function setUpPage() {
-   setUpPageStatus = 'running';
-   try {
-     //
-     //   creates test document builder, may throw exception
-     //
-     builder = createConfiguredBuilder();
-
-      docsLoaded = 0;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      docsLoaded += preload(docRef, "doc", "hc_staff");
-        
-       if (docsLoaded == 1) {
-          setUpPageStatus = 'complete';
-       }
-    } catch(ex) {
-       catchInitializationError(builder, ex);
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-
-//
-//   This method is called on the completion of 
-//      each asychronous load started in setUpTests.
-//
-//   When every synchronous loaded document has completed,
-//      the page status is changed which allows the
-//      body of the test to be executed.
-function loadComplete() {
-    if (++docsLoaded == 1) {
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-/**
-* 
-Appends a text node to an attribute and checks if the value of
-the attribute is changed.
-
-* @author Curt Arnold
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-952280727
-*/
-function hc_attrinsertbefore1() {
-   var success;
-    if(checkInitialization(builder, "hc_attrinsertbefore1") != null) return;
-    var doc;
-      var acronymList;
-      var testNode;
-      var attributes;
-      var titleAttr;
-      var value;
-      var textNode;
-      var retval;
-      var firstChild;
-      var lastChild;
-      var refChild = null;
-
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      doc = load(docRef, "doc", "hc_staff");
-      acronymList = doc.getElementsByTagName("acronym");
-      testNode = acronymList.item(3);
-      attributes = testNode.attributes;
-
-      titleAttr = attributes.getNamedItem("title");
-      textNode = doc.createTextNode("terday");
-      retval = titleAttr.insertBefore(textNode,refChild);
-      value = titleAttr.value;
-
-      assertEquals("attrValue","Yesterday",value);
-       value = titleAttr.nodeValue;
-
-      assertEquals("attrNodeValue","Yesterday",value);
-       value = retval.nodeValue;
-
-      assertEquals("retvalValue","terday",value);
-       firstChild = titleAttr.firstChild;
-
-      value = firstChild.nodeValue;
-
-      assertEquals("firstChildValue","Yes",value);
-       lastChild = titleAttr.lastChild;
-
-      value = lastChild.nodeValue;
-
-      assertEquals("lastChildValue","terday",value);
-       
-}
-
-
-
-
-function runTest() {
-   hc_attrinsertbefore1();
-}
diff --git a/LayoutTests/dom/html/level1/core/hc_attrinsertbefore2-expected.txt b/LayoutTests/dom/html/level1/core/hc_attrinsertbefore2-expected.txt
deleted file mode 100644 (file)
index b2f67e1..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-Test:  http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrinsertbefore2
-Status:        Success
diff --git a/LayoutTests/dom/html/level1/core/hc_attrinsertbefore2.html b/LayoutTests/dom/html/level1/core/hc_attrinsertbefore2.html
deleted file mode 100644 (file)
index 77fff79..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" 
-    "http://www.w3.org/TR/html4/strict.dtd" >
-<!-- This is comment number 1.-->
-<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>hc_staff</title><script type="text/javascript" src="selfhtml.js"></script><script charset="UTF-8" type="text/javascript" src="hc_attrinsertbefore2.js"></script><script type='text/javascript'>function loadComplete() { startTest(); }</script></head><body onload="loadComplete()">
- <p>
-  <em>EMP0001</em>
-  <strong>Margaret Martin</strong>
-  <code>Accountant</code>           
-  <sup>56,000</sup>
-  <var>Female</var>
-  <acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym>
- </p>
- <p>
-  <em>EMP0002</em>
-  <strong>Martha RaynoldsThis is a CDATASection with EntityReference number 2 &amp;ent2;
-This is an adjacent CDATASection with a reference to a tab &amp;tab;</strong>
-  <code>Secretary</code>
-  <sup>35,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Yes">&beta; Dallas, &gamma;
- 98554</acronym>
- </p>
- <p>
-  <em>EMP0003</em>
-  <strong>Roger
- Jones</strong>
-  <code>Department Manager</code>
-  <sup>100,000</sup>
-  <var>&delta;</var>
-  <acronym title="Yes" class="No">PO Box 27 Irving, texas 98553</acronym>
- </p>
- <p>
-  <em>EMP0004</em>
-  <strong>Jeny Oconnor</strong>
-  <code>Personnel Director</code>
-  <sup>95,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Y&alpha;">27 South Road. Dallas, Texas 98556</acronym>
- </p>
- <p>
-  <em>EMP0005</em>
-  <strong>Robert Myers</strong>
-  <code>Computer Specialist</code>
-  <sup>90,000</sup>
-  <var>male</var>
-  <acronym title="Yes">1821 Nordic. Road, Irving Texas 98558</acronym>
- </p>
-</body></html>
diff --git a/LayoutTests/dom/html/level1/core/hc_attrinsertbefore2.js b/LayoutTests/dom/html/level1/core/hc_attrinsertbefore2.js
deleted file mode 100644 (file)
index cc4f50e..0000000
+++ /dev/null
@@ -1,141 +0,0 @@
-
-/*
-Copyright Â© 2001-2004 World Wide Web Consortium, 
-(Massachusetts Institute of Technology, European Research Consortium 
-for Informatics and Mathematics, Keio University). All 
-Rights Reserved. This work is distributed under the W3C® Software License [1] 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. 
-
-[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
-*/
-
-
-
-   /**
-    *  Gets URI that identifies the test.
-    *  @return uri identifier of test
-    */
-function getTargetURI() {
-      return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrinsertbefore2";
-   }
-
-var docsLoaded = -1000000;
-var builder = null;
-
-//
-//   This function is called by the testing framework before
-//      running the test suite.
-//
-//   If there are no configuration exceptions, asynchronous
-//        document loading is started.  Otherwise, the status
-//        is set to complete and the exception is immediately
-//        raised when entering the body of the test.
-//
-function setUpPage() {
-   setUpPageStatus = 'running';
-   try {
-     //
-     //   creates test document builder, may throw exception
-     //
-     builder = createConfiguredBuilder();
-
-      docsLoaded = 0;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      docsLoaded += preload(docRef, "doc", "hc_staff");
-        
-       if (docsLoaded == 1) {
-          setUpPageStatus = 'complete';
-       }
-    } catch(ex) {
-       catchInitializationError(builder, ex);
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-
-//
-//   This method is called on the completion of 
-//      each asychronous load started in setUpTests.
-//
-//   When every synchronous loaded document has completed,
-//      the page status is changed which allows the
-//      body of the test to be executed.
-function loadComplete() {
-    if (++docsLoaded == 1) {
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-/**
-* 
-Prepends a text node to an attribute and checks if the value of
-the attribute is changed.
-
-* @author Curt Arnold
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-952280727
-*/
-function hc_attrinsertbefore2() {
-   var success;
-    if(checkInitialization(builder, "hc_attrinsertbefore2") != null) return;
-    var doc;
-      var acronymList;
-      var testNode;
-      var attributes;
-      var titleAttr;
-      var value;
-      var textNode;
-      var retval;
-      var lastChild;
-      var firstChild;
-      var refChild;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      doc = load(docRef, "doc", "hc_staff");
-      acronymList = doc.getElementsByTagName("acronym");
-      testNode = acronymList.item(3);
-      attributes = testNode.attributes;
-
-      titleAttr = attributes.getNamedItem("title");
-      textNode = doc.createTextNode("terday");
-      refChild = titleAttr.firstChild;
-
-      retval = titleAttr.insertBefore(textNode,refChild);
-      value = titleAttr.value;
-
-      assertEquals("attrValue","terdayYes",value);
-       value = titleAttr.nodeValue;
-
-      assertEquals("attrNodeValue","terdayYes",value);
-       value = retval.nodeValue;
-
-      assertEquals("retvalValue","terday",value);
-       firstChild = titleAttr.firstChild;
-
-      value = firstChild.nodeValue;
-
-      assertEquals("firstChildValue","terday",value);
-       lastChild = titleAttr.lastChild;
-
-      value = lastChild.nodeValue;
-
-      assertEquals("lastChildValue","Yes",value);
-       
-}
-
-
-
-
-function runTest() {
-   hc_attrinsertbefore2();
-}
diff --git a/LayoutTests/dom/html/level1/core/hc_attrinsertbefore3-expected.txt b/LayoutTests/dom/html/level1/core/hc_attrinsertbefore3-expected.txt
deleted file mode 100644 (file)
index ccdb3e3..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-Test:  http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrinsertbefore3
-Status:        Success
diff --git a/LayoutTests/dom/html/level1/core/hc_attrinsertbefore3.html b/LayoutTests/dom/html/level1/core/hc_attrinsertbefore3.html
deleted file mode 100644 (file)
index 9870d48..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" 
-    "http://www.w3.org/TR/html4/strict.dtd" >
-<!-- This is comment number 1.-->
-<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>hc_staff</title><script type="text/javascript" src="selfhtml.js"></script><script charset="UTF-8" type="text/javascript" src="hc_attrinsertbefore3.js"></script><script type='text/javascript'>function loadComplete() { startTest(); }</script></head><body onload="loadComplete()">
- <p>
-  <em>EMP0001</em>
-  <strong>Margaret Martin</strong>
-  <code>Accountant</code>           
-  <sup>56,000</sup>
-  <var>Female</var>
-  <acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym>
- </p>
- <p>
-  <em>EMP0002</em>
-  <strong>Martha RaynoldsThis is a CDATASection with EntityReference number 2 &amp;ent2;
-This is an adjacent CDATASection with a reference to a tab &amp;tab;</strong>
-  <code>Secretary</code>
-  <sup>35,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Yes">&beta; Dallas, &gamma;
- 98554</acronym>
- </p>
- <p>
-  <em>EMP0003</em>
-  <strong>Roger
- Jones</strong>
-  <code>Department Manager</code>
-  <sup>100,000</sup>
-  <var>&delta;</var>
-  <acronym title="Yes" class="No">PO Box 27 Irving, texas 98553</acronym>
- </p>
- <p>
-  <em>EMP0004</em>
-  <strong>Jeny Oconnor</strong>
-  <code>Personnel Director</code>
-  <sup>95,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Y&alpha;">27 South Road. Dallas, Texas 98556</acronym>
- </p>
- <p>
-  <em>EMP0005</em>
-  <strong>Robert Myers</strong>
-  <code>Computer Specialist</code>
-  <sup>90,000</sup>
-  <var>male</var>
-  <acronym title="Yes">1821 Nordic. Road, Irving Texas 98558</acronym>
- </p>
-</body></html>
diff --git a/LayoutTests/dom/html/level1/core/hc_attrinsertbefore3.js b/LayoutTests/dom/html/level1/core/hc_attrinsertbefore3.js
deleted file mode 100644 (file)
index 3cb24cd..0000000
+++ /dev/null
@@ -1,146 +0,0 @@
-
-/*
-Copyright Â© 2001-2004 World Wide Web Consortium, 
-(Massachusetts Institute of Technology, European Research Consortium 
-for Informatics and Mathematics, Keio University). All 
-Rights Reserved. This work is distributed under the W3C® Software License [1] 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. 
-
-[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
-*/
-
-
-
-   /**
-    *  Gets URI that identifies the test.
-    *  @return uri identifier of test
-    */
-function getTargetURI() {
-      return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrinsertbefore3";
-   }
-
-var docsLoaded = -1000000;
-var builder = null;
-
-//
-//   This function is called by the testing framework before
-//      running the test suite.
-//
-//   If there are no configuration exceptions, asynchronous
-//        document loading is started.  Otherwise, the status
-//        is set to complete and the exception is immediately
-//        raised when entering the body of the test.
-//
-function setUpPage() {
-   setUpPageStatus = 'running';
-   try {
-     //
-     //   creates test document builder, may throw exception
-     //
-     builder = createConfiguredBuilder();
-
-      docsLoaded = 0;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      docsLoaded += preload(docRef, "doc", "hc_staff");
-        
-       if (docsLoaded == 1) {
-          setUpPageStatus = 'complete';
-       }
-    } catch(ex) {
-       catchInitializationError(builder, ex);
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-
-//
-//   This method is called on the completion of 
-//      each asychronous load started in setUpTests.
-//
-//   When every synchronous loaded document has completed,
-//      the page status is changed which allows the
-//      body of the test to be executed.
-function loadComplete() {
-    if (++docsLoaded == 1) {
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-/**
-* 
-Appends a document fragment to an attribute and checks if the value of
-the attribute is changed.
-
-* @author Curt Arnold
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-952280727
-*/
-function hc_attrinsertbefore3() {
-   var success;
-    if(checkInitialization(builder, "hc_attrinsertbefore3") != null) return;
-    var doc;
-      var acronymList;
-      var testNode;
-      var attributes;
-      var titleAttr;
-      var value;
-      var terNode;
-      var dayNode;
-      var docFrag;
-      var retval;
-      var firstChild;
-      var lastChild;
-      var refChild = null;
-
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      doc = load(docRef, "doc", "hc_staff");
-      acronymList = doc.getElementsByTagName("acronym");
-      testNode = acronymList.item(3);
-      attributes = testNode.attributes;
-
-      titleAttr = attributes.getNamedItem("title");
-      terNode = doc.createTextNode("ter");
-      dayNode = doc.createTextNode("day");
-      docFrag = doc.createDocumentFragment();
-      retval = docFrag.appendChild(terNode);
-      retval = docFrag.appendChild(dayNode);
-      retval = titleAttr.insertBefore(docFrag,refChild);
-      value = titleAttr.value;
-
-      assertEquals("attrValue","Yesterday",value);
-       value = titleAttr.nodeValue;
-
-      assertEquals("attrNodeValue","Yesterday",value);
-       value = retval.nodeValue;
-
-      assertNull("retvalValue",value);
-    firstChild = titleAttr.firstChild;
-
-      value = firstChild.nodeValue;
-
-      assertEquals("firstChildValue","Yes",value);
-       lastChild = titleAttr.lastChild;
-
-      value = lastChild.nodeValue;
-
-      assertEquals("lastChildValue","day",value);
-       
-}
-
-
-
-
-function runTest() {
-   hc_attrinsertbefore3();
-}
diff --git a/LayoutTests/dom/html/level1/core/hc_attrinsertbefore4-expected.txt b/LayoutTests/dom/html/level1/core/hc_attrinsertbefore4-expected.txt
deleted file mode 100644 (file)
index 264d475..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-Test:  http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrinsertbefore4
-Status:        Success
diff --git a/LayoutTests/dom/html/level1/core/hc_attrinsertbefore4.html b/LayoutTests/dom/html/level1/core/hc_attrinsertbefore4.html
deleted file mode 100644 (file)
index 66a4ea8..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" 
-    "http://www.w3.org/TR/html4/strict.dtd" >
-<!-- This is comment number 1.-->
-<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>hc_staff</title><script type="text/javascript" src="selfhtml.js"></script><script charset="UTF-8" type="text/javascript" src="hc_attrinsertbefore4.js"></script><script type='text/javascript'>function loadComplete() { startTest(); }</script></head><body onload="loadComplete()">
- <p>
-  <em>EMP0001</em>
-  <strong>Margaret Martin</strong>
-  <code>Accountant</code>           
-  <sup>56,000</sup>
-  <var>Female</var>
-  <acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym>
- </p>
- <p>
-  <em>EMP0002</em>
-  <strong>Martha RaynoldsThis is a CDATASection with EntityReference number 2 &amp;ent2;
-This is an adjacent CDATASection with a reference to a tab &amp;tab;</strong>
-  <code>Secretary</code>
-  <sup>35,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Yes">&beta; Dallas, &gamma;
- 98554</acronym>
- </p>
- <p>
-  <em>EMP0003</em>
-  <strong>Roger
- Jones</strong>
-  <code>Department Manager</code>
-  <sup>100,000</sup>
-  <var>&delta;</var>
-  <acronym title="Yes" class="No">PO Box 27 Irving, texas 98553</acronym>
- </p>
- <p>
-  <em>EMP0004</em>
-  <strong>Jeny Oconnor</strong>
-  <code>Personnel Director</code>
-  <sup>95,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Y&alpha;">27 South Road. Dallas, Texas 98556</acronym>
- </p>
- <p>
-  <em>EMP0005</em>
-  <strong>Robert Myers</strong>
-  <code>Computer Specialist</code>
-  <sup>90,000</sup>
-  <var>male</var>
-  <acronym title="Yes">1821 Nordic. Road, Irving Texas 98558</acronym>
- </p>
-</body></html>
diff --git a/LayoutTests/dom/html/level1/core/hc_attrinsertbefore4.js b/LayoutTests/dom/html/level1/core/hc_attrinsertbefore4.js
deleted file mode 100644 (file)
index 700e61d..0000000
+++ /dev/null
@@ -1,147 +0,0 @@
-
-/*
-Copyright Â© 2001-2004 World Wide Web Consortium, 
-(Massachusetts Institute of Technology, European Research Consortium 
-for Informatics and Mathematics, Keio University). All 
-Rights Reserved. This work is distributed under the W3C® Software License [1] 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. 
-
-[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
-*/
-
-
-
-   /**
-    *  Gets URI that identifies the test.
-    *  @return uri identifier of test
-    */
-function getTargetURI() {
-      return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrinsertbefore4";
-   }
-
-var docsLoaded = -1000000;
-var builder = null;
-
-//
-//   This function is called by the testing framework before
-//      running the test suite.
-//
-//   If there are no configuration exceptions, asynchronous
-//        document loading is started.  Otherwise, the status
-//        is set to complete and the exception is immediately
-//        raised when entering the body of the test.
-//
-function setUpPage() {
-   setUpPageStatus = 'running';
-   try {
-     //
-     //   creates test document builder, may throw exception
-     //
-     builder = createConfiguredBuilder();
-
-      docsLoaded = 0;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      docsLoaded += preload(docRef, "doc", "hc_staff");
-        
-       if (docsLoaded == 1) {
-          setUpPageStatus = 'complete';
-       }
-    } catch(ex) {
-       catchInitializationError(builder, ex);
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-
-//
-//   This method is called on the completion of 
-//      each asychronous load started in setUpTests.
-//
-//   When every synchronous loaded document has completed,
-//      the page status is changed which allows the
-//      body of the test to be executed.
-function loadComplete() {
-    if (++docsLoaded == 1) {
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-/**
-* 
-Prepends a document fragment to an attribute and checks if the value of
-the attribute is changed.
-
-* @author Curt Arnold
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-952280727
-*/
-function hc_attrinsertbefore4() {
-   var success;
-    if(checkInitialization(builder, "hc_attrinsertbefore4") != null) return;
-    var doc;
-      var acronymList;
-      var testNode;
-      var attributes;
-      var titleAttr;
-      var value;
-      var terNode;
-      var dayNode;
-      var docFrag;
-      var retval;
-      var firstChild;
-      var lastChild;
-      var refChild;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      doc = load(docRef, "doc", "hc_staff");
-      acronymList = doc.getElementsByTagName("acronym");
-      testNode = acronymList.item(3);
-      attributes = testNode.attributes;
-
-      titleAttr = attributes.getNamedItem("title");
-      terNode = doc.createTextNode("ter");
-      dayNode = doc.createTextNode("day");
-      docFrag = doc.createDocumentFragment();
-      retval = docFrag.appendChild(terNode);
-      retval = docFrag.appendChild(dayNode);
-      refChild = titleAttr.firstChild;
-
-      retval = titleAttr.insertBefore(docFrag,refChild);
-      value = titleAttr.value;
-
-      assertEquals("attrValue","terdayYes",value);
-       value = titleAttr.nodeValue;
-
-      assertEquals("attrNodeValue","terdayYes",value);
-       value = retval.nodeValue;
-
-      assertNull("retvalValue",value);
-    firstChild = titleAttr.firstChild;
-
-      value = firstChild.nodeValue;
-
-      assertEquals("firstChildValue","ter",value);
-       lastChild = titleAttr.lastChild;
-
-      value = lastChild.nodeValue;
-
-      assertEquals("lastChildValue","Yes",value);
-       
-}
-
-
-
-
-function runTest() {
-   hc_attrinsertbefore4();
-}
diff --git a/LayoutTests/dom/html/level1/core/hc_attrinsertbefore5-expected.txt b/LayoutTests/dom/html/level1/core/hc_attrinsertbefore5-expected.txt
deleted file mode 100644 (file)
index 87b5b69..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-Test:  http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrinsertbefore5
-Status:        Success
diff --git a/LayoutTests/dom/html/level1/core/hc_attrinsertbefore5.html b/LayoutTests/dom/html/level1/core/hc_attrinsertbefore5.html
deleted file mode 100644 (file)
index 93a3e41..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" 
-    "http://www.w3.org/TR/html4/strict.dtd" >
-<!-- This is comment number 1.-->
-<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>hc_staff</title><script type="text/javascript" src="selfhtml.js"></script><script charset="UTF-8" type="text/javascript" src="hc_attrinsertbefore5.js"></script><script type='text/javascript'>function loadComplete() { startTest(); }</script></head><body onload="loadComplete()">
- <p>
-  <em>EMP0001</em>
-  <strong>Margaret Martin</strong>
-  <code>Accountant</code>           
-  <sup>56,000</sup>
-  <var>Female</var>
-  <acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym>
- </p>
- <p>
-  <em>EMP0002</em>
-  <strong>Martha RaynoldsThis is a CDATASection with EntityReference number 2 &amp;ent2;
-This is an adjacent CDATASection with a reference to a tab &amp;tab;</strong>
-  <code>Secretary</code>
-  <sup>35,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Yes">&beta; Dallas, &gamma;
- 98554</acronym>
- </p>
- <p>
-  <em>EMP0003</em>
-  <strong>Roger
- Jones</strong>
-  <code>Department Manager</code>
-  <sup>100,000</sup>
-  <var>&delta;</var>
-  <acronym title="Yes" class="No">PO Box 27 Irving, texas 98553</acronym>
- </p>
- <p>
-  <em>EMP0004</em>
-  <strong>Jeny Oconnor</strong>
-  <code>Personnel Director</code>
-  <sup>95,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Y&alpha;">27 South Road. Dallas, Texas 98556</acronym>
- </p>
- <p>
-  <em>EMP0005</em>
-  <strong>Robert Myers</strong>
-  <code>Computer Specialist</code>
-  <sup>90,000</sup>
-  <var>male</var>
-  <acronym title="Yes">1821 Nordic. Road, Irving Texas 98558</acronym>
- </p>
-</body></html>
diff --git a/LayoutTests/dom/html/level1/core/hc_attrinsertbefore5.js b/LayoutTests/dom/html/level1/core/hc_attrinsertbefore5.js
deleted file mode 100644 (file)
index a9737ed..0000000
+++ /dev/null
@@ -1,153 +0,0 @@
-
-/*
-Copyright Â© 2001-2004 World Wide Web Consortium, 
-(Massachusetts Institute of Technology, European Research Consortium 
-for Informatics and Mathematics, Keio University). All 
-Rights Reserved. This work is distributed under the W3C® Software License [1] 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. 
-
-[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
-*/
-
-
-
-   /**
-    *  Gets URI that identifies the test.
-    *  @return uri identifier of test
-    */
-function getTargetURI() {
-      return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrinsertbefore5";
-   }
-
-var docsLoaded = -1000000;
-var builder = null;
-
-//
-//   This function is called by the testing framework before
-//      running the test suite.
-//
-//   If there are no configuration exceptions, asynchronous
-//        document loading is started.  Otherwise, the status
-//        is set to complete and the exception is immediately
-//        raised when entering the body of the test.
-//
-function setUpPage() {
-   setUpPageStatus = 'running';
-   try {
-     //
-     //   creates test document builder, may throw exception
-     //
-     builder = createConfiguredBuilder();
-       checkFeature("XML", null);
-
-      docsLoaded = 0;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      docsLoaded += preload(docRef, "doc", "hc_staff");
-        
-       if (docsLoaded == 1) {
-          setUpPageStatus = 'complete';
-       }
-    } catch(ex) {
-       catchInitializationError(builder, ex);
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-
-//
-//   This method is called on the completion of 
-//      each asychronous load started in setUpTests.
-//
-//   When every synchronous loaded document has completed,
-//      the page status is changed which allows the
-//      body of the test to be executed.
-function loadComplete() {
-    if (++docsLoaded == 1) {
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-/**
-* 
-Attempt to append a CDATASection to an attribute which should result
-in a HIERARCHY_REQUEST_ERR.
-
-* @author Curt Arnold
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-952280727
-*/
-function hc_attrinsertbefore5() {
-   var success;
-    if(checkInitialization(builder, "hc_attrinsertbefore5") != null) return;
-    var doc;
-      var acronymList;
-      var testNode;
-      var attributes;
-      var titleAttr;
-      var value;
-      var textNode;
-      var retval;
-      var refChild = null;
-
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      doc = load(docRef, "doc", "hc_staff");
-      acronymList = doc.getElementsByTagName("acronym");
-      testNode = acronymList.item(3);
-      attributes = testNode.attributes;
-
-      titleAttr = attributes.getNamedItem("title");
-      
-       if(
-       
-       (builder.contentType == "text/html")
-
-       ) {
-       
-       {
-               success = false;
-               try {
-            textNode = doc.createCDATASection("terday");
-        }
-               catch(ex) {
-      success = (typeof(ex.code) != 'undefined' && ex.code == 9);
-               }
-               assertTrue("throw_NOT_SUPPORTED_ERR",success);
-       }
-
-       }
-       
-               else {
-                       textNode = doc.createCDATASection("terday");
-      
-       {
-               success = false;
-               try {
-            retval = titleAttr.insertBefore(textNode,refChild);
-        }
-               catch(ex) {
-      success = (typeof(ex.code) != 'undefined' && ex.code == 3);
-               }
-               assertTrue("throw_HIERARCHY_REQUEST_ERR",success);
-       }
-
-               }
-       
-}
-
-
-
-
-function runTest() {
-   hc_attrinsertbefore5();
-}
diff --git a/LayoutTests/dom/html/level1/core/hc_attrinsertbefore6-expected.txt b/LayoutTests/dom/html/level1/core/hc_attrinsertbefore6-expected.txt
deleted file mode 100644 (file)
index ee3fbfc..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-Test:  http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrinsertbefore6  
-Status:        failure
-Detail:        throw_WRONG_DOCUMENT_ERR: assertTrue failed
diff --git a/LayoutTests/dom/html/level1/core/hc_attrinsertbefore6.html b/LayoutTests/dom/html/level1/core/hc_attrinsertbefore6.html
deleted file mode 100644 (file)
index e68639d..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" 
-    "http://www.w3.org/TR/html4/strict.dtd" >
-<!-- This is comment number 1.-->
-<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>hc_staff</title><script type="text/javascript" src="selfhtml.js"></script><script charset="UTF-8" type="text/javascript" src="hc_attrinsertbefore6.js"></script><script type='text/javascript'>function loadComplete() { startTest(); }</script></head><body onload="loadComplete()">
- <p>
-  <em>EMP0001</em>
-  <strong>Margaret Martin</strong>
-  <code>Accountant</code>           
-  <sup>56,000</sup>
-  <var>Female</var>
-  <acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym>
- </p>
- <p>
-  <em>EMP0002</em>
-  <strong>Martha RaynoldsThis is a CDATASection with EntityReference number 2 &amp;ent2;
-This is an adjacent CDATASection with a reference to a tab &amp;tab;</strong>
-  <code>Secretary</code>
-  <sup>35,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Yes">&beta; Dallas, &gamma;
- 98554</acronym>
- </p>
- <p>
-  <em>EMP0003</em>
-  <strong>Roger
- Jones</strong>
-  <code>Department Manager</code>
-  <sup>100,000</sup>
-  <var>&delta;</var>
-  <acronym title="Yes" class="No">PO Box 27 Irving, texas 98553</acronym>
- </p>
- <p>
-  <em>EMP0004</em>
-  <strong>Jeny Oconnor</strong>
-  <code>Personnel Director</code>
-  <sup>95,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Y&alpha;">27 South Road. Dallas, Texas 98556</acronym>
- </p>
- <p>
-  <em>EMP0005</em>
-  <strong>Robert Myers</strong>
-  <code>Computer Specialist</code>
-  <sup>90,000</sup>
-  <var>male</var>
-  <acronym title="Yes">1821 Nordic. Road, Irving Texas 98558</acronym>
- </p>
-</body></html>
diff --git a/LayoutTests/dom/html/level1/core/hc_attrinsertbefore6.js b/LayoutTests/dom/html/level1/core/hc_attrinsertbefore6.js
deleted file mode 100644 (file)
index dc04f62..0000000
+++ /dev/null
@@ -1,142 +0,0 @@
-
-/*
-Copyright Â© 2001-2004 World Wide Web Consortium, 
-(Massachusetts Institute of Technology, European Research Consortium 
-for Informatics and Mathematics, Keio University). All 
-Rights Reserved. This work is distributed under the W3C® Software License [1] 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. 
-
-[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
-*/
-
-
-
-   /**
-    *  Gets URI that identifies the test.
-    *  @return uri identifier of test
-    */
-function getTargetURI() {
-      return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrinsertbefore6";
-   }
-
-var docsLoaded = -1000000;
-var builder = null;
-
-//
-//   This function is called by the testing framework before
-//      running the test suite.
-//
-//   If there are no configuration exceptions, asynchronous
-//        document loading is started.  Otherwise, the status
-//        is set to complete and the exception is immediately
-//        raised when entering the body of the test.
-//
-function setUpPage() {
-   setUpPageStatus = 'running';
-   try {
-     //
-     //   creates test document builder, may throw exception
-     //
-     builder = createConfiguredBuilder();
-
-      docsLoaded = 0;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      docsLoaded += preload(docRef, "doc", "hc_staff");
-        
-      var otherDocRef = null;
-      if (typeof(this.otherDoc) != 'undefined') {
-        otherDocRef = this.otherDoc;
-      }
-      docsLoaded += preload(otherDocRef, "otherDoc", "hc_staff");
-        
-       if (docsLoaded == 2) {
-          setUpPageStatus = 'complete';
-       }
-    } catch(ex) {
-       catchInitializationError(builder, ex);
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-
-//
-//   This method is called on the completion of 
-//      each asychronous load started in setUpTests.
-//
-//   When every synchronous loaded document has completed,
-//      the page status is changed which allows the
-//      body of the test to be executed.
-function loadComplete() {
-    if (++docsLoaded == 2) {
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-/**
-* 
-Attempt to append a text node from another document to an attribute which should result
-in a WRONG_DOCUMENT_ERR.
-
-* @author Curt Arnold
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-952280727
-*/
-function hc_attrinsertbefore6() {
-   var success;
-    if(checkInitialization(builder, "hc_attrinsertbefore6") != null) return;
-    var doc;
-      var acronymList;
-      var testNode;
-      var attributes;
-      var titleAttr;
-      var value;
-      var textNode;
-      var retval;
-      var refChild = null;
-
-      var otherDoc;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      doc = load(docRef, "doc", "hc_staff");
-      
-      var otherDocRef = null;
-      if (typeof(this.otherDoc) != 'undefined') {
-        otherDocRef = this.otherDoc;
-      }
-      otherDoc = load(otherDocRef, "otherDoc", "hc_staff");
-      acronymList = doc.getElementsByTagName("acronym");
-      testNode = acronymList.item(3);
-      attributes = testNode.attributes;
-
-      titleAttr = attributes.getNamedItem("title");
-      textNode = otherDoc.createTextNode("terday");
-      
-       {
-               success = false;
-               try {
-            retval = titleAttr.insertBefore(textNode,refChild);
-        }
-               catch(ex) {
-      success = (typeof(ex.code) != 'undefined' && ex.code == 4);
-               }
-               assertTrue("throw_WRONG_DOCUMENT_ERR",success);
-       }
-
-}
-
-
-
-
-function runTest() {
-   hc_attrinsertbefore6();
-}
diff --git a/LayoutTests/dom/html/level1/core/hc_attrinsertbefore7-expected.txt b/LayoutTests/dom/html/level1/core/hc_attrinsertbefore7-expected.txt
deleted file mode 100644 (file)
index 880ed5c..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-Test:  http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrinsertbefore7
-Status:        Success
diff --git a/LayoutTests/dom/html/level1/core/hc_attrinsertbefore7.html b/LayoutTests/dom/html/level1/core/hc_attrinsertbefore7.html
deleted file mode 100644 (file)
index 5304a3f..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" 
-    "http://www.w3.org/TR/html4/strict.dtd" >
-<!-- This is comment number 1.-->
-<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>hc_staff</title><script type="text/javascript" src="selfhtml.js"></script><script charset="UTF-8" type="text/javascript" src="hc_attrinsertbefore7.js"></script><script type='text/javascript'>function loadComplete() { startTest(); }</script></head><body onload="loadComplete()">
- <p>
-  <em>EMP0001</em>
-  <strong>Margaret Martin</strong>
-  <code>Accountant</code>           
-  <sup>56,000</sup>
-  <var>Female</var>
-  <acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym>
- </p>
- <p>
-  <em>EMP0002</em>
-  <strong>Martha RaynoldsThis is a CDATASection with EntityReference number 2 &amp;ent2;
-This is an adjacent CDATASection with a reference to a tab &amp;tab;</strong>
-  <code>Secretary</code>
-  <sup>35,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Yes">&beta; Dallas, &gamma;
- 98554</acronym>
- </p>
- <p>
-  <em>EMP0003</em>
-  <strong>Roger
- Jones</strong>
-  <code>Department Manager</code>
-  <sup>100,000</sup>
-  <var>&delta;</var>
-  <acronym title="Yes" class="No">PO Box 27 Irving, texas 98553</acronym>
- </p>
- <p>
-  <em>EMP0004</em>
-  <strong>Jeny Oconnor</strong>
-  <code>Personnel Director</code>
-  <sup>95,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Y&alpha;">27 South Road. Dallas, Texas 98556</acronym>
- </p>
- <p>
-  <em>EMP0005</em>
-  <strong>Robert Myers</strong>
-  <code>Computer Specialist</code>
-  <sup>90,000</sup>
-  <var>male</var>
-  <acronym title="Yes">1821 Nordic. Road, Irving Texas 98558</acronym>
- </p>
-</body></html>
diff --git a/LayoutTests/dom/html/level1/core/hc_attrinsertbefore7.js b/LayoutTests/dom/html/level1/core/hc_attrinsertbefore7.js
deleted file mode 100644 (file)
index f014502..0000000
+++ /dev/null
@@ -1,160 +0,0 @@
-
-/*
-Copyright Â© 2001-2004 World Wide Web Consortium, 
-(Massachusetts Institute of Technology, European Research Consortium 
-for Informatics and Mathematics, Keio University). All 
-Rights Reserved. This work is distributed under the W3C® Software License [1] 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. 
-
-[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
-*/
-
-
-
-   /**
-    *  Gets URI that identifies the test.
-    *  @return uri identifier of test
-    */
-function getTargetURI() {
-      return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrinsertbefore7";
-   }
-
-var docsLoaded = -1000000;
-var builder = null;
-
-//
-//   This function is called by the testing framework before
-//      running the test suite.
-//
-//   If there are no configuration exceptions, asynchronous
-//        document loading is started.  Otherwise, the status
-//        is set to complete and the exception is immediately
-//        raised when entering the body of the test.
-//
-function setUpPage() {
-   setUpPageStatus = 'running';
-   try {
-     //
-     //   creates test document builder, may throw exception
-     //
-     builder = createConfiguredBuilder();
-       checkFeature("XML", null);
-
-      docsLoaded = 0;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      docsLoaded += preload(docRef, "doc", "hc_staff");
-        
-       if (docsLoaded == 1) {
-          setUpPageStatus = 'complete';
-       }
-    } catch(ex) {
-       catchInitializationError(builder, ex);
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-
-//
-//   This method is called on the completion of 
-//      each asychronous load started in setUpTests.
-//
-//   When every synchronous loaded document has completed,
-//      the page status is changed which allows the
-//      body of the test to be executed.
-function loadComplete() {
-    if (++docsLoaded == 1) {
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-/**
-* 
-Appends a document fragment containing a CDATASection to an attribute.
-
-* @author Curt Arnold
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-952280727
-*/
-function hc_attrinsertbefore7() {
-   var success;
-    if(checkInitialization(builder, "hc_attrinsertbefore7") != null) return;
-    var doc;
-      var acronymList;
-      var testNode;
-      var attributes;
-      var titleAttr;
-      var value;
-      var terNode;
-      var dayNode;
-      var docFrag;
-      var retval;
-      var firstChild;
-      var lastChild;
-      var refChild = null;
-
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      doc = load(docRef, "doc", "hc_staff");
-      acronymList = doc.getElementsByTagName("acronym");
-      testNode = acronymList.item(3);
-      attributes = testNode.attributes;
-
-      titleAttr = attributes.getNamedItem("title");
-      terNode = doc.createTextNode("ter");
-      
-       if(
-       
-       (builder.contentType == "text/html")
-
-       ) {
-       
-       {
-               success = false;
-               try {
-            dayNode = doc.createCDATASection("day");
-        }
-               catch(ex) {
-      success = (typeof(ex.code) != 'undefined' && ex.code == 9);
-               }
-               assertTrue("throw_NOT_SUPPORTED_ERR",success);
-       }
-
-       }
-       
-               else {
-                       dayNode = doc.createCDATASection("day");
-      docFrag = doc.createDocumentFragment();
-      retval = docFrag.appendChild(terNode);
-      retval = docFrag.appendChild(dayNode);
-      
-       {
-               success = false;
-               try {
-            retval = titleAttr.insertBefore(docFrag,refChild);
-        }
-               catch(ex) {
-      success = (typeof(ex.code) != 'undefined' && ex.code == 3);
-               }
-               assertTrue("throw_HIERARCHY_REQUEST_ERR",success);
-       }
-
-               }
-       
-}
-
-
-
-
-function runTest() {
-   hc_attrinsertbefore7();
-}
diff --git a/LayoutTests/dom/html/level1/core/hc_attrlastchild-expected.txt b/LayoutTests/dom/html/level1/core/hc_attrlastchild-expected.txt
deleted file mode 100644 (file)
index 14472ba..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-Test:  http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrlastchild
-Status:        Success
diff --git a/LayoutTests/dom/html/level1/core/hc_attrlastchild.html b/LayoutTests/dom/html/level1/core/hc_attrlastchild.html
deleted file mode 100644 (file)
index b362a7a..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" 
-    "http://www.w3.org/TR/html4/strict.dtd" >
-<!-- This is comment number 1.-->
-<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>hc_staff</title><script type="text/javascript" src="selfhtml.js"></script><script charset="UTF-8" type="text/javascript" src="hc_attrlastchild.js"></script><script type='text/javascript'>function loadComplete() { startTest(); }</script></head><body onload="loadComplete()">
- <p>
-  <em>EMP0001</em>
-  <strong>Margaret Martin</strong>
-  <code>Accountant</code>           
-  <sup>56,000</sup>
-  <var>Female</var>
-  <acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym>
- </p>
- <p>
-  <em>EMP0002</em>
-  <strong>Martha RaynoldsThis is a CDATASection with EntityReference number 2 &amp;ent2;
-This is an adjacent CDATASection with a reference to a tab &amp;tab;</strong>
-  <code>Secretary</code>
-  <sup>35,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Yes">&beta; Dallas, &gamma;
- 98554</acronym>
- </p>
- <p>
-  <em>EMP0003</em>
-  <strong>Roger
- Jones</strong>
-  <code>Department Manager</code>
-  <sup>100,000</sup>
-  <var>&delta;</var>
-  <acronym title="Yes" class="No">PO Box 27 Irving, texas 98553</acronym>
- </p>
- <p>
-  <em>EMP0004</em>
-  <strong>Jeny Oconnor</strong>
-  <code>Personnel Director</code>
-  <sup>95,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Y&alpha;">27 South Road. Dallas, Texas 98556</acronym>
- </p>
- <p>
-  <em>EMP0005</em>
-  <strong>Robert Myers</strong>
-  <code>Computer Specialist</code>
-  <sup>90,000</sup>
-  <var>male</var>
-  <acronym title="Yes">1821 Nordic. Road, Irving Texas 98558</acronym>
- </p>
-</body></html>
diff --git a/LayoutTests/dom/html/level1/core/hc_attrlastchild.js b/LayoutTests/dom/html/level1/core/hc_attrlastchild.js
deleted file mode 100644 (file)
index 1df7342..0000000
+++ /dev/null
@@ -1,127 +0,0 @@
-
-/*
-Copyright Â© 2001-2004 World Wide Web Consortium, 
-(Massachusetts Institute of Technology, European Research Consortium 
-for Informatics and Mathematics, Keio University). All 
-Rights Reserved. This work is distributed under the W3C® Software License [1] 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. 
-
-[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
-*/
-
-
-
-   /**
-    *  Gets URI that identifies the test.
-    *  @return uri identifier of test
-    */
-function getTargetURI() {
-      return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrlastchild";
-   }
-
-var docsLoaded = -1000000;
-var builder = null;
-
-//
-//   This function is called by the testing framework before
-//      running the test suite.
-//
-//   If there are no configuration exceptions, asynchronous
-//        document loading is started.  Otherwise, the status
-//        is set to complete and the exception is immediately
-//        raised when entering the body of the test.
-//
-function setUpPage() {
-   setUpPageStatus = 'running';
-   try {
-     //
-     //   creates test document builder, may throw exception
-     //
-     builder = createConfiguredBuilder();
-
-      docsLoaded = 0;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      docsLoaded += preload(docRef, "doc", "hc_staff");
-        
-       if (docsLoaded == 1) {
-          setUpPageStatus = 'complete';
-       }
-    } catch(ex) {
-       catchInitializationError(builder, ex);
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-
-//
-//   This method is called on the completion of 
-//      each asychronous load started in setUpTests.
-//
-//   When every synchronous loaded document has completed,
-//      the page status is changed which allows the
-//      body of the test to be executed.
-function loadComplete() {
-    if (++docsLoaded == 1) {
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-/**
-* 
-Checks that Node.lastChild for an attribute node contains
-the expected text node.
-
-* @author Curt Arnold
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-61AD09FB
-*/
-function hc_attrlastchild() {
-   var success;
-    if(checkInitialization(builder, "hc_attrlastchild") != null) return;
-    var doc;
-      var acronymList;
-      var testNode;
-      var attributes;
-      var titleAttr;
-      var value;
-      var textNode;
-      var otherChild;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      doc = load(docRef, "doc", "hc_staff");
-      acronymList = doc.getElementsByTagName("acronym");
-      testNode = acronymList.item(3);
-      attributes = testNode.attributes;
-
-      titleAttr = attributes.getNamedItem("title");
-      textNode = titleAttr.firstChild;
-
-      assertNotNull("textNodeNotNull",textNode);
-value = textNode.nodeValue;
-
-      assertEquals("child1IsYes","Yes",value);
-       otherChild = textNode.nextSibling;
-
-      assertNull("nextSiblingIsNull",otherChild);
-    otherChild = textNode.previousSibling;
-
-      assertNull("previousSiblingIsNull",otherChild);
-    
-}
-
-
-
-
-function runTest() {
-   hc_attrlastchild();
-}
diff --git a/LayoutTests/dom/html/level1/core/hc_attrnormalize-expected.txt b/LayoutTests/dom/html/level1/core/hc_attrnormalize-expected.txt
deleted file mode 100644 (file)
index b852409..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-Test:  http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrnormalize
-Status:        Success
diff --git a/LayoutTests/dom/html/level1/core/hc_attrnormalize.html b/LayoutTests/dom/html/level1/core/hc_attrnormalize.html
deleted file mode 100644 (file)
index 7e41a62..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" 
-    "http://www.w3.org/TR/html4/strict.dtd" >
-<!-- This is comment number 1.-->
-<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>hc_staff</title><script type="text/javascript" src="selfhtml.js"></script><script charset="UTF-8" type="text/javascript" src="hc_attrnormalize.js"></script><script type='text/javascript'>function loadComplete() { startTest(); }</script></head><body onload="loadComplete()">
- <p>
-  <em>EMP0001</em>
-  <strong>Margaret Martin</strong>
-  <code>Accountant</code>           
-  <sup>56,000</sup>
-  <var>Female</var>
-  <acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym>
- </p>
- <p>
-  <em>EMP0002</em>
-  <strong>Martha RaynoldsThis is a CDATASection with EntityReference number 2 &amp;ent2;
-This is an adjacent CDATASection with a reference to a tab &amp;tab;</strong>
-  <code>Secretary</code>
-  <sup>35,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Yes">&beta; Dallas, &gamma;
- 98554</acronym>
- </p>
- <p>
-  <em>EMP0003</em>
-  <strong>Roger
- Jones</strong>
-  <code>Department Manager</code>
-  <sup>100,000</sup>
-  <var>&delta;</var>
-  <acronym title="Yes" class="No">PO Box 27 Irving, texas 98553</acronym>
- </p>
- <p>
-  <em>EMP0004</em>
-  <strong>Jeny Oconnor</strong>
-  <code>Personnel Director</code>
-  <sup>95,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Y&alpha;">27 South Road. Dallas, Texas 98556</acronym>
- </p>
- <p>
-  <em>EMP0005</em>
-  <strong>Robert Myers</strong>
-  <code>Computer Specialist</code>
-  <sup>90,000</sup>
-  <var>male</var>
-  <acronym title="Yes">1821 Nordic. Road, Irving Texas 98558</acronym>
- </p>
-</body></html>
diff --git a/LayoutTests/dom/html/level1/core/hc_attrnormalize.js b/LayoutTests/dom/html/level1/core/hc_attrnormalize.js
deleted file mode 100644 (file)
index d9f5e29..0000000
+++ /dev/null
@@ -1,133 +0,0 @@
-
-/*
-Copyright Â© 2001-2004 World Wide Web Consortium, 
-(Massachusetts Institute of Technology, European Research Consortium 
-for Informatics and Mathematics, Keio University). All 
-Rights Reserved. This work is distributed under the W3C® Software License [1] 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. 
-
-[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
-*/
-
-
-
-   /**
-    *  Gets URI that identifies the test.
-    *  @return uri identifier of test
-    */
-function getTargetURI() {
-      return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrnormalize";
-   }
-
-var docsLoaded = -1000000;
-var builder = null;
-
-//
-//   This function is called by the testing framework before
-//      running the test suite.
-//
-//   If there are no configuration exceptions, asynchronous
-//        document loading is started.  Otherwise, the status
-//        is set to complete and the exception is immediately
-//        raised when entering the body of the test.
-//
-function setUpPage() {
-   setUpPageStatus = 'running';
-   try {
-     //
-     //   creates test document builder, may throw exception
-     //
-     builder = createConfiguredBuilder();
-
-      docsLoaded = 0;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      docsLoaded += preload(docRef, "doc", "hc_staff");
-        
-       if (docsLoaded == 1) {
-          setUpPageStatus = 'complete';
-       }
-    } catch(ex) {
-       catchInitializationError(builder, ex);
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-
-//
-//   This method is called on the completion of 
-//      each asychronous load started in setUpTests.
-//
-//   When every synchronous loaded document has completed,
-//      the page status is changed which allows the
-//      body of the test to be executed.
-function loadComplete() {
-    if (++docsLoaded == 1) {
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-/**
-* 
-Appends a text node to an attribute, normalizes the attribute
-and checks for a single child node.
-
-* @author Curt Arnold
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-162CF083
-*/
-function hc_attrnormalize() {
-   var success;
-    if(checkInitialization(builder, "hc_attrnormalize") != null) return;
-    var doc;
-      var acronymList;
-      var testNode;
-      var attributes;
-      var titleAttr;
-      var value;
-      var textNode;
-      var retval;
-      var firstChild;
-      var secondChild;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      doc = load(docRef, "doc", "hc_staff");
-      acronymList = doc.getElementsByTagName("acronym");
-      testNode = acronymList.item(3);
-      attributes = testNode.attributes;
-
-      titleAttr = attributes.getNamedItem("title");
-      textNode = doc.createTextNode("terday");
-      retval = titleAttr.appendChild(textNode);
-      textNode = doc.createTextNode("");
-      retval = titleAttr.appendChild(textNode);
-      testNode.normalize();
-      value = titleAttr.nodeValue;
-
-      assertEquals("attrNodeValue","Yesterday",value);
-       firstChild = titleAttr.firstChild;
-
-      value = firstChild.nodeValue;
-
-      assertEquals("firstChildValue","Yesterday",value);
-       secondChild = firstChild.nextSibling;
-
-      assertNull("secondChildIsNull",secondChild);
-    
-}
-
-
-
-
-function runTest() {
-   hc_attrnormalize();
-}
diff --git a/LayoutTests/dom/html/level1/core/hc_attrremovechild1-expected.txt b/LayoutTests/dom/html/level1/core/hc_attrremovechild1-expected.txt
deleted file mode 100644 (file)
index eb15e21..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-Test:  http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrremovechild1
-Status:        Success
diff --git a/LayoutTests/dom/html/level1/core/hc_attrremovechild1.html b/LayoutTests/dom/html/level1/core/hc_attrremovechild1.html
deleted file mode 100644 (file)
index 7ec22ff..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" 
-    "http://www.w3.org/TR/html4/strict.dtd" >
-<!-- This is comment number 1.-->
-<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>hc_staff</title><script type="text/javascript" src="selfhtml.js"></script><script charset="UTF-8" type="text/javascript" src="hc_attrremovechild1.js"></script><script type='text/javascript'>function loadComplete() { startTest(); }</script></head><body onload="loadComplete()">
- <p>
-  <em>EMP0001</em>
-  <strong>Margaret Martin</strong>
-  <code>Accountant</code>           
-  <sup>56,000</sup>
-  <var>Female</var>
-  <acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym>
- </p>
- <p>
-  <em>EMP0002</em>
-  <strong>Martha RaynoldsThis is a CDATASection with EntityReference number 2 &amp;ent2;
-This is an adjacent CDATASection with a reference to a tab &amp;tab;</strong>
-  <code>Secretary</code>
-  <sup>35,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Yes">&beta; Dallas, &gamma;
- 98554</acronym>
- </p>
- <p>
-  <em>EMP0003</em>
-  <strong>Roger
- Jones</strong>
-  <code>Department Manager</code>
-  <sup>100,000</sup>
-  <var>&delta;</var>
-  <acronym title="Yes" class="No">PO Box 27 Irving, texas 98553</acronym>
- </p>
- <p>
-  <em>EMP0004</em>
-  <strong>Jeny Oconnor</strong>
-  <code>Personnel Director</code>
-  <sup>95,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Y&alpha;">27 South Road. Dallas, Texas 98556</acronym>
- </p>
- <p>
-  <em>EMP0005</em>
-  <strong>Robert Myers</strong>
-  <code>Computer Specialist</code>
-  <sup>90,000</sup>
-  <var>male</var>
-  <acronym title="Yes">1821 Nordic. Road, Irving Texas 98558</acronym>
- </p>
-</body></html>
diff --git a/LayoutTests/dom/html/level1/core/hc_attrremovechild1.js b/LayoutTests/dom/html/level1/core/hc_attrremovechild1.js
deleted file mode 100644 (file)
index 5f98746..0000000
+++ /dev/null
@@ -1,131 +0,0 @@
-
-/*
-Copyright Â© 2001-2004 World Wide Web Consortium, 
-(Massachusetts Institute of Technology, European Research Consortium 
-for Informatics and Mathematics, Keio University). All 
-Rights Reserved. This work is distributed under the W3C® Software License [1] 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. 
-
-[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
-*/
-
-
-
-   /**
-    *  Gets URI that identifies the test.
-    *  @return uri identifier of test
-    */
-function getTargetURI() {
-      return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrremovechild1";
-   }
-
-var docsLoaded = -1000000;
-var builder = null;
-
-//
-//   This function is called by the testing framework before
-//      running the test suite.
-//
-//   If there are no configuration exceptions, asynchronous
-//        document loading is started.  Otherwise, the status
-//        is set to complete and the exception is immediately
-//        raised when entering the body of the test.
-//
-function setUpPage() {
-   setUpPageStatus = 'running';
-   try {
-     //
-     //   creates test document builder, may throw exception
-     //
-     builder = createConfiguredBuilder();
-
-      docsLoaded = 0;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      docsLoaded += preload(docRef, "doc", "hc_staff");
-        
-       if (docsLoaded == 1) {
-          setUpPageStatus = 'complete';
-       }
-    } catch(ex) {
-       catchInitializationError(builder, ex);
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-
-//
-//   This method is called on the completion of 
-//      each asychronous load started in setUpTests.
-//
-//   When every synchronous loaded document has completed,
-//      the page status is changed which allows the
-//      body of the test to be executed.
-function loadComplete() {
-    if (++docsLoaded == 1) {
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-/**
-* 
-Removes the child node of an attribute and checks that the value is empty.
-
-* @author Curt Arnold
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1734834066
-*/
-function hc_attrremovechild1() {
-   var success;
-    if(checkInitialization(builder, "hc_attrremovechild1") != null) return;
-    var doc;
-      var acronymList;
-      var testNode;
-      var attributes;
-      var titleAttr;
-      var value;
-      var textNode;
-      var retval;
-      var firstChild;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      doc = load(docRef, "doc", "hc_staff");
-      acronymList = doc.getElementsByTagName("acronym");
-      testNode = acronymList.item(3);
-      attributes = testNode.attributes;
-
-      titleAttr = attributes.getNamedItem("title");
-      textNode = titleAttr.firstChild;
-
-      assertNotNull("attrChildNotNull",textNode);
-retval = titleAttr.removeChild(textNode);
-      value = titleAttr.value;
-
-      assertEquals("attrValue","",value);
-       value = titleAttr.nodeValue;
-
-      assertEquals("attrNodeValue","",value);
-       value = retval.nodeValue;
-
-      assertEquals("retvalValue","Yes",value);
-       firstChild = titleAttr.firstChild;
-
-      assertNull("firstChildNull",firstChild);
-    
-}
-
-
-
-
-function runTest() {
-   hc_attrremovechild1();
-}
diff --git a/LayoutTests/dom/html/level1/core/hc_attrreplacechild1-expected.txt b/LayoutTests/dom/html/level1/core/hc_attrreplacechild1-expected.txt
deleted file mode 100644 (file)
index c76d0a5..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-Test:  http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrreplacechild1
-Status:        Success
diff --git a/LayoutTests/dom/html/level1/core/hc_attrreplacechild1.html b/LayoutTests/dom/html/level1/core/hc_attrreplacechild1.html
deleted file mode 100644 (file)
index be52c6d..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" 
-    "http://www.w3.org/TR/html4/strict.dtd" >
-<!-- This is comment number 1.-->
-<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>hc_staff</title><script type="text/javascript" src="selfhtml.js"></script><script charset="UTF-8" type="text/javascript" src="hc_attrreplacechild1.js"></script><script type='text/javascript'>function loadComplete() { startTest(); }</script></head><body onload="loadComplete()">
- <p>
-  <em>EMP0001</em>
-  <strong>Margaret Martin</strong>
-  <code>Accountant</code>           
-  <sup>56,000</sup>
-  <var>Female</var>
-  <acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym>
- </p>
- <p>
-  <em>EMP0002</em>
-  <strong>Martha RaynoldsThis is a CDATASection with EntityReference number 2 &amp;ent2;
-This is an adjacent CDATASection with a reference to a tab &amp;tab;</strong>
-  <code>Secretary</code>
-  <sup>35,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Yes">&beta; Dallas, &gamma;
- 98554</acronym>
- </p>
- <p>
-  <em>EMP0003</em>
-  <strong>Roger
- Jones</strong>
-  <code>Department Manager</code>
-  <sup>100,000</sup>
-  <var>&delta;</var>
-  <acronym title="Yes" class="No">PO Box 27 Irving, texas 98553</acronym>
- </p>
- <p>
-  <em>EMP0004</em>
-  <strong>Jeny Oconnor</strong>
-  <code>Personnel Director</code>
-  <sup>95,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Y&alpha;">27 South Road. Dallas, Texas 98556</acronym>
- </p>
- <p>
-  <em>EMP0005</em>
-  <strong>Robert Myers</strong>
-  <code>Computer Specialist</code>
-  <sup>90,000</sup>
-  <var>male</var>
-  <acronym title="Yes">1821 Nordic. Road, Irving Texas 98558</acronym>
- </p>
-</body></html>
diff --git a/LayoutTests/dom/html/level1/core/hc_attrreplacechild1.js b/LayoutTests/dom/html/level1/core/hc_attrreplacechild1.js
deleted file mode 100644 (file)
index ff499e5..0000000
+++ /dev/null
@@ -1,135 +0,0 @@
-
-/*
-Copyright Â© 2001-2004 World Wide Web Consortium, 
-(Massachusetts Institute of Technology, European Research Consortium 
-for Informatics and Mathematics, Keio University). All 
-Rights Reserved. This work is distributed under the W3C® Software License [1] 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. 
-
-[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
-*/
-
-
-
-   /**
-    *  Gets URI that identifies the test.
-    *  @return uri identifier of test
-    */
-function getTargetURI() {
-      return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrreplacechild1";
-   }
-
-var docsLoaded = -1000000;
-var builder = null;
-
-//
-//   This function is called by the testing framework before
-//      running the test suite.
-//
-//   If there are no configuration exceptions, asynchronous
-//        document loading is started.  Otherwise, the status
-//        is set to complete and the exception is immediately
-//        raised when entering the body of the test.
-//
-function setUpPage() {
-   setUpPageStatus = 'running';
-   try {
-     //
-     //   creates test document builder, may throw exception
-     //
-     builder = createConfiguredBuilder();
-
-      docsLoaded = 0;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      docsLoaded += preload(docRef, "doc", "hc_staff");
-        
-       if (docsLoaded == 1) {
-          setUpPageStatus = 'complete';
-       }
-    } catch(ex) {
-       catchInitializationError(builder, ex);
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-
-//
-//   This method is called on the completion of 
-//      each asychronous load started in setUpTests.
-//
-//   When every synchronous loaded document has completed,
-//      the page status is changed which allows the
-//      body of the test to be executed.
-function loadComplete() {
-    if (++docsLoaded == 1) {
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-/**
-* 
-Replaces a text node of an attribute and checks if the value of
-the attribute is changed.
-
-* @author Curt Arnold
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-785887307
-*/
-function hc_attrreplacechild1() {
-   var success;
-    if(checkInitialization(builder, "hc_attrreplacechild1") != null) return;
-    var doc;
-      var acronymList;
-      var testNode;
-      var attributes;
-      var titleAttr;
-      var value;
-      var textNode;
-      var retval;
-      var firstChild;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      doc = load(docRef, "doc", "hc_staff");
-      acronymList = doc.getElementsByTagName("acronym");
-      testNode = acronymList.item(3);
-      attributes = testNode.attributes;
-
-      titleAttr = attributes.getNamedItem("title");
-      textNode = doc.createTextNode("terday");
-      firstChild = titleAttr.firstChild;
-
-      assertNotNull("attrChildNotNull",firstChild);
-retval = titleAttr.replaceChild(textNode,firstChild);
-      value = titleAttr.value;
-
-      assertEquals("attrValue","terday",value);
-       value = titleAttr.nodeValue;
-
-      assertEquals("attrNodeValue","terday",value);
-       value = retval.nodeValue;
-
-      assertEquals("retvalValue","Yes",value);
-       firstChild = titleAttr.firstChild;
-
-      value = firstChild.nodeValue;
-
-      assertEquals("firstChildValue","terday",value);
-       
-}
-
-
-
-
-function runTest() {
-   hc_attrreplacechild1();
-}
diff --git a/LayoutTests/dom/html/level1/core/hc_attrreplacechild2-expected.txt b/LayoutTests/dom/html/level1/core/hc_attrreplacechild2-expected.txt
deleted file mode 100644 (file)
index 798bea3..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-Test:  http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrreplacechild2
-Status:        Success
diff --git a/LayoutTests/dom/html/level1/core/hc_attrreplacechild2.html b/LayoutTests/dom/html/level1/core/hc_attrreplacechild2.html
deleted file mode 100644 (file)
index 1b272ec..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" 
-    "http://www.w3.org/TR/html4/strict.dtd" >
-<!-- This is comment number 1.-->
-<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>hc_staff</title><script type="text/javascript" src="selfhtml.js"></script><script charset="UTF-8" type="text/javascript" src="hc_attrreplacechild2.js"></script><script type='text/javascript'>function loadComplete() { startTest(); }</script></head><body onload="loadComplete()">
- <p>
-  <em>EMP0001</em>
-  <strong>Margaret Martin</strong>
-  <code>Accountant</code>           
-  <sup>56,000</sup>
-  <var>Female</var>
-  <acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym>
- </p>
- <p>
-  <em>EMP0002</em>
-  <strong>Martha RaynoldsThis is a CDATASection with EntityReference number 2 &amp;ent2;
-This is an adjacent CDATASection with a reference to a tab &amp;tab;</strong>
-  <code>Secretary</code>
-  <sup>35,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Yes">&beta; Dallas, &gamma;
- 98554</acronym>
- </p>
- <p>
-  <em>EMP0003</em>
-  <strong>Roger
- Jones</strong>
-  <code>Department Manager</code>
-  <sup>100,000</sup>
-  <var>&delta;</var>
-  <acronym title="Yes" class="No">PO Box 27 Irving, texas 98553</acronym>
- </p>
- <p>
-  <em>EMP0004</em>
-  <strong>Jeny Oconnor</strong>
-  <code>Personnel Director</code>
-  <sup>95,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Y&alpha;">27 South Road. Dallas, Texas 98556</acronym>
- </p>
- <p>
-  <em>EMP0005</em>
-  <strong>Robert Myers</strong>
-  <code>Computer Specialist</code>
-  <sup>90,000</sup>
-  <var>male</var>
-  <acronym title="Yes">1821 Nordic. Road, Irving Texas 98558</acronym>
- </p>
-</body></html>
diff --git a/LayoutTests/dom/html/level1/core/hc_attrreplacechild2.js b/LayoutTests/dom/html/level1/core/hc_attrreplacechild2.js
deleted file mode 100644 (file)
index c26d316..0000000
+++ /dev/null
@@ -1,141 +0,0 @@
-
-/*
-Copyright Â© 2001-2004 World Wide Web Consortium, 
-(Massachusetts Institute of Technology, European Research Consortium 
-for Informatics and Mathematics, Keio University). All 
-Rights Reserved. This work is distributed under the W3C® Software License [1] 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. 
-
-[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
-*/
-
-
-
-   /**
-    *  Gets URI that identifies the test.
-    *  @return uri identifier of test
-    */
-function getTargetURI() {
-      return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrreplacechild2";
-   }
-
-var docsLoaded = -1000000;
-var builder = null;
-
-//
-//   This function is called by the testing framework before
-//      running the test suite.
-//
-//   If there are no configuration exceptions, asynchronous
-//        document loading is started.  Otherwise, the status
-//        is set to complete and the exception is immediately
-//        raised when entering the body of the test.
-//
-function setUpPage() {
-   setUpPageStatus = 'running';
-   try {
-     //
-     //   creates test document builder, may throw exception
-     //
-     builder = createConfiguredBuilder();
-
-      docsLoaded = 0;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      docsLoaded += preload(docRef, "doc", "hc_staff");
-        
-       if (docsLoaded == 1) {
-          setUpPageStatus = 'complete';
-       }
-    } catch(ex) {
-       catchInitializationError(builder, ex);
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-
-//
-//   This method is called on the completion of 
-//      each asychronous load started in setUpTests.
-//
-//   When every synchronous loaded document has completed,
-//      the page status is changed which allows the
-//      body of the test to be executed.
-function loadComplete() {
-    if (++docsLoaded == 1) {
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-/**
-* 
-Replaces a text node of an attribute with a document fragment and checks if the value of
-the attribute is changed.
-
-* @author Curt Arnold
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-785887307
-*/
-function hc_attrreplacechild2() {
-   var success;
-    if(checkInitialization(builder, "hc_attrreplacechild2") != null) return;
-    var doc;
-      var acronymList;
-      var testNode;
-      var attributes;
-      var titleAttr;
-      var value;
-      var terNode;
-      var dayNode;
-      var docFrag;
-      var retval;
-      var firstChild;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      doc = load(docRef, "doc", "hc_staff");
-      acronymList = doc.getElementsByTagName("acronym");
-      testNode = acronymList.item(3);
-      attributes = testNode.attributes;
-
-      titleAttr = attributes.getNamedItem("title");
-      terNode = doc.createTextNode("ter");
-      dayNode = doc.createTextNode("day");
-      docFrag = doc.createDocumentFragment();
-      retval = docFrag.appendChild(terNode);
-      retval = docFrag.appendChild(dayNode);
-      firstChild = titleAttr.firstChild;
-
-      assertNotNull("attrChildNotNull",firstChild);
-retval = titleAttr.replaceChild(docFrag,firstChild);
-      value = titleAttr.value;
-
-      assertEquals("attrValue","terday",value);
-       value = titleAttr.nodeValue;
-
-      assertEquals("attrNodeValue","terday",value);
-       value = retval.nodeValue;
-
-      assertEquals("retvalValue","Yes",value);
-       firstChild = titleAttr.firstChild;
-
-      value = firstChild.nodeValue;
-
-      assertEquals("firstChildValue","ter",value);
-       
-}
-
-
-
-
-function runTest() {
-   hc_attrreplacechild2();
-}
diff --git a/LayoutTests/dom/html/level1/core/hc_attrsetvalue1-expected.txt b/LayoutTests/dom/html/level1/core/hc_attrsetvalue1-expected.txt
deleted file mode 100644 (file)
index edfe74b..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-Test:  http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrsetvalue1
-Status:        Success
diff --git a/LayoutTests/dom/html/level1/core/hc_attrsetvalue1.html b/LayoutTests/dom/html/level1/core/hc_attrsetvalue1.html
deleted file mode 100644 (file)
index 20cbcec..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" 
-    "http://www.w3.org/TR/html4/strict.dtd" >
-<!-- This is comment number 1.-->
-<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>hc_staff</title><script type="text/javascript" src="selfhtml.js"></script><script charset="UTF-8" type="text/javascript" src="hc_attrsetvalue1.js"></script><script type='text/javascript'>function loadComplete() { startTest(); }</script></head><body onload="loadComplete()">
- <p>
-  <em>EMP0001</em>
-  <strong>Margaret Martin</strong>
-  <code>Accountant</code>           
-  <sup>56,000</sup>
-  <var>Female</var>
-  <acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym>
- </p>
- <p>
-  <em>EMP0002</em>
-  <strong>Martha RaynoldsThis is a CDATASection with EntityReference number 2 &amp;ent2;
-This is an adjacent CDATASection with a reference to a tab &amp;tab;</strong>
-  <code>Secretary</code>
-  <sup>35,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Yes">&beta; Dallas, &gamma;
- 98554</acronym>
- </p>
- <p>
-  <em>EMP0003</em>
-  <strong>Roger
- Jones</strong>
-  <code>Department Manager</code>
-  <sup>100,000</sup>
-  <var>&delta;</var>
-  <acronym title="Yes" class="No">PO Box 27 Irving, texas 98553</acronym>
- </p>
- <p>
-  <em>EMP0004</em>
-  <strong>Jeny Oconnor</strong>
-  <code>Personnel Director</code>
-  <sup>95,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Y&alpha;">27 South Road. Dallas, Texas 98556</acronym>
- </p>
- <p>
-  <em>EMP0005</em>
-  <strong>Robert Myers</strong>
-  <code>Computer Specialist</code>
-  <sup>90,000</sup>
-  <var>male</var>
-  <acronym title="Yes">1821 Nordic. Road, Irving Texas 98558</acronym>
- </p>
-</body></html>
diff --git a/LayoutTests/dom/html/level1/core/hc_attrsetvalue1.js b/LayoutTests/dom/html/level1/core/hc_attrsetvalue1.js
deleted file mode 100644 (file)
index 457f7b6..0000000
+++ /dev/null
@@ -1,135 +0,0 @@
-
-/*
-Copyright Â© 2001-2004 World Wide Web Consortium, 
-(Massachusetts Institute of Technology, European Research Consortium 
-for Informatics and Mathematics, Keio University). All 
-Rights Reserved. This work is distributed under the W3C® Software License [1] 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. 
-
-[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
-*/
-
-
-
-   /**
-    *  Gets URI that identifies the test.
-    *  @return uri identifier of test
-    */
-function getTargetURI() {
-      return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrsetvalue1";
-   }
-
-var docsLoaded = -1000000;
-var builder = null;
-
-//
-//   This function is called by the testing framework before
-//      running the test suite.
-//
-//   If there are no configuration exceptions, asynchronous
-//        document loading is started.  Otherwise, the status
-//        is set to complete and the exception is immediately
-//        raised when entering the body of the test.
-//
-function setUpPage() {
-   setUpPageStatus = 'running';
-   try {
-     //
-     //   creates test document builder, may throw exception
-     //
-     builder = createConfiguredBuilder();
-
-      docsLoaded = 0;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      docsLoaded += preload(docRef, "doc", "hc_staff");
-        
-       if (docsLoaded == 1) {
-          setUpPageStatus = 'complete';
-       }
-    } catch(ex) {
-       catchInitializationError(builder, ex);
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-
-//
-//   This method is called on the completion of 
-//      each asychronous load started in setUpTests.
-//
-//   When every synchronous loaded document has completed,
-//      the page status is changed which allows the
-//      body of the test to be executed.
-function loadComplete() {
-    if (++docsLoaded == 1) {
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-/**
-* 
-Sets Attr.value on an attribute that only has a simple value.
-
-* @author Curt Arnold
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-221662474
-*/
-function hc_attrsetvalue1() {
-   var success;
-    if(checkInitialization(builder, "hc_attrsetvalue1") != null) return;
-    var doc;
-      var acronymList;
-      var testNode;
-      var attributes;
-      var titleAttr;
-      var value;
-      var retval;
-      var firstChild;
-      var otherChild;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      doc = load(docRef, "doc", "hc_staff");
-      acronymList = doc.getElementsByTagName("acronym");
-      testNode = acronymList.item(3);
-      attributes = testNode.attributes;
-
-      titleAttr = attributes.getNamedItem("title");
-      firstChild = titleAttr.firstChild;
-
-      assertNotNull("attrChildNotNull",firstChild);
-titleAttr.value = "Tomorrow";
-
-      firstChild.nodeValue = "impl reused node";
-
-      value = titleAttr.value;
-
-      assertEquals("attrValue","Tomorrow",value);
-       value = titleAttr.nodeValue;
-
-      assertEquals("attrNodeValue","Tomorrow",value);
-       firstChild = titleAttr.lastChild;
-
-      value = firstChild.nodeValue;
-
-      assertEquals("firstChildValue","Tomorrow",value);
-       otherChild = firstChild.nextSibling;
-
-      assertNull("nextSiblingIsNull",otherChild);
-    
-}
-
-
-
-
-function runTest() {
-   hc_attrsetvalue1();
-}
diff --git a/LayoutTests/dom/html/level1/core/hc_attrsetvalue2-expected.txt b/LayoutTests/dom/html/level1/core/hc_attrsetvalue2-expected.txt
deleted file mode 100644 (file)
index 34743da..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-Test:  http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrsetvalue2
-Status:        Success
diff --git a/LayoutTests/dom/html/level1/core/hc_attrsetvalue2.html b/LayoutTests/dom/html/level1/core/hc_attrsetvalue2.html
deleted file mode 100644 (file)
index 55150ca..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" 
-    "http://www.w3.org/TR/html4/strict.dtd" >
-<!-- This is comment number 1.-->
-<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>hc_staff</title><script type="text/javascript" src="selfhtml.js"></script><script charset="UTF-8" type="text/javascript" src="hc_attrsetvalue2.js"></script><script type='text/javascript'>function loadComplete() { startTest(); }</script></head><body onload="loadComplete()">
- <p>
-  <em>EMP0001</em>
-  <strong>Margaret Martin</strong>
-  <code>Accountant</code>           
-  <sup>56,000</sup>
-  <var>Female</var>
-  <acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym>
- </p>
- <p>
-  <em>EMP0002</em>
-  <strong>Martha RaynoldsThis is a CDATASection with EntityReference number 2 &amp;ent2;
-This is an adjacent CDATASection with a reference to a tab &amp;tab;</strong>
-  <code>Secretary</code>
-  <sup>35,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Yes">&beta; Dallas, &gamma;
- 98554</acronym>
- </p>
- <p>
-  <em>EMP0003</em>
-  <strong>Roger
- Jones</strong>
-  <code>Department Manager</code>
-  <sup>100,000</sup>
-  <var>&delta;</var>
-  <acronym title="Yes" class="No">PO Box 27 Irving, texas 98553</acronym>
- </p>
- <p>
-  <em>EMP0004</em>
-  <strong>Jeny Oconnor</strong>
-  <code>Personnel Director</code>
-  <sup>95,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Y&alpha;">27 South Road. Dallas, Texas 98556</acronym>
- </p>
- <p>
-  <em>EMP0005</em>
-  <strong>Robert Myers</strong>
-  <code>Computer Specialist</code>
-  <sup>90,000</sup>
-  <var>male</var>
-  <acronym title="Yes">1821 Nordic. Road, Irving Texas 98558</acronym>
- </p>
-</body></html>
diff --git a/LayoutTests/dom/html/level1/core/hc_attrsetvalue2.js b/LayoutTests/dom/html/level1/core/hc_attrsetvalue2.js
deleted file mode 100644 (file)
index 029d7d5..0000000
+++ /dev/null
@@ -1,138 +0,0 @@
-
-/*
-Copyright Â© 2001-2004 World Wide Web Consortium, 
-(Massachusetts Institute of Technology, European Research Consortium 
-for Informatics and Mathematics, Keio University). All 
-Rights Reserved. This work is distributed under the W3C® Software License [1] 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. 
-
-[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
-*/
-
-
-
-   /**
-    *  Gets URI that identifies the test.
-    *  @return uri identifier of test
-    */
-function getTargetURI() {
-      return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrsetvalue2";
-   }
-
-var docsLoaded = -1000000;
-var builder = null;
-
-//
-//   This function is called by the testing framework before
-//      running the test suite.
-//
-//   If there are no configuration exceptions, asynchronous
-//        document loading is started.  Otherwise, the status
-//        is set to complete and the exception is immediately
-//        raised when entering the body of the test.
-//
-function setUpPage() {
-   setUpPageStatus = 'running';
-   try {
-     //
-     //   creates test document builder, may throw exception
-     //
-     builder = createConfiguredBuilder();
-
-      docsLoaded = 0;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      docsLoaded += preload(docRef, "doc", "hc_staff");
-        
-       if (docsLoaded == 1) {
-          setUpPageStatus = 'complete';
-       }
-    } catch(ex) {
-       catchInitializationError(builder, ex);
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-
-//
-//   This method is called on the completion of 
-//      each asychronous load started in setUpTests.
-//
-//   When every synchronous loaded document has completed,
-//      the page status is changed which allows the
-//      body of the test to be executed.
-function loadComplete() {
-    if (++docsLoaded == 1) {
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-/**
-* 
-Sets Attr.value on an attribute that should contain multiple child nodes.
-
-* @author Curt Arnold
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-221662474
-*/
-function hc_attrsetvalue2() {
-   var success;
-    if(checkInitialization(builder, "hc_attrsetvalue2") != null) return;
-    var doc;
-      var acronymList;
-      var testNode;
-      var attributes;
-      var titleAttr;
-      var value;
-      var textNode;
-      var retval;
-      var firstChild;
-      var otherChild;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      doc = load(docRef, "doc", "hc_staff");
-      acronymList = doc.getElementsByTagName("acronym");
-      testNode = acronymList.item(3);
-      attributes = testNode.attributes;
-
-      titleAttr = attributes.getNamedItem("title");
-      textNode = doc.createTextNode("terday");
-      retval = titleAttr.appendChild(textNode);
-      firstChild = titleAttr.firstChild;
-
-      assertNotNull("attrChildNotNull",firstChild);
-titleAttr.value = "Tomorrow";
-
-      firstChild.nodeValue = "impl reused node";
-
-      value = titleAttr.value;
-
-      assertEquals("attrValue","Tomorrow",value);
-       value = titleAttr.nodeValue;
-
-      assertEquals("attrNodeValue","Tomorrow",value);
-       firstChild = titleAttr.lastChild;
-
-      value = firstChild.nodeValue;
-
-      assertEquals("firstChildValue","Tomorrow",value);
-       otherChild = firstChild.nextSibling;
-
-      assertNull("nextSiblingIsNull",otherChild);
-    
-}
-
-
-
-
-function runTest() {
-   hc_attrsetvalue2();
-}
diff --git a/LayoutTests/dom/html/level1/core/hc_elementnormalize2-expected.txt b/LayoutTests/dom/html/level1/core/hc_elementnormalize2-expected.txt
deleted file mode 100644 (file)
index 8c46839..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-Test:  http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_elementnormalize2
-Status:        Success
diff --git a/LayoutTests/dom/html/level1/core/hc_elementnormalize2.html b/LayoutTests/dom/html/level1/core/hc_elementnormalize2.html
deleted file mode 100644 (file)
index c0ba6e7..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" 
-    "http://www.w3.org/TR/html4/strict.dtd" >
-<!-- This is comment number 1.-->
-<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>hc_staff</title><script type="text/javascript" src="selfhtml.js"></script><script charset="UTF-8" type="text/javascript" src="hc_elementnormalize2.js"></script><script type='text/javascript'>function loadComplete() { startTest(); }</script></head><body onload="loadComplete()">
- <p>
-  <em>EMP0001</em>
-  <strong>Margaret Martin</strong>
-  <code>Accountant</code>           
-  <sup>56,000</sup>
-  <var>Female</var>
-  <acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym>
- </p>
- <p>
-  <em>EMP0002</em>
-  <strong>Martha RaynoldsThis is a CDATASection with EntityReference number 2 &amp;ent2;
-This is an adjacent CDATASection with a reference to a tab &amp;tab;</strong>
-  <code>Secretary</code>
-  <sup>35,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Yes">&beta; Dallas, &gamma;
- 98554</acronym>
- </p>
- <p>
-  <em>EMP0003</em>
-  <strong>Roger
- Jones</strong>
-  <code>Department Manager</code>
-  <sup>100,000</sup>
-  <var>&delta;</var>
-  <acronym title="Yes" class="No">PO Box 27 Irving, texas 98553</acronym>
- </p>
- <p>
-  <em>EMP0004</em>
-  <strong>Jeny Oconnor</strong>
-  <code>Personnel Director</code>
-  <sup>95,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Y&alpha;">27 South Road. Dallas, Texas 98556</acronym>
- </p>
- <p>
-  <em>EMP0005</em>
-  <strong>Robert Myers</strong>
-  <code>Computer Specialist</code>
-  <sup>90,000</sup>
-  <var>male</var>
-  <acronym title="Yes">1821 Nordic. Road, Irving Texas 98558</acronym>
- </p>
-</body></html>
diff --git a/LayoutTests/dom/html/level1/core/hc_elementnormalize2.js b/LayoutTests/dom/html/level1/core/hc_elementnormalize2.js
deleted file mode 100644 (file)
index b2197ed..0000000
+++ /dev/null
@@ -1,129 +0,0 @@
-
-/*
-Copyright Â© 2001-2004 World Wide Web Consortium, 
-(Massachusetts Institute of Technology, European Research Consortium 
-for Informatics and Mathematics, Keio University). All 
-Rights Reserved. This work is distributed under the W3C® Software License [1] 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. 
-
-[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
-*/
-
-
-
-   /**
-    *  Gets URI that identifies the test.
-    *  @return uri identifier of test
-    */
-function getTargetURI() {
-      return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_elementnormalize2";
-   }
-
-var docsLoaded = -1000000;
-var builder = null;
-
-//
-//   This function is called by the testing framework before
-//      running the test suite.
-//
-//   If there are no configuration exceptions, asynchronous
-//        document loading is started.  Otherwise, the status
-//        is set to complete and the exception is immediately
-//        raised when entering the body of the test.
-//
-function setUpPage() {
-   setUpPageStatus = 'running';
-   try {
-     //
-     //   creates test document builder, may throw exception
-     //
-     builder = createConfiguredBuilder();
-
-      docsLoaded = 0;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      docsLoaded += preload(docRef, "doc", "hc_staff");
-        
-       if (docsLoaded == 1) {
-          setUpPageStatus = 'complete';
-       }
-    } catch(ex) {
-       catchInitializationError(builder, ex);
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-
-//
-//   This method is called on the completion of 
-//      each asychronous load started in setUpTests.
-//
-//   When every synchronous loaded document has completed,
-//      the page status is changed which allows the
-//      body of the test to be executed.
-function loadComplete() {
-    if (++docsLoaded == 1) {
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-/**
-* 
-Add an empty text node to an existing attribute node, normalize the containing element
-and check that the attribute node has eliminated the empty text.
-
-* @author Curt Arnold
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-162CF083
-* @see http://www.w3.org/Bugs/Public/show_bug.cgi?id=482
-*/
-function hc_elementnormalize2() {
-   var success;
-    if(checkInitialization(builder, "hc_elementnormalize2") != null) return;
-    var doc;
-      var root;
-      var elementList;
-      var element;
-      var firstChild;
-      var secondChild;
-      var childValue;
-      var emptyText;
-      var attrNode;
-      var retval;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      doc = load(docRef, "doc", "hc_staff");
-      root = doc.documentElement;
-
-      emptyText = doc.createTextNode("");
-      elementList = root.getElementsByTagName("acronym");
-      element = elementList.item(0);
-      attrNode = element.getAttributeNode("title");
-      retval = attrNode.appendChild(emptyText);
-      element.normalize();
-      attrNode = element.getAttributeNode("title");
-      firstChild = attrNode.firstChild;
-
-      childValue = firstChild.nodeValue;
-
-      assertEquals("firstChild","Yes",childValue);
-       secondChild = firstChild.nextSibling;
-
-      assertNull("secondChildNull",secondChild);
-    
-}
-
-
-
-
-function runTest() {
-   hc_elementnormalize2();
-}
diff --git a/LayoutTests/dom/xhtml/level1/core/hc_attrappendchild1-expected.txt b/LayoutTests/dom/xhtml/level1/core/hc_attrappendchild1-expected.txt
deleted file mode 100644 (file)
index 0583b5e..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-Test   http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrappendchild1
-Status Success
diff --git a/LayoutTests/dom/xhtml/level1/core/hc_attrappendchild1.js b/LayoutTests/dom/xhtml/level1/core/hc_attrappendchild1.js
deleted file mode 100644 (file)
index 0bb0ad9..0000000
+++ /dev/null
@@ -1,132 +0,0 @@
-
-/*
-Copyright Â© 2001-2004 World Wide Web Consortium, 
-(Massachusetts Institute of Technology, European Research Consortium 
-for Informatics and Mathematics, Keio University). All 
-Rights Reserved. This work is distributed under the W3C® Software License [1] 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. 
-
-[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
-*/
-
-
-
-   /**
-    *  Gets URI that identifies the test.
-    *  @return uri identifier of test
-    */
-function getTargetURI() {
-      return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrappendchild1";
-   }
-
-var docsLoaded = -1000000;
-var builder = null;
-
-//
-//   This function is called by the testing framework before
-//      running the test suite.
-//
-//   If there are no configuration exceptions, asynchronous
-//        document loading is started.  Otherwise, the status
-//        is set to complete and the exception is immediately
-//        raised when entering the body of the test.
-//
-function setUpPage() {
-   setUpPageStatus = 'running';
-   try {
-     //
-     //   creates test document builder, may throw exception
-     //
-     builder = createConfiguredBuilder();
-
-      docsLoaded = 0;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      docsLoaded += preload(docRef, "doc", "hc_staff");
-        
-       if (docsLoaded == 1) {
-          setUpPageStatus = 'complete';
-       }
-    } catch(ex) {
-       catchInitializationError(builder, ex);
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-
-//
-//   This method is called on the completion of 
-//      each asychronous load started in setUpTests.
-//
-//   When every synchronous loaded document has completed,
-//      the page status is changed which allows the
-//      body of the test to be executed.
-function loadComplete() {
-    if (++docsLoaded == 1) {
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-/**
-* 
-Appends a text node to an attribute and checks if the value of
-the attribute is changed.
-
-* @author Curt Arnold
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-184E7107
-*/
-function hc_attrappendchild1() {
-   var success;
-    if(checkInitialization(builder, "hc_attrappendchild1") != null) return;
-    var doc;
-      var acronymList;
-      var testNode;
-      var attributes;
-      var titleAttr;
-      var value;
-      var textNode;
-      var retval;
-      var lastChild;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      doc = load(docRef, "doc", "hc_staff");
-      acronymList = doc.getElementsByTagName("acronym");
-      testNode = acronymList.item(3);
-      attributes = testNode.attributes;
-
-      titleAttr = attributes.getNamedItem("title");
-      textNode = doc.createTextNode("terday");
-      retval = titleAttr.appendChild(textNode);
-      value = titleAttr.value;
-
-      assertEquals("attrValue","Yesterday",value);
-       value = titleAttr.nodeValue;
-
-      assertEquals("attrNodeValue","Yesterday",value);
-       value = retval.nodeValue;
-
-      assertEquals("retvalValue","terday",value);
-       lastChild = titleAttr.lastChild;
-
-      value = lastChild.nodeValue;
-
-      assertEquals("lastChildValue","terday",value);
-       
-}
-
-
-
-
-function runTest() {
-   hc_attrappendchild1();
-}
diff --git a/LayoutTests/dom/xhtml/level1/core/hc_attrappendchild1.xhtml b/LayoutTests/dom/xhtml/level1/core/hc_attrappendchild1.xhtml
deleted file mode 100644 (file)
index 429b928..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-<?xml version="1.0"?><?TEST-STYLE PIDATA?>
-<!DOCTYPE html
-   PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-   "xhtml1-strict.dtd" [
-   <!ENTITY alpha "&#945;">
-   <!ENTITY beta "&#946;">
-   <!ENTITY gamma "&#947;">
-   <!ENTITY delta "&#948;">
-   <!ENTITY epsilon "&#949;">
-   <!ENTITY alpha "&#950;">
-   <!NOTATION notation1 PUBLIC "notation1File">
-   <!NOTATION notation2 SYSTEM "notation2File">
-   <!ATTLIST acronym dir CDATA "ltr">
-]>
-<!-- This is comment number 1.-->
-<html xmlns='http://www.w3.org/1999/xhtml'><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><title>hc_staff</title><script type="text/javascript" src="selfxhtml.js"/><script  charset="UTF-8" type="text/javascript" src="hc_attrappendchild1.js"/><script type='text/javascript'>function loadComplete() { startTest(); }</script></head><body onload="loadComplete()">
- <p>
-  <em>EMP0001</em>
-  <strong>Margaret Martin</strong>
-  <code>Accountant</code>           
-  <sup>56,000</sup>
-  <var>Female</var>
-  <acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym>
- </p>
- <p>
-  <em>EMP0002</em>
-  <strong>Martha RaynoldsThis is a CDATASection with EntityReference number 2 &amp;ent2;
-This is an adjacent CDATASection with a reference to a tab &amp;tab;</strong>
-  <code>Secretary</code>
-  <sup>35,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Yes">&beta; Dallas, &gamma;
- 98554</acronym>
- </p>
- <p>
-  <em>EMP0003</em>
-  <strong>Roger
- Jones</strong>
-  <code>Department Manager</code>
-  <sup>100,000</sup>
-  <var>&delta;</var>
-  <acronym title="Yes" class="No">PO Box 27 Irving, texas 98553</acronym>
- </p>
- <p>
-  <em>EMP0004</em>
-  <strong>Jeny Oconnor</strong>
-  <code>Personnel Director</code>
-  <sup>95,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Y&alpha;">27 South Road. Dallas, Texas 98556</acronym>
- </p>
- <p>
-  <em>EMP0005</em>
-  <strong>Robert Myers</strong>
-  <code>Computer Specialist</code>
-  <sup>90,000</sup>
-  <var>male</var>
-  <acronym title="Yes">1821 Nordic. Road, Irving Texas 98558</acronym>
- </p>
-</body></html>
diff --git a/LayoutTests/dom/xhtml/level1/core/hc_attrappendchild2-expected.txt b/LayoutTests/dom/xhtml/level1/core/hc_attrappendchild2-expected.txt
deleted file mode 100644 (file)
index dc46570..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-Test   http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrappendchild2
-Status Success
diff --git a/LayoutTests/dom/xhtml/level1/core/hc_attrappendchild2.js b/LayoutTests/dom/xhtml/level1/core/hc_attrappendchild2.js
deleted file mode 100644 (file)
index ac53896..0000000
+++ /dev/null
@@ -1,127 +0,0 @@
-
-/*
-Copyright Â© 2001-2004 World Wide Web Consortium, 
-(Massachusetts Institute of Technology, European Research Consortium 
-for Informatics and Mathematics, Keio University). All 
-Rights Reserved. This work is distributed under the W3C® Software License [1] 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. 
-
-[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
-*/
-
-
-
-   /**
-    *  Gets URI that identifies the test.
-    *  @return uri identifier of test
-    */
-function getTargetURI() {
-      return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrappendchild2";
-   }
-
-var docsLoaded = -1000000;
-var builder = null;
-
-//
-//   This function is called by the testing framework before
-//      running the test suite.
-//
-//   If there are no configuration exceptions, asynchronous
-//        document loading is started.  Otherwise, the status
-//        is set to complete and the exception is immediately
-//        raised when entering the body of the test.
-//
-function setUpPage() {
-   setUpPageStatus = 'running';
-   try {
-     //
-     //   creates test document builder, may throw exception
-     //
-     builder = createConfiguredBuilder();
-
-      docsLoaded = 0;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      docsLoaded += preload(docRef, "doc", "hc_staff");
-        
-       if (docsLoaded == 1) {
-          setUpPageStatus = 'complete';
-       }
-    } catch(ex) {
-       catchInitializationError(builder, ex);
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-
-//
-//   This method is called on the completion of 
-//      each asychronous load started in setUpTests.
-//
-//   When every synchronous loaded document has completed,
-//      the page status is changed which allows the
-//      body of the test to be executed.
-function loadComplete() {
-    if (++docsLoaded == 1) {
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-/**
-* 
-Attempts to append an element to the child nodes of an attribute.
-
-* @author Curt Arnold
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-184E7107
-*/
-function hc_attrappendchild2() {
-   var success;
-    if(checkInitialization(builder, "hc_attrappendchild2") != null) return;
-    var doc;
-      var acronymList;
-      var testNode;
-      var attributes;
-      var titleAttr;
-      var value;
-      var newChild;
-      var retval;
-      var lastChild;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      doc = load(docRef, "doc", "hc_staff");
-      acronymList = doc.getElementsByTagName("acronym");
-      testNode = acronymList.item(3);
-      attributes = testNode.attributes;
-
-      titleAttr = attributes.getNamedItem("title");
-      newChild = doc.createElement("terday");
-      
-       {
-               success = false;
-               try {
-            retval = titleAttr.appendChild(newChild);
-        }
-               catch(ex) {
-      success = (typeof(ex.code) != 'undefined' && ex.code == 3);
-               }
-               assertTrue("throw_HIERARCHY_REQUEST_ERR",success);
-       }
-
-}
-
-
-
-
-function runTest() {
-   hc_attrappendchild2();
-}
diff --git a/LayoutTests/dom/xhtml/level1/core/hc_attrappendchild2.xhtml b/LayoutTests/dom/xhtml/level1/core/hc_attrappendchild2.xhtml
deleted file mode 100644 (file)
index 10b17e7..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-<?xml version="1.0"?><?TEST-STYLE PIDATA?>
-<!DOCTYPE html
-   PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-   "xhtml1-strict.dtd" [
-   <!ENTITY alpha "&#945;">
-   <!ENTITY beta "&#946;">
-   <!ENTITY gamma "&#947;">
-   <!ENTITY delta "&#948;">
-   <!ENTITY epsilon "&#949;">
-   <!ENTITY alpha "&#950;">
-   <!NOTATION notation1 PUBLIC "notation1File">
-   <!NOTATION notation2 SYSTEM "notation2File">
-   <!ATTLIST acronym dir CDATA "ltr">
-]>
-<!-- This is comment number 1.-->
-<html xmlns='http://www.w3.org/1999/xhtml'><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><title>hc_staff</title><script type="text/javascript" src="selfxhtml.js"/><script  charset="UTF-8" type="text/javascript" src="hc_attrappendchild2.js"/><script type='text/javascript'>function loadComplete() { startTest(); }</script></head><body onload="loadComplete()">
- <p>
-  <em>EMP0001</em>
-  <strong>Margaret Martin</strong>
-  <code>Accountant</code>           
-  <sup>56,000</sup>
-  <var>Female</var>
-  <acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym>
- </p>
- <p>
-  <em>EMP0002</em>
-  <strong>Martha RaynoldsThis is a CDATASection with EntityReference number 2 &amp;ent2;
-This is an adjacent CDATASection with a reference to a tab &amp;tab;</strong>
-  <code>Secretary</code>
-  <sup>35,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Yes">&beta; Dallas, &gamma;
- 98554</acronym>
- </p>
- <p>
-  <em>EMP0003</em>
-  <strong>Roger
- Jones</strong>
-  <code>Department Manager</code>
-  <sup>100,000</sup>
-  <var>&delta;</var>
-  <acronym title="Yes" class="No">PO Box 27 Irving, texas 98553</acronym>
- </p>
- <p>
-  <em>EMP0004</em>
-  <strong>Jeny Oconnor</strong>
-  <code>Personnel Director</code>
-  <sup>95,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Y&alpha;">27 South Road. Dallas, Texas 98556</acronym>
- </p>
- <p>
-  <em>EMP0005</em>
-  <strong>Robert Myers</strong>
-  <code>Computer Specialist</code>
-  <sup>90,000</sup>
-  <var>male</var>
-  <acronym title="Yes">1821 Nordic. Road, Irving Texas 98558</acronym>
- </p>
-</body></html>
diff --git a/LayoutTests/dom/xhtml/level1/core/hc_attrappendchild3-expected.txt b/LayoutTests/dom/xhtml/level1/core/hc_attrappendchild3-expected.txt
deleted file mode 100644 (file)
index de2a65a..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-Test   http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrappendchild3
-Status Success
diff --git a/LayoutTests/dom/xhtml/level1/core/hc_attrappendchild3.js b/LayoutTests/dom/xhtml/level1/core/hc_attrappendchild3.js
deleted file mode 100644 (file)
index 66adc3d..0000000
+++ /dev/null
@@ -1,138 +0,0 @@
-
-/*
-Copyright Â© 2001-2004 World Wide Web Consortium, 
-(Massachusetts Institute of Technology, European Research Consortium 
-for Informatics and Mathematics, Keio University). All 
-Rights Reserved. This work is distributed under the W3C® Software License [1] 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. 
-
-[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
-*/
-
-
-
-   /**
-    *  Gets URI that identifies the test.
-    *  @return uri identifier of test
-    */
-function getTargetURI() {
-      return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrappendchild3";
-   }
-
-var docsLoaded = -1000000;
-var builder = null;
-
-//
-//   This function is called by the testing framework before
-//      running the test suite.
-//
-//   If there are no configuration exceptions, asynchronous
-//        document loading is started.  Otherwise, the status
-//        is set to complete and the exception is immediately
-//        raised when entering the body of the test.
-//
-function setUpPage() {
-   setUpPageStatus = 'running';
-   try {
-     //
-     //   creates test document builder, may throw exception
-     //
-     builder = createConfiguredBuilder();
-
-      docsLoaded = 0;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      docsLoaded += preload(docRef, "doc", "hc_staff");
-        
-       if (docsLoaded == 1) {
-          setUpPageStatus = 'complete';
-       }
-    } catch(ex) {
-       catchInitializationError(builder, ex);
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-
-//
-//   This method is called on the completion of 
-//      each asychronous load started in setUpTests.
-//
-//   When every synchronous loaded document has completed,
-//      the page status is changed which allows the
-//      body of the test to be executed.
-function loadComplete() {
-    if (++docsLoaded == 1) {
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-/**
-* 
-Appends a document fragment to an attribute and checks if the value of
-the attribute is changed.
-
-* @author Curt Arnold
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-184E7107
-*/
-function hc_attrappendchild3() {
-   var success;
-    if(checkInitialization(builder, "hc_attrappendchild3") != null) return;
-    var doc;
-      var acronymList;
-      var testNode;
-      var attributes;
-      var titleAttr;
-      var value;
-      var terNode;
-      var dayNode;
-      var retval;
-      var lastChild;
-      var docFrag;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      doc = load(docRef, "doc", "hc_staff");
-      acronymList = doc.getElementsByTagName("acronym");
-      testNode = acronymList.item(3);
-      attributes = testNode.attributes;
-
-      titleAttr = attributes.getNamedItem("title");
-      terNode = doc.createTextNode("ter");
-      dayNode = doc.createTextNode("day");
-      docFrag = doc.createDocumentFragment();
-      retval = docFrag.appendChild(terNode);
-      retval = docFrag.appendChild(dayNode);
-      retval = titleAttr.appendChild(docFrag);
-      value = titleAttr.value;
-
-      assertEquals("attrValue","Yesterday",value);
-       value = titleAttr.nodeValue;
-
-      assertEquals("attrNodeValue","Yesterday",value);
-       value = retval.nodeValue;
-
-      assertNull("retvalValue",value);
-    lastChild = titleAttr.lastChild;
-
-      value = lastChild.nodeValue;
-
-      assertEquals("lastChildValue","day",value);
-       
-}
-
-
-
-
-function runTest() {
-   hc_attrappendchild3();
-}
diff --git a/LayoutTests/dom/xhtml/level1/core/hc_attrappendchild3.xhtml b/LayoutTests/dom/xhtml/level1/core/hc_attrappendchild3.xhtml
deleted file mode 100644 (file)
index 9901398..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-<?xml version="1.0"?><?TEST-STYLE PIDATA?>
-<!DOCTYPE html
-   PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-   "xhtml1-strict.dtd" [
-   <!ENTITY alpha "&#945;">
-   <!ENTITY beta "&#946;">
-   <!ENTITY gamma "&#947;">
-   <!ENTITY delta "&#948;">
-   <!ENTITY epsilon "&#949;">
-   <!ENTITY alpha "&#950;">
-   <!NOTATION notation1 PUBLIC "notation1File">
-   <!NOTATION notation2 SYSTEM "notation2File">
-   <!ATTLIST acronym dir CDATA "ltr">
-]>
-<!-- This is comment number 1.-->
-<html xmlns='http://www.w3.org/1999/xhtml'><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><title>hc_staff</title><script type="text/javascript" src="selfxhtml.js"/><script  charset="UTF-8" type="text/javascript" src="hc_attrappendchild3.js"/><script type='text/javascript'>function loadComplete() { startTest(); }</script></head><body onload="loadComplete()">
- <p>
-  <em>EMP0001</em>
-  <strong>Margaret Martin</strong>
-  <code>Accountant</code>           
-  <sup>56,000</sup>
-  <var>Female</var>
-  <acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym>
- </p>
- <p>
-  <em>EMP0002</em>
-  <strong>Martha RaynoldsThis is a CDATASection with EntityReference number 2 &amp;ent2;
-This is an adjacent CDATASection with a reference to a tab &amp;tab;</strong>
-  <code>Secretary</code>
-  <sup>35,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Yes">&beta; Dallas, &gamma;
- 98554</acronym>
- </p>
- <p>
-  <em>EMP0003</em>
-  <strong>Roger
- Jones</strong>
-  <code>Department Manager</code>
-  <sup>100,000</sup>
-  <var>&delta;</var>
-  <acronym title="Yes" class="No">PO Box 27 Irving, texas 98553</acronym>
- </p>
- <p>
-  <em>EMP0004</em>
-  <strong>Jeny Oconnor</strong>
-  <code>Personnel Director</code>
-  <sup>95,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Y&alpha;">27 South Road. Dallas, Texas 98556</acronym>
- </p>
- <p>
-  <em>EMP0005</em>
-  <strong>Robert Myers</strong>
-  <code>Computer Specialist</code>
-  <sup>90,000</sup>
-  <var>male</var>
-  <acronym title="Yes">1821 Nordic. Road, Irving Texas 98558</acronym>
- </p>
-</body></html>
diff --git a/LayoutTests/dom/xhtml/level1/core/hc_attrappendchild4-expected.txt b/LayoutTests/dom/xhtml/level1/core/hc_attrappendchild4-expected.txt
deleted file mode 100644 (file)
index 04ba30c..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-Test   http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrappendchild4
-Status Success
diff --git a/LayoutTests/dom/xhtml/level1/core/hc_attrappendchild4.js b/LayoutTests/dom/xhtml/level1/core/hc_attrappendchild4.js
deleted file mode 100644 (file)
index dc70102..0000000
+++ /dev/null
@@ -1,152 +0,0 @@
-
-/*
-Copyright Â© 2001-2004 World Wide Web Consortium, 
-(Massachusetts Institute of Technology, European Research Consortium 
-for Informatics and Mathematics, Keio University). All 
-Rights Reserved. This work is distributed under the W3C® Software License [1] 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. 
-
-[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
-*/
-
-
-
-   /**
-    *  Gets URI that identifies the test.
-    *  @return uri identifier of test
-    */
-function getTargetURI() {
-      return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrappendchild4";
-   }
-
-var docsLoaded = -1000000;
-var builder = null;
-
-//
-//   This function is called by the testing framework before
-//      running the test suite.
-//
-//   If there are no configuration exceptions, asynchronous
-//        document loading is started.  Otherwise, the status
-//        is set to complete and the exception is immediately
-//        raised when entering the body of the test.
-//
-function setUpPage() {
-   setUpPageStatus = 'running';
-   try {
-     //
-     //   creates test document builder, may throw exception
-     //
-     builder = createConfiguredBuilder();
-       checkFeature("XML", null);
-
-      docsLoaded = 0;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      docsLoaded += preload(docRef, "doc", "hc_staff");
-        
-       if (docsLoaded == 1) {
-          setUpPageStatus = 'complete';
-       }
-    } catch(ex) {
-       catchInitializationError(builder, ex);
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-
-//
-//   This method is called on the completion of 
-//      each asychronous load started in setUpTests.
-//
-//   When every synchronous loaded document has completed,
-//      the page status is changed which allows the
-//      body of the test to be executed.
-function loadComplete() {
-    if (++docsLoaded == 1) {
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-/**
-* 
-Attempt to append a CDATASection to an attribute which should result
-in a HIERARCHY_REQUEST_ERR.
-
-* @author Curt Arnold
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-184E7107
-*/
-function hc_attrappendchild4() {
-   var success;
-    if(checkInitialization(builder, "hc_attrappendchild4") != null) return;
-    var doc;
-      var acronymList;
-      var testNode;
-      var attributes;
-      var titleAttr;
-      var value;
-      var textNode;
-      var retval;
-      var lastChild;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      doc = load(docRef, "doc", "hc_staff");
-      acronymList = doc.getElementsByTagName("acronym");
-      testNode = acronymList.item(3);
-      attributes = testNode.attributes;
-
-      titleAttr = attributes.getNamedItem("title");
-      
-       if(
-       
-       (builder.contentType == "text/html")
-
-       ) {
-       
-       {
-               success = false;
-               try {
-            textNode = doc.createCDATASection("terday");
-        }
-               catch(ex) {
-      success = (typeof(ex.code) != 'undefined' && ex.code == 9);
-               }
-               assertTrue("throw_NOT_SUPPORTED_ERR",success);
-       }
-
-       }
-       
-               else {
-                       textNode = doc.createCDATASection("terday");
-      
-       {
-               success = false;
-               try {
-            retval = titleAttr.appendChild(textNode);
-        }
-               catch(ex) {
-      success = (typeof(ex.code) != 'undefined' && ex.code == 3);
-               }
-               assertTrue("throw_HIERARCHY_REQUEST_ERR",success);
-       }
-
-               }
-       
-}
-
-
-
-
-function runTest() {
-   hc_attrappendchild4();
-}
diff --git a/LayoutTests/dom/xhtml/level1/core/hc_attrappendchild4.xhtml b/LayoutTests/dom/xhtml/level1/core/hc_attrappendchild4.xhtml
deleted file mode 100644 (file)
index e8659a4..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-<?xml version="1.0"?><?TEST-STYLE PIDATA?>
-<!DOCTYPE html
-   PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-   "xhtml1-strict.dtd" [
-   <!ENTITY alpha "&#945;">
-   <!ENTITY beta "&#946;">
-   <!ENTITY gamma "&#947;">
-   <!ENTITY delta "&#948;">
-   <!ENTITY epsilon "&#949;">
-   <!ENTITY alpha "&#950;">
-   <!NOTATION notation1 PUBLIC "notation1File">
-   <!NOTATION notation2 SYSTEM "notation2File">
-   <!ATTLIST acronym dir CDATA "ltr">
-]>
-<!-- This is comment number 1.-->
-<html xmlns='http://www.w3.org/1999/xhtml'><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><title>hc_staff</title><script type="text/javascript" src="selfxhtml.js"/><script  charset="UTF-8" type="text/javascript" src="hc_attrappendchild4.js"/><script type='text/javascript'>function loadComplete() { startTest(); }</script></head><body onload="loadComplete()">
- <p>
-  <em>EMP0001</em>
-  <strong>Margaret Martin</strong>
-  <code>Accountant</code>           
-  <sup>56,000</sup>
-  <var>Female</var>
-  <acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym>
- </p>
- <p>
-  <em>EMP0002</em>
-  <strong>Martha RaynoldsThis is a CDATASection with EntityReference number 2 &amp;ent2;
-This is an adjacent CDATASection with a reference to a tab &amp;tab;</strong>
-  <code>Secretary</code>
-  <sup>35,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Yes">&beta; Dallas, &gamma;
- 98554</acronym>
- </p>
- <p>
-  <em>EMP0003</em>
-  <strong>Roger
- Jones</strong>
-  <code>Department Manager</code>
-  <sup>100,000</sup>
-  <var>&delta;</var>
-  <acronym title="Yes" class="No">PO Box 27 Irving, texas 98553</acronym>
- </p>
- <p>
-  <em>EMP0004</em>
-  <strong>Jeny Oconnor</strong>
-  <code>Personnel Director</code>
-  <sup>95,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Y&alpha;">27 South Road. Dallas, Texas 98556</acronym>
- </p>
- <p>
-  <em>EMP0005</em>
-  <strong>Robert Myers</strong>
-  <code>Computer Specialist</code>
-  <sup>90,000</sup>
-  <var>male</var>
-  <acronym title="Yes">1821 Nordic. Road, Irving Texas 98558</acronym>
- </p>
-</body></html>
diff --git a/LayoutTests/dom/xhtml/level1/core/hc_attrappendchild5-expected.txt b/LayoutTests/dom/xhtml/level1/core/hc_attrappendchild5-expected.txt
deleted file mode 100644 (file)
index 60f2a64..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-Test   http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrappendchild5
-Status failure
-Message        throw_WRONG_DOCUMENT_ERR: assertTrue failed
diff --git a/LayoutTests/dom/xhtml/level1/core/hc_attrappendchild5.js b/LayoutTests/dom/xhtml/level1/core/hc_attrappendchild5.js
deleted file mode 100644 (file)
index c9e8855..0000000
+++ /dev/null
@@ -1,141 +0,0 @@
-
-/*
-Copyright Â© 2001-2004 World Wide Web Consortium, 
-(Massachusetts Institute of Technology, European Research Consortium 
-for Informatics and Mathematics, Keio University). All 
-Rights Reserved. This work is distributed under the W3C® Software License [1] 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. 
-
-[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
-*/
-
-
-
-   /**
-    *  Gets URI that identifies the test.
-    *  @return uri identifier of test
-    */
-function getTargetURI() {
-      return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrappendchild5";
-   }
-
-var docsLoaded = -1000000;
-var builder = null;
-
-//
-//   This function is called by the testing framework before
-//      running the test suite.
-//
-//   If there are no configuration exceptions, asynchronous
-//        document loading is started.  Otherwise, the status
-//        is set to complete and the exception is immediately
-//        raised when entering the body of the test.
-//
-function setUpPage() {
-   setUpPageStatus = 'running';
-   try {
-     //
-     //   creates test document builder, may throw exception
-     //
-     builder = createConfiguredBuilder();
-
-      docsLoaded = 0;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      docsLoaded += preload(docRef, "doc", "hc_staff");
-        
-      var otherDocRef = null;
-      if (typeof(this.otherDoc) != 'undefined') {
-        otherDocRef = this.otherDoc;
-      }
-      docsLoaded += preload(otherDocRef, "otherDoc", "hc_staff");
-        
-       if (docsLoaded == 2) {
-          setUpPageStatus = 'complete';
-       }
-    } catch(ex) {
-       catchInitializationError(builder, ex);
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-
-//
-//   This method is called on the completion of 
-//      each asychronous load started in setUpTests.
-//
-//   When every synchronous loaded document has completed,
-//      the page status is changed which allows the
-//      body of the test to be executed.
-function loadComplete() {
-    if (++docsLoaded == 2) {
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-/**
-* 
-Attempt to append a node from another document to an attribute which should result
-in a WRONG_DOCUMENT_ERR.
-
-* @author Curt Arnold
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-184E7107
-*/
-function hc_attrappendchild5() {
-   var success;
-    if(checkInitialization(builder, "hc_attrappendchild5") != null) return;
-    var doc;
-      var acronymList;
-      var testNode;
-      var attributes;
-      var titleAttr;
-      var value;
-      var textNode;
-      var retval;
-      var lastChild;
-      var otherDoc;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      doc = load(docRef, "doc", "hc_staff");
-      
-      var otherDocRef = null;
-      if (typeof(this.otherDoc) != 'undefined') {
-        otherDocRef = this.otherDoc;
-      }
-      otherDoc = load(otherDocRef, "otherDoc", "hc_staff");
-      acronymList = doc.getElementsByTagName("acronym");
-      testNode = acronymList.item(3);
-      attributes = testNode.attributes;
-
-      titleAttr = attributes.getNamedItem("title");
-      textNode = otherDoc.createTextNode("terday");
-      
-       {
-               success = false;
-               try {
-            retval = titleAttr.appendChild(textNode);
-        }
-               catch(ex) {
-      success = (typeof(ex.code) != 'undefined' && ex.code == 4);
-               }
-               assertTrue("throw_WRONG_DOCUMENT_ERR",success);
-       }
-
-}
-
-
-
-
-function runTest() {
-   hc_attrappendchild5();
-}
diff --git a/LayoutTests/dom/xhtml/level1/core/hc_attrappendchild5.xhtml b/LayoutTests/dom/xhtml/level1/core/hc_attrappendchild5.xhtml
deleted file mode 100644 (file)
index 6227713..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-<?xml version="1.0"?><?TEST-STYLE PIDATA?>
-<!DOCTYPE html
-   PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-   "xhtml1-strict.dtd" [
-   <!ENTITY alpha "&#945;">
-   <!ENTITY beta "&#946;">
-   <!ENTITY gamma "&#947;">
-   <!ENTITY delta "&#948;">
-   <!ENTITY epsilon "&#949;">
-   <!ENTITY alpha "&#950;">
-   <!NOTATION notation1 PUBLIC "notation1File">
-   <!NOTATION notation2 SYSTEM "notation2File">
-   <!ATTLIST acronym dir CDATA "ltr">
-]>
-<!-- This is comment number 1.-->
-<html xmlns='http://www.w3.org/1999/xhtml'><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><title>hc_staff</title><script type="text/javascript" src="selfxhtml.js"/><script  charset="UTF-8" type="text/javascript" src="hc_attrappendchild5.js"/><script type='text/javascript'>function loadComplete() { startTest(); }</script></head><body onload="loadComplete()">
- <p>
-  <em>EMP0001</em>
-  <strong>Margaret Martin</strong>
-  <code>Accountant</code>           
-  <sup>56,000</sup>
-  <var>Female</var>
-  <acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym>
- </p>
- <p>
-  <em>EMP0002</em>
-  <strong>Martha RaynoldsThis is a CDATASection with EntityReference number 2 &amp;ent2;
-This is an adjacent CDATASection with a reference to a tab &amp;tab;</strong>
-  <code>Secretary</code>
-  <sup>35,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Yes">&beta; Dallas, &gamma;
- 98554</acronym>
- </p>
- <p>
-  <em>EMP0003</em>
-  <strong>Roger
- Jones</strong>
-  <code>Department Manager</code>
-  <sup>100,000</sup>
-  <var>&delta;</var>
-  <acronym title="Yes" class="No">PO Box 27 Irving, texas 98553</acronym>
- </p>
- <p>
-  <em>EMP0004</em>
-  <strong>Jeny Oconnor</strong>
-  <code>Personnel Director</code>
-  <sup>95,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Y&alpha;">27 South Road. Dallas, Texas 98556</acronym>
- </p>
- <p>
-  <em>EMP0005</em>
-  <strong>Robert Myers</strong>
-  <code>Computer Specialist</code>
-  <sup>90,000</sup>
-  <var>male</var>
-  <acronym title="Yes">1821 Nordic. Road, Irving Texas 98558</acronym>
- </p>
-</body></html>
diff --git a/LayoutTests/dom/xhtml/level1/core/hc_attrappendchild6-expected.txt b/LayoutTests/dom/xhtml/level1/core/hc_attrappendchild6-expected.txt
deleted file mode 100644 (file)
index a1a17e4..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-Test   http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrappendchild6
-Status Success
diff --git a/LayoutTests/dom/xhtml/level1/core/hc_attrappendchild6.js b/LayoutTests/dom/xhtml/level1/core/hc_attrappendchild6.js
deleted file mode 100644 (file)
index 01b3d80..0000000
+++ /dev/null
@@ -1,127 +0,0 @@
-
-/*
-Copyright Â© 2001-2004 World Wide Web Consortium, 
-(Massachusetts Institute of Technology, European Research Consortium 
-for Informatics and Mathematics, Keio University). All 
-Rights Reserved. This work is distributed under the W3C® Software License [1] 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. 
-
-[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
-*/
-
-
-
-   /**
-    *  Gets URI that identifies the test.
-    *  @return uri identifier of test
-    */
-function getTargetURI() {
-      return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrappendchild6";
-   }
-
-var docsLoaded = -1000000;
-var builder = null;
-
-//
-//   This function is called by the testing framework before
-//      running the test suite.
-//
-//   If there are no configuration exceptions, asynchronous
-//        document loading is started.  Otherwise, the status
-//        is set to complete and the exception is immediately
-//        raised when entering the body of the test.
-//
-function setUpPage() {
-   setUpPageStatus = 'running';
-   try {
-     //
-     //   creates test document builder, may throw exception
-     //
-     builder = createConfiguredBuilder();
-
-      docsLoaded = 0;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      docsLoaded += preload(docRef, "doc", "hc_staff");
-        
-       if (docsLoaded == 1) {
-          setUpPageStatus = 'complete';
-       }
-    } catch(ex) {
-       catchInitializationError(builder, ex);
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-
-//
-//   This method is called on the completion of 
-//      each asychronous load started in setUpTests.
-//
-//   When every synchronous loaded document has completed,
-//      the page status is changed which allows the
-//      body of the test to be executed.
-function loadComplete() {
-    if (++docsLoaded == 1) {
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-/**
-* 
-Creates an new attribute node and appends a text node.
-
-* @author Curt Arnold
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-184E7107
-*/
-function hc_attrappendchild6() {
-   var success;
-    if(checkInitialization(builder, "hc_attrappendchild6") != null) return;
-    var doc;
-      var acronymList;
-      var testNode;
-      var attributes;
-      var titleAttr;
-      var value;
-      var textNode;
-      var retval;
-      var lastChild;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      doc = load(docRef, "doc", "hc_staff");
-      titleAttr = doc.createAttribute("title");
-      textNode = doc.createTextNode("Yesterday");
-      retval = titleAttr.appendChild(textNode);
-      value = titleAttr.value;
-
-      assertEquals("attrValue","Yesterday",value);
-       value = titleAttr.nodeValue;
-
-      assertEquals("attrNodeValue","Yesterday",value);
-       value = retval.nodeValue;
-
-      assertEquals("retvalValue","Yesterday",value);
-       lastChild = titleAttr.lastChild;
-
-      value = lastChild.nodeValue;
-
-      assertEquals("lastChildValue","Yesterday",value);
-       
-}
-
-
-
-
-function runTest() {
-   hc_attrappendchild6();
-}
diff --git a/LayoutTests/dom/xhtml/level1/core/hc_attrappendchild6.xhtml b/LayoutTests/dom/xhtml/level1/core/hc_attrappendchild6.xhtml
deleted file mode 100644 (file)
index e42ab84..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-<?xml version="1.0"?><?TEST-STYLE PIDATA?>
-<!DOCTYPE html
-   PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-   "xhtml1-strict.dtd" [
-   <!ENTITY alpha "&#945;">
-   <!ENTITY beta "&#946;">
-   <!ENTITY gamma "&#947;">
-   <!ENTITY delta "&#948;">
-   <!ENTITY epsilon "&#949;">
-   <!ENTITY alpha "&#950;">
-   <!NOTATION notation1 PUBLIC "notation1File">
-   <!NOTATION notation2 SYSTEM "notation2File">
-   <!ATTLIST acronym dir CDATA "ltr">
-]>
-<!-- This is comment number 1.-->
-<html xmlns='http://www.w3.org/1999/xhtml'><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><title>hc_staff</title><script type="text/javascript" src="selfxhtml.js"/><script  charset="UTF-8" type="text/javascript" src="hc_attrappendchild6.js"/><script type='text/javascript'>function loadComplete() { startTest(); }</script></head><body onload="loadComplete()">
- <p>
-  <em>EMP0001</em>
-  <strong>Margaret Martin</strong>
-  <code>Accountant</code>           
-  <sup>56,000</sup>
-  <var>Female</var>
-  <acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym>
- </p>
- <p>
-  <em>EMP0002</em>
-  <strong>Martha RaynoldsThis is a CDATASection with EntityReference number 2 &amp;ent2;
-This is an adjacent CDATASection with a reference to a tab &amp;tab;</strong>
-  <code>Secretary</code>
-  <sup>35,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Yes">&beta; Dallas, &gamma;
- 98554</acronym>
- </p>
- <p>
-  <em>EMP0003</em>
-  <strong>Roger
- Jones</strong>
-  <code>Department Manager</code>
-  <sup>100,000</sup>
-  <var>&delta;</var>
-  <acronym title="Yes" class="No">PO Box 27 Irving, texas 98553</acronym>
- </p>
- <p>
-  <em>EMP0004</em>
-  <strong>Jeny Oconnor</strong>
-  <code>Personnel Director</code>
-  <sup>95,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Y&alpha;">27 South Road. Dallas, Texas 98556</acronym>
- </p>
- <p>
-  <em>EMP0005</em>
-  <strong>Robert Myers</strong>
-  <code>Computer Specialist</code>
-  <sup>90,000</sup>
-  <var>male</var>
-  <acronym title="Yes">1821 Nordic. Road, Irving Texas 98558</acronym>
- </p>
-</body></html>
diff --git a/LayoutTests/dom/xhtml/level1/core/hc_attrchildnodes1-expected.txt b/LayoutTests/dom/xhtml/level1/core/hc_attrchildnodes1-expected.txt
deleted file mode 100644 (file)
index eee7614..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-Test   http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrchildnodes1
-Status Success
diff --git a/LayoutTests/dom/xhtml/level1/core/hc_attrchildnodes1.js b/LayoutTests/dom/xhtml/level1/core/hc_attrchildnodes1.js
deleted file mode 100644 (file)
index ac088f4..0000000
+++ /dev/null
@@ -1,124 +0,0 @@
-
-/*
-Copyright Â© 2001-2004 World Wide Web Consortium, 
-(Massachusetts Institute of Technology, European Research Consortium 
-for Informatics and Mathematics, Keio University). All 
-Rights Reserved. This work is distributed under the W3C® Software License [1] 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. 
-
-[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
-*/
-
-
-
-   /**
-    *  Gets URI that identifies the test.
-    *  @return uri identifier of test
-    */
-function getTargetURI() {
-      return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrchildnodes1";
-   }
-
-var docsLoaded = -1000000;
-var builder = null;
-
-//
-//   This function is called by the testing framework before
-//      running the test suite.
-//
-//   If there are no configuration exceptions, asynchronous
-//        document loading is started.  Otherwise, the status
-//        is set to complete and the exception is immediately
-//        raised when entering the body of the test.
-//
-function setUpPage() {
-   setUpPageStatus = 'running';
-   try {
-     //
-     //   creates test document builder, may throw exception
-     //
-     builder = createConfiguredBuilder();
-
-      docsLoaded = 0;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      docsLoaded += preload(docRef, "doc", "hc_staff");
-        
-       if (docsLoaded == 1) {
-          setUpPageStatus = 'complete';
-       }
-    } catch(ex) {
-       catchInitializationError(builder, ex);
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-
-//
-//   This method is called on the completion of 
-//      each asychronous load started in setUpTests.
-//
-//   When every synchronous loaded document has completed,
-//      the page status is changed which allows the
-//      body of the test to be executed.
-function loadComplete() {
-    if (++docsLoaded == 1) {
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-/**
-* 
-Checks that Node.childNodes for an attribute node contains
-the expected text node.
-
-* @author Curt Arnold
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1451460987
-*/
-function hc_attrchildnodes1() {
-   var success;
-    if(checkInitialization(builder, "hc_attrchildnodes1") != null) return;
-    var doc;
-      var acronymList;
-      var testNode;
-      var attributes;
-      var titleAttr;
-      var value;
-      var textNode;
-      var childNodes;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      doc = load(docRef, "doc", "hc_staff");
-      acronymList = doc.getElementsByTagName("acronym");
-      testNode = acronymList.item(3);
-      attributes = testNode.attributes;
-
-      titleAttr = attributes.getNamedItem("title");
-      childNodes = titleAttr.childNodes;
-
-      assertSize("childNodesSize",1,childNodes);
-textNode = childNodes.item(0);
-      value = textNode.nodeValue;
-
-      assertEquals("child1IsYes","Yes",value);
-       textNode = childNodes.item(1);
-      assertNull("secondItemIsNull",textNode);
-    
-}
-
-
-
-
-function runTest() {
-   hc_attrchildnodes1();
-}
diff --git a/LayoutTests/dom/xhtml/level1/core/hc_attrchildnodes1.xhtml b/LayoutTests/dom/xhtml/level1/core/hc_attrchildnodes1.xhtml
deleted file mode 100644 (file)
index 3f552e6..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-<?xml version="1.0"?><?TEST-STYLE PIDATA?>
-<!DOCTYPE html
-   PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-   "xhtml1-strict.dtd" [
-   <!ENTITY alpha "&#945;">
-   <!ENTITY beta "&#946;">
-   <!ENTITY gamma "&#947;">
-   <!ENTITY delta "&#948;">
-   <!ENTITY epsilon "&#949;">
-   <!ENTITY alpha "&#950;">
-   <!NOTATION notation1 PUBLIC "notation1File">
-   <!NOTATION notation2 SYSTEM "notation2File">
-   <!ATTLIST acronym dir CDATA "ltr">
-]>
-<!-- This is comment number 1.-->
-<html xmlns='http://www.w3.org/1999/xhtml'><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><title>hc_staff</title><script type="text/javascript" src="selfxhtml.js"/><script  charset="UTF-8" type="text/javascript" src="hc_attrchildnodes1.js"/><script type='text/javascript'>function loadComplete() { startTest(); }</script></head><body onload="loadComplete()">
- <p>
-  <em>EMP0001</em>
-  <strong>Margaret Martin</strong>
-  <code>Accountant</code>           
-  <sup>56,000</sup>
-  <var>Female</var>
-  <acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym>
- </p>
- <p>
-  <em>EMP0002</em>
-  <strong>Martha RaynoldsThis is a CDATASection with EntityReference number 2 &amp;ent2;
-This is an adjacent CDATASection with a reference to a tab &amp;tab;</strong>
-  <code>Secretary</code>
-  <sup>35,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Yes">&beta; Dallas, &gamma;
- 98554</acronym>
- </p>
- <p>
-  <em>EMP0003</em>
-  <strong>Roger
- Jones</strong>
-  <code>Department Manager</code>
-  <sup>100,000</sup>
-  <var>&delta;</var>
-  <acronym title="Yes" class="No">PO Box 27 Irving, texas 98553</acronym>
- </p>
- <p>
-  <em>EMP0004</em>
-  <strong>Jeny Oconnor</strong>
-  <code>Personnel Director</code>
-  <sup>95,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Y&alpha;">27 South Road. Dallas, Texas 98556</acronym>
- </p>
- <p>
-  <em>EMP0005</em>
-  <strong>Robert Myers</strong>
-  <code>Computer Specialist</code>
-  <sup>90,000</sup>
-  <var>male</var>
-  <acronym title="Yes">1821 Nordic. Road, Irving Texas 98558</acronym>
- </p>
-</body></html>
diff --git a/LayoutTests/dom/xhtml/level1/core/hc_attrchildnodes2-expected.txt b/LayoutTests/dom/xhtml/level1/core/hc_attrchildnodes2-expected.txt
deleted file mode 100644 (file)
index 78b5622..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-Test   http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrchildnodes2
-Status Success
diff --git a/LayoutTests/dom/xhtml/level1/core/hc_attrchildnodes2.js b/LayoutTests/dom/xhtml/level1/core/hc_attrchildnodes2.js
deleted file mode 100644 (file)
index c6c6cd5..0000000
+++ /dev/null
@@ -1,130 +0,0 @@
-
-/*
-Copyright Â© 2001-2004 World Wide Web Consortium, 
-(Massachusetts Institute of Technology, European Research Consortium 
-for Informatics and Mathematics, Keio University). All 
-Rights Reserved. This work is distributed under the W3C® Software License [1] 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. 
-
-[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
-*/
-
-
-
-   /**
-    *  Gets URI that identifies the test.
-    *  @return uri identifier of test
-    */
-function getTargetURI() {
-      return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrchildnodes2";
-   }
-
-var docsLoaded = -1000000;
-var builder = null;
-
-//
-//   This function is called by the testing framework before
-//      running the test suite.
-//
-//   If there are no configuration exceptions, asynchronous
-//        document loading is started.  Otherwise, the status
-//        is set to complete and the exception is immediately
-//        raised when entering the body of the test.
-//
-function setUpPage() {
-   setUpPageStatus = 'running';
-   try {
-     //
-     //   creates test document builder, may throw exception
-     //
-     builder = createConfiguredBuilder();
-
-      docsLoaded = 0;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      docsLoaded += preload(docRef, "doc", "hc_staff");
-        
-       if (docsLoaded == 1) {
-          setUpPageStatus = 'complete';
-       }
-    } catch(ex) {
-       catchInitializationError(builder, ex);
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-
-//
-//   This method is called on the completion of 
-//      each asychronous load started in setUpTests.
-//
-//   When every synchronous loaded document has completed,
-//      the page status is changed which allows the
-//      body of the test to be executed.
-function loadComplete() {
-    if (++docsLoaded == 1) {
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-/**
-* 
-Checks Node.childNodes for an attribute with multiple child nodes.
-
-* @author Curt Arnold
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1451460987
-*/
-function hc_attrchildnodes2() {
-   var success;
-    if(checkInitialization(builder, "hc_attrchildnodes2") != null) return;
-    var doc;
-      var acronymList;
-      var testNode;
-      var attributes;
-      var titleAttr;
-      var value;
-      var textNode;
-      var childNodes;
-      var retval;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      doc = load(docRef, "doc", "hc_staff");
-      acronymList = doc.getElementsByTagName("acronym");
-      testNode = acronymList.item(3);
-      attributes = testNode.attributes;
-
-      titleAttr = attributes.getNamedItem("title");
-      childNodes = titleAttr.childNodes;
-
-      textNode = doc.createTextNode("terday");
-      retval = titleAttr.appendChild(textNode);
-      assertSize("childNodesSize",2,childNodes);
-textNode = childNodes.item(0);
-      value = textNode.nodeValue;
-
-      assertEquals("child1IsYes","Yes",value);
-       textNode = childNodes.item(1);
-      value = textNode.nodeValue;
-
-      assertEquals("child2IsTerday","terday",value);
-       textNode = childNodes.item(2);
-      assertNull("thirdItemIsNull",textNode);
-    
-}
-
-
-
-
-function runTest() {
-   hc_attrchildnodes2();
-}
diff --git a/LayoutTests/dom/xhtml/level1/core/hc_attrchildnodes2.xhtml b/LayoutTests/dom/xhtml/level1/core/hc_attrchildnodes2.xhtml
deleted file mode 100644 (file)
index b46083b..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-<?xml version="1.0"?><?TEST-STYLE PIDATA?>
-<!DOCTYPE html
-   PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-   "xhtml1-strict.dtd" [
-   <!ENTITY alpha "&#945;">
-   <!ENTITY beta "&#946;">
-   <!ENTITY gamma "&#947;">
-   <!ENTITY delta "&#948;">
-   <!ENTITY epsilon "&#949;">
-   <!ENTITY alpha "&#950;">
-   <!NOTATION notation1 PUBLIC "notation1File">
-   <!NOTATION notation2 SYSTEM "notation2File">
-   <!ATTLIST acronym dir CDATA "ltr">
-]>
-<!-- This is comment number 1.-->
-<html xmlns='http://www.w3.org/1999/xhtml'><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><title>hc_staff</title><script type="text/javascript" src="selfxhtml.js"/><script  charset="UTF-8" type="text/javascript" src="hc_attrchildnodes2.js"/><script type='text/javascript'>function loadComplete() { startTest(); }</script></head><body onload="loadComplete()">
- <p>
-  <em>EMP0001</em>
-  <strong>Margaret Martin</strong>
-  <code>Accountant</code>           
-  <sup>56,000</sup>
-  <var>Female</var>
-  <acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym>
- </p>
- <p>
-  <em>EMP0002</em>
-  <strong>Martha RaynoldsThis is a CDATASection with EntityReference number 2 &amp;ent2;
-This is an adjacent CDATASection with a reference to a tab &amp;tab;</strong>
-  <code>Secretary</code>
-  <sup>35,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Yes">&beta; Dallas, &gamma;
- 98554</acronym>
- </p>
- <p>
-  <em>EMP0003</em>
-  <strong>Roger
- Jones</strong>
-  <code>Department Manager</code>
-  <sup>100,000</sup>
-  <var>&delta;</var>
-  <acronym title="Yes" class="No">PO Box 27 Irving, texas 98553</acronym>
- </p>
- <p>
-  <em>EMP0004</em>
-  <strong>Jeny Oconnor</strong>
-  <code>Personnel Director</code>
-  <sup>95,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Y&alpha;">27 South Road. Dallas, Texas 98556</acronym>
- </p>
- <p>
-  <em>EMP0005</em>
-  <strong>Robert Myers</strong>
-  <code>Computer Specialist</code>
-  <sup>90,000</sup>
-  <var>male</var>
-  <acronym title="Yes">1821 Nordic. Road, Irving Texas 98558</acronym>
- </p>
-</body></html>
diff --git a/LayoutTests/dom/xhtml/level1/core/hc_attrclonenode1-expected.txt b/LayoutTests/dom/xhtml/level1/core/hc_attrclonenode1-expected.txt
deleted file mode 100644 (file)
index 13dc167..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-Test   http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrclonenode1
-Status Success
diff --git a/LayoutTests/dom/xhtml/level1/core/hc_attrclonenode1.js b/LayoutTests/dom/xhtml/level1/core/hc_attrclonenode1.js
deleted file mode 100644 (file)
index 7667e85..0000000
+++ /dev/null
@@ -1,132 +0,0 @@
-
-/*
-Copyright Â© 2001-2004 World Wide Web Consortium, 
-(Massachusetts Institute of Technology, European Research Consortium 
-for Informatics and Mathematics, Keio University). All 
-Rights Reserved. This work is distributed under the W3C® Software License [1] 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. 
-
-[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
-*/
-
-
-
-   /**
-    *  Gets URI that identifies the test.
-    *  @return uri identifier of test
-    */
-function getTargetURI() {
-      return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrclonenode1";
-   }
-
-var docsLoaded = -1000000;
-var builder = null;
-
-//
-//   This function is called by the testing framework before
-//      running the test suite.
-//
-//   If there are no configuration exceptions, asynchronous
-//        document loading is started.  Otherwise, the status
-//        is set to complete and the exception is immediately
-//        raised when entering the body of the test.
-//
-function setUpPage() {
-   setUpPageStatus = 'running';
-   try {
-     //
-     //   creates test document builder, may throw exception
-     //
-     builder = createConfiguredBuilder();
-
-      docsLoaded = 0;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      docsLoaded += preload(docRef, "doc", "hc_staff");
-        
-       if (docsLoaded == 1) {
-          setUpPageStatus = 'complete';
-       }
-    } catch(ex) {
-       catchInitializationError(builder, ex);
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-
-//
-//   This method is called on the completion of 
-//      each asychronous load started in setUpTests.
-//
-//   When every synchronous loaded document has completed,
-//      the page status is changed which allows the
-//      body of the test to be executed.
-function loadComplete() {
-    if (++docsLoaded == 1) {
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-/**
-* 
-Appends a text node to an attribute and clones the node.
-
-* @author Curt Arnold
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-3A0ED0A4
-*/
-function hc_attrclonenode1() {
-   var success;
-    if(checkInitialization(builder, "hc_attrclonenode1") != null) return;
-    var doc;
-      var acronymList;
-      var testNode;
-      var attributes;
-      var titleAttr;
-      var value;
-      var textNode;
-      var retval;
-      var lastChild;
-      var clonedTitle;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      doc = load(docRef, "doc", "hc_staff");
-      acronymList = doc.getElementsByTagName("acronym");
-      testNode = acronymList.item(3);
-      attributes = testNode.attributes;
-
-      titleAttr = attributes.getNamedItem("title");
-      textNode = doc.createTextNode("terday");
-      retval = titleAttr.appendChild(textNode);
-      clonedTitle = titleAttr.cloneNode(false);
-      textNode.nodeValue = "text_node_not_cloned";
-
-      value = clonedTitle.value;
-
-      assertEquals("attrValue","Yesterday",value);
-       value = clonedTitle.nodeValue;
-
-      assertEquals("attrNodeValue","Yesterday",value);
-       lastChild = clonedTitle.lastChild;
-
-      value = lastChild.nodeValue;
-
-      assertEquals("lastChildValue","terday",value);
-       
-}
-
-
-
-
-function runTest() {
-   hc_attrclonenode1();
-}
diff --git a/LayoutTests/dom/xhtml/level1/core/hc_attrclonenode1.xhtml b/LayoutTests/dom/xhtml/level1/core/hc_attrclonenode1.xhtml
deleted file mode 100644 (file)
index b068421..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-<?xml version="1.0"?><?TEST-STYLE PIDATA?>
-<!DOCTYPE html
-   PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-   "xhtml1-strict.dtd" [
-   <!ENTITY alpha "&#945;">
-   <!ENTITY beta "&#946;">
-   <!ENTITY gamma "&#947;">
-   <!ENTITY delta "&#948;">
-   <!ENTITY epsilon "&#949;">
-   <!ENTITY alpha "&#950;">
-   <!NOTATION notation1 PUBLIC "notation1File">
-   <!NOTATION notation2 SYSTEM "notation2File">
-   <!ATTLIST acronym dir CDATA "ltr">
-]>
-<!-- This is comment number 1.-->
-<html xmlns='http://www.w3.org/1999/xhtml'><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><title>hc_staff</title><script type="text/javascript" src="selfxhtml.js"/><script  charset="UTF-8" type="text/javascript" src="hc_attrclonenode1.js"/><script type='text/javascript'>function loadComplete() { startTest(); }</script></head><body onload="loadComplete()">
- <p>
-  <em>EMP0001</em>
-  <strong>Margaret Martin</strong>
-  <code>Accountant</code>           
-  <sup>56,000</sup>
-  <var>Female</var>
-  <acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym>
- </p>
- <p>
-  <em>EMP0002</em>
-  <strong>Martha RaynoldsThis is a CDATASection with EntityReference number 2 &amp;ent2;
-This is an adjacent CDATASection with a reference to a tab &amp;tab;</strong>
-  <code>Secretary</code>
-  <sup>35,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Yes">&beta; Dallas, &gamma;
- 98554</acronym>
- </p>
- <p>
-  <em>EMP0003</em>
-  <strong>Roger
- Jones</strong>
-  <code>Department Manager</code>
-  <sup>100,000</sup>
-  <var>&delta;</var>
-  <acronym title="Yes" class="No">PO Box 27 Irving, texas 98553</acronym>
- </p>
- <p>
-  <em>EMP0004</em>
-  <strong>Jeny Oconnor</strong>
-  <code>Personnel Director</code>
-  <sup>95,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Y&alpha;">27 South Road. Dallas, Texas 98556</acronym>
- </p>
- <p>
-  <em>EMP0005</em>
-  <strong>Robert Myers</strong>
-  <code>Computer Specialist</code>
-  <sup>90,000</sup>
-  <var>male</var>
-  <acronym title="Yes">1821 Nordic. Road, Irving Texas 98558</acronym>
- </p>
-</body></html>
diff --git a/LayoutTests/dom/xhtml/level1/core/hc_attrfirstchild-expected.txt b/LayoutTests/dom/xhtml/level1/core/hc_attrfirstchild-expected.txt
deleted file mode 100644 (file)
index ba2ab32..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-Test   http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrfirstchild
-Status Success
diff --git a/LayoutTests/dom/xhtml/level1/core/hc_attrfirstchild.js b/LayoutTests/dom/xhtml/level1/core/hc_attrfirstchild.js
deleted file mode 100644 (file)
index 68f8b52..0000000
+++ /dev/null
@@ -1,127 +0,0 @@
-
-/*
-Copyright Â© 2001-2004 World Wide Web Consortium, 
-(Massachusetts Institute of Technology, European Research Consortium 
-for Informatics and Mathematics, Keio University). All 
-Rights Reserved. This work is distributed under the W3C® Software License [1] 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. 
-
-[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
-*/
-
-
-
-   /**
-    *  Gets URI that identifies the test.
-    *  @return uri identifier of test
-    */
-function getTargetURI() {
-      return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrfirstchild";
-   }
-
-var docsLoaded = -1000000;
-var builder = null;
-
-//
-//   This function is called by the testing framework before
-//      running the test suite.
-//
-//   If there are no configuration exceptions, asynchronous
-//        document loading is started.  Otherwise, the status
-//        is set to complete and the exception is immediately
-//        raised when entering the body of the test.
-//
-function setUpPage() {
-   setUpPageStatus = 'running';
-   try {
-     //
-     //   creates test document builder, may throw exception
-     //
-     builder = createConfiguredBuilder();
-
-      docsLoaded = 0;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      docsLoaded += preload(docRef, "doc", "hc_staff");
-        
-       if (docsLoaded == 1) {
-          setUpPageStatus = 'complete';
-       }
-    } catch(ex) {
-       catchInitializationError(builder, ex);
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-
-//
-//   This method is called on the completion of 
-//      each asychronous load started in setUpTests.
-//
-//   When every synchronous loaded document has completed,
-//      the page status is changed which allows the
-//      body of the test to be executed.
-function loadComplete() {
-    if (++docsLoaded == 1) {
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-/**
-* 
-Checks that Node.firstChild for an attribute node contains
-the expected text node.
-
-* @author Curt Arnold
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-169727388
-*/
-function hc_attrfirstchild() {
-   var success;
-    if(checkInitialization(builder, "hc_attrfirstchild") != null) return;
-    var doc;
-      var acronymList;
-      var testNode;
-      var attributes;
-      var titleAttr;
-      var value;
-      var textNode;
-      var otherChild;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      doc = load(docRef, "doc", "hc_staff");
-      acronymList = doc.getElementsByTagName("acronym");
-      testNode = acronymList.item(3);
-      attributes = testNode.attributes;
-
-      titleAttr = attributes.getNamedItem("title");
-      textNode = titleAttr.firstChild;
-
-      assertNotNull("textNodeNotNull",textNode);
-value = textNode.nodeValue;
-
-      assertEquals("child1IsYes","Yes",value);
-       otherChild = textNode.nextSibling;
-
-      assertNull("nextSiblingIsNull",otherChild);
-    otherChild = textNode.previousSibling;
-
-      assertNull("previousSiblingIsNull",otherChild);
-    
-}
-
-
-
-
-function runTest() {
-   hc_attrfirstchild();
-}
diff --git a/LayoutTests/dom/xhtml/level1/core/hc_attrfirstchild.xhtml b/LayoutTests/dom/xhtml/level1/core/hc_attrfirstchild.xhtml
deleted file mode 100644 (file)
index 5641a7b..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-<?xml version="1.0"?><?TEST-STYLE PIDATA?>
-<!DOCTYPE html
-   PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-   "xhtml1-strict.dtd" [
-   <!ENTITY alpha "&#945;">
-   <!ENTITY beta "&#946;">
-   <!ENTITY gamma "&#947;">
-   <!ENTITY delta "&#948;">
-   <!ENTITY epsilon "&#949;">
-   <!ENTITY alpha "&#950;">
-   <!NOTATION notation1 PUBLIC "notation1File">
-   <!NOTATION notation2 SYSTEM "notation2File">
-   <!ATTLIST acronym dir CDATA "ltr">
-]>
-<!-- This is comment number 1.-->
-<html xmlns='http://www.w3.org/1999/xhtml'><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><title>hc_staff</title><script type="text/javascript" src="selfxhtml.js"/><script  charset="UTF-8" type="text/javascript" src="hc_attrfirstchild.js"/><script type='text/javascript'>function loadComplete() { startTest(); }</script></head><body onload="loadComplete()">
- <p>
-  <em>EMP0001</em>
-  <strong>Margaret Martin</strong>
-  <code>Accountant</code>           
-  <sup>56,000</sup>
-  <var>Female</var>
-  <acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym>
- </p>
- <p>
-  <em>EMP0002</em>
-  <strong>Martha RaynoldsThis is a CDATASection with EntityReference number 2 &amp;ent2;
-This is an adjacent CDATASection with a reference to a tab &amp;tab;</strong>
-  <code>Secretary</code>
-  <sup>35,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Yes">&beta; Dallas, &gamma;
- 98554</acronym>
- </p>
- <p>
-  <em>EMP0003</em>
-  <strong>Roger
- Jones</strong>
-  <code>Department Manager</code>
-  <sup>100,000</sup>
-  <var>&delta;</var>
-  <acronym title="Yes" class="No">PO Box 27 Irving, texas 98553</acronym>
- </p>
- <p>
-  <em>EMP0004</em>
-  <strong>Jeny Oconnor</strong>
-  <code>Personnel Director</code>
-  <sup>95,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Y&alpha;">27 South Road. Dallas, Texas 98556</acronym>
- </p>
- <p>
-  <em>EMP0005</em>
-  <strong>Robert Myers</strong>
-  <code>Computer Specialist</code>
-  <sup>90,000</sup>
-  <var>male</var>
-  <acronym title="Yes">1821 Nordic. Road, Irving Texas 98558</acronym>
- </p>
-</body></html>
diff --git a/LayoutTests/dom/xhtml/level1/core/hc_attrhaschildnodes-expected.txt b/LayoutTests/dom/xhtml/level1/core/hc_attrhaschildnodes-expected.txt
deleted file mode 100644 (file)
index 333e073..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-Test   http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrhaschildnodes
-Status Success
diff --git a/LayoutTests/dom/xhtml/level1/core/hc_attrhaschildnodes.js b/LayoutTests/dom/xhtml/level1/core/hc_attrhaschildnodes.js
deleted file mode 100644 (file)
index 71487c3..0000000
+++ /dev/null
@@ -1,114 +0,0 @@
-
-/*
-Copyright Â© 2001-2004 World Wide Web Consortium, 
-(Massachusetts Institute of Technology, European Research Consortium 
-for Informatics and Mathematics, Keio University). All 
-Rights Reserved. This work is distributed under the W3C® Software License [1] 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. 
-
-[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
-*/
-
-
-
-   /**
-    *  Gets URI that identifies the test.
-    *  @return uri identifier of test
-    */
-function getTargetURI() {
-      return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrhaschildnodes";
-   }
-
-var docsLoaded = -1000000;
-var builder = null;
-
-//
-//   This function is called by the testing framework before
-//      running the test suite.
-//
-//   If there are no configuration exceptions, asynchronous
-//        document loading is started.  Otherwise, the status
-//        is set to complete and the exception is immediately
-//        raised when entering the body of the test.
-//
-function setUpPage() {
-   setUpPageStatus = 'running';
-   try {
-     //
-     //   creates test document builder, may throw exception
-     //
-     builder = createConfiguredBuilder();
-
-      docsLoaded = 0;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      docsLoaded += preload(docRef, "doc", "hc_staff");
-        
-       if (docsLoaded == 1) {
-          setUpPageStatus = 'complete';
-       }
-    } catch(ex) {
-       catchInitializationError(builder, ex);
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-
-//
-//   This method is called on the completion of 
-//      each asychronous load started in setUpTests.
-//
-//   When every synchronous loaded document has completed,
-//      the page status is changed which allows the
-//      body of the test to be executed.
-function loadComplete() {
-    if (++docsLoaded == 1) {
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-/**
-* 
-Checks that Node.hasChildNodes() is true for an attribute with content.
-
-* @author Curt Arnold
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-810594187
-*/
-function hc_attrhaschildnodes() {
-   var success;
-    if(checkInitialization(builder, "hc_attrhaschildnodes") != null) return;
-    var doc;
-      var acronymList;
-      var testNode;
-      var attributes;
-      var titleAttr;
-      var hasChildNodes;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      doc = load(docRef, "doc", "hc_staff");
-      acronymList = doc.getElementsByTagName("acronym");
-      testNode = acronymList.item(3);
-      attributes = testNode.attributes;
-
-      titleAttr = attributes.getNamedItem("title");
-      hasChildNodes = titleAttr.hasChildNodes();
-      assertTrue("hasChildrenIsTrue",hasChildNodes);
-
-}
-
-
-
-
-function runTest() {
-   hc_attrhaschildnodes();
-}
diff --git a/LayoutTests/dom/xhtml/level1/core/hc_attrhaschildnodes.xhtml b/LayoutTests/dom/xhtml/level1/core/hc_attrhaschildnodes.xhtml
deleted file mode 100644 (file)
index c3fd476..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-<?xml version="1.0"?><?TEST-STYLE PIDATA?>
-<!DOCTYPE html
-   PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-   "xhtml1-strict.dtd" [
-   <!ENTITY alpha "&#945;">
-   <!ENTITY beta "&#946;">
-   <!ENTITY gamma "&#947;">
-   <!ENTITY delta "&#948;">
-   <!ENTITY epsilon "&#949;">
-   <!ENTITY alpha "&#950;">
-   <!NOTATION notation1 PUBLIC "notation1File">
-   <!NOTATION notation2 SYSTEM "notation2File">
-   <!ATTLIST acronym dir CDATA "ltr">
-]>
-<!-- This is comment number 1.-->
-<html xmlns='http://www.w3.org/1999/xhtml'><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><title>hc_staff</title><script type="text/javascript" src="selfxhtml.js"/><script  charset="UTF-8" type="text/javascript" src="hc_attrhaschildnodes.js"/><script type='text/javascript'>function loadComplete() { startTest(); }</script></head><body onload="loadComplete()">
- <p>
-  <em>EMP0001</em>
-  <strong>Margaret Martin</strong>
-  <code>Accountant</code>           
-  <sup>56,000</sup>
-  <var>Female</var>
-  <acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym>
- </p>
- <p>
-  <em>EMP0002</em>
-  <strong>Martha RaynoldsThis is a CDATASection with EntityReference number 2 &amp;ent2;
-This is an adjacent CDATASection with a reference to a tab &amp;tab;</strong>
-  <code>Secretary</code>
-  <sup>35,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Yes">&beta; Dallas, &gamma;
- 98554</acronym>
- </p>
- <p>
-  <em>EMP0003</em>
-  <strong>Roger
- Jones</strong>
-  <code>Department Manager</code>
-  <sup>100,000</sup>
-  <var>&delta;</var>
-  <acronym title="Yes" class="No">PO Box 27 Irving, texas 98553</acronym>
- </p>
- <p>
-  <em>EMP0004</em>
-  <strong>Jeny Oconnor</strong>
-  <code>Personnel Director</code>
-  <sup>95,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Y&alpha;">27 South Road. Dallas, Texas 98556</acronym>
- </p>
- <p>
-  <em>EMP0005</em>
-  <strong>Robert Myers</strong>
-  <code>Computer Specialist</code>
-  <sup>90,000</sup>
-  <var>male</var>
-  <acronym title="Yes">1821 Nordic. Road, Irving Texas 98558</acronym>
- </p>
-</body></html>
diff --git a/LayoutTests/dom/xhtml/level1/core/hc_attrinsertbefore1-expected.txt b/LayoutTests/dom/xhtml/level1/core/hc_attrinsertbefore1-expected.txt
deleted file mode 100644 (file)
index 0a5c047..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-Test   http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrinsertbefore1
-Status Success
diff --git a/LayoutTests/dom/xhtml/level1/core/hc_attrinsertbefore1.js b/LayoutTests/dom/xhtml/level1/core/hc_attrinsertbefore1.js
deleted file mode 100644 (file)
index 89aa99e..0000000
+++ /dev/null
@@ -1,140 +0,0 @@
-
-/*
-Copyright Â© 2001-2004 World Wide Web Consortium, 
-(Massachusetts Institute of Technology, European Research Consortium 
-for Informatics and Mathematics, Keio University). All 
-Rights Reserved. This work is distributed under the W3C® Software License [1] 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. 
-
-[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
-*/
-
-
-
-   /**
-    *  Gets URI that identifies the test.
-    *  @return uri identifier of test
-    */
-function getTargetURI() {
-      return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrinsertbefore1";
-   }
-
-var docsLoaded = -1000000;
-var builder = null;
-
-//
-//   This function is called by the testing framework before
-//      running the test suite.
-//
-//   If there are no configuration exceptions, asynchronous
-//        document loading is started.  Otherwise, the status
-//        is set to complete and the exception is immediately
-//        raised when entering the body of the test.
-//
-function setUpPage() {
-   setUpPageStatus = 'running';
-   try {
-     //
-     //   creates test document builder, may throw exception
-     //
-     builder = createConfiguredBuilder();
-
-      docsLoaded = 0;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      docsLoaded += preload(docRef, "doc", "hc_staff");
-        
-       if (docsLoaded == 1) {
-          setUpPageStatus = 'complete';
-       }
-    } catch(ex) {
-       catchInitializationError(builder, ex);
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-
-//
-//   This method is called on the completion of 
-//      each asychronous load started in setUpTests.
-//
-//   When every synchronous loaded document has completed,
-//      the page status is changed which allows the
-//      body of the test to be executed.
-function loadComplete() {
-    if (++docsLoaded == 1) {
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-/**
-* 
-Appends a text node to an attribute and checks if the value of
-the attribute is changed.
-
-* @author Curt Arnold
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-952280727
-*/
-function hc_attrinsertbefore1() {
-   var success;
-    if(checkInitialization(builder, "hc_attrinsertbefore1") != null) return;
-    var doc;
-      var acronymList;
-      var testNode;
-      var attributes;
-      var titleAttr;
-      var value;
-      var textNode;
-      var retval;
-      var firstChild;
-      var lastChild;
-      var refChild = null;
-
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      doc = load(docRef, "doc", "hc_staff");
-      acronymList = doc.getElementsByTagName("acronym");
-      testNode = acronymList.item(3);
-      attributes = testNode.attributes;
-
-      titleAttr = attributes.getNamedItem("title");
-      textNode = doc.createTextNode("terday");
-      retval = titleAttr.insertBefore(textNode,refChild);
-      value = titleAttr.value;
-
-      assertEquals("attrValue","Yesterday",value);
-       value = titleAttr.nodeValue;
-
-      assertEquals("attrNodeValue","Yesterday",value);
-       value = retval.nodeValue;
-
-      assertEquals("retvalValue","terday",value);
-       firstChild = titleAttr.firstChild;
-
-      value = firstChild.nodeValue;
-
-      assertEquals("firstChildValue","Yes",value);
-       lastChild = titleAttr.lastChild;
-
-      value = lastChild.nodeValue;
-
-      assertEquals("lastChildValue","terday",value);
-       
-}
-
-
-
-
-function runTest() {
-   hc_attrinsertbefore1();
-}
diff --git a/LayoutTests/dom/xhtml/level1/core/hc_attrinsertbefore1.xhtml b/LayoutTests/dom/xhtml/level1/core/hc_attrinsertbefore1.xhtml
deleted file mode 100644 (file)
index 6bb5fa8..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-<?xml version="1.0"?><?TEST-STYLE PIDATA?>
-<!DOCTYPE html
-   PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-   "xhtml1-strict.dtd" [
-   <!ENTITY alpha "&#945;">
-   <!ENTITY beta "&#946;">
-   <!ENTITY gamma "&#947;">
-   <!ENTITY delta "&#948;">
-   <!ENTITY epsilon "&#949;">
-   <!ENTITY alpha "&#950;">
-   <!NOTATION notation1 PUBLIC "notation1File">
-   <!NOTATION notation2 SYSTEM "notation2File">
-   <!ATTLIST acronym dir CDATA "ltr">
-]>
-<!-- This is comment number 1.-->
-<html xmlns='http://www.w3.org/1999/xhtml'><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><title>hc_staff</title><script type="text/javascript" src="selfxhtml.js"/><script  charset="UTF-8" type="text/javascript" src="hc_attrinsertbefore1.js"/><script type='text/javascript'>function loadComplete() { startTest(); }</script></head><body onload="loadComplete()">
- <p>
-  <em>EMP0001</em>
-  <strong>Margaret Martin</strong>
-  <code>Accountant</code>           
-  <sup>56,000</sup>
-  <var>Female</var>
-  <acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym>
- </p>
- <p>
-  <em>EMP0002</em>
-  <strong>Martha RaynoldsThis is a CDATASection with EntityReference number 2 &amp;ent2;
-This is an adjacent CDATASection with a reference to a tab &amp;tab;</strong>
-  <code>Secretary</code>
-  <sup>35,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Yes">&beta; Dallas, &gamma;
- 98554</acronym>
- </p>
- <p>
-  <em>EMP0003</em>
-  <strong>Roger
- Jones</strong>
-  <code>Department Manager</code>
-  <sup>100,000</sup>
-  <var>&delta;</var>
-  <acronym title="Yes" class="No">PO Box 27 Irving, texas 98553</acronym>
- </p>
- <p>
-  <em>EMP0004</em>
-  <strong>Jeny Oconnor</strong>
-  <code>Personnel Director</code>
-  <sup>95,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Y&alpha;">27 South Road. Dallas, Texas 98556</acronym>
- </p>
- <p>
-  <em>EMP0005</em>
-  <strong>Robert Myers</strong>
-  <code>Computer Specialist</code>
-  <sup>90,000</sup>
-  <var>male</var>
-  <acronym title="Yes">1821 Nordic. Road, Irving Texas 98558</acronym>
- </p>
-</body></html>
diff --git a/LayoutTests/dom/xhtml/level1/core/hc_attrinsertbefore2-expected.txt b/LayoutTests/dom/xhtml/level1/core/hc_attrinsertbefore2-expected.txt
deleted file mode 100644 (file)
index 85cb9bc..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-Test   http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrinsertbefore2
-Status Success
diff --git a/LayoutTests/dom/xhtml/level1/core/hc_attrinsertbefore2.js b/LayoutTests/dom/xhtml/level1/core/hc_attrinsertbefore2.js
deleted file mode 100644 (file)
index cc4f50e..0000000
+++ /dev/null
@@ -1,141 +0,0 @@
-
-/*
-Copyright Â© 2001-2004 World Wide Web Consortium, 
-(Massachusetts Institute of Technology, European Research Consortium 
-for Informatics and Mathematics, Keio University). All 
-Rights Reserved. This work is distributed under the W3C® Software License [1] 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. 
-
-[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
-*/
-
-
-
-   /**
-    *  Gets URI that identifies the test.
-    *  @return uri identifier of test
-    */
-function getTargetURI() {
-      return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrinsertbefore2";
-   }
-
-var docsLoaded = -1000000;
-var builder = null;
-
-//
-//   This function is called by the testing framework before
-//      running the test suite.
-//
-//   If there are no configuration exceptions, asynchronous
-//        document loading is started.  Otherwise, the status
-//        is set to complete and the exception is immediately
-//        raised when entering the body of the test.
-//
-function setUpPage() {
-   setUpPageStatus = 'running';
-   try {
-     //
-     //   creates test document builder, may throw exception
-     //
-     builder = createConfiguredBuilder();
-
-      docsLoaded = 0;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      docsLoaded += preload(docRef, "doc", "hc_staff");
-        
-       if (docsLoaded == 1) {
-          setUpPageStatus = 'complete';
-       }
-    } catch(ex) {
-       catchInitializationError(builder, ex);
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-
-//
-//   This method is called on the completion of 
-//      each asychronous load started in setUpTests.
-//
-//   When every synchronous loaded document has completed,
-//      the page status is changed which allows the
-//      body of the test to be executed.
-function loadComplete() {
-    if (++docsLoaded == 1) {
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-/**
-* 
-Prepends a text node to an attribute and checks if the value of
-the attribute is changed.
-
-* @author Curt Arnold
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-952280727
-*/
-function hc_attrinsertbefore2() {
-   var success;
-    if(checkInitialization(builder, "hc_attrinsertbefore2") != null) return;
-    var doc;
-      var acronymList;
-      var testNode;
-      var attributes;
-      var titleAttr;
-      var value;
-      var textNode;
-      var retval;
-      var lastChild;
-      var firstChild;
-      var refChild;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      doc = load(docRef, "doc", "hc_staff");
-      acronymList = doc.getElementsByTagName("acronym");
-      testNode = acronymList.item(3);
-      attributes = testNode.attributes;
-
-      titleAttr = attributes.getNamedItem("title");
-      textNode = doc.createTextNode("terday");
-      refChild = titleAttr.firstChild;
-
-      retval = titleAttr.insertBefore(textNode,refChild);
-      value = titleAttr.value;
-
-      assertEquals("attrValue","terdayYes",value);
-       value = titleAttr.nodeValue;
-
-      assertEquals("attrNodeValue","terdayYes",value);
-       value = retval.nodeValue;
-
-      assertEquals("retvalValue","terday",value);
-       firstChild = titleAttr.firstChild;
-
-      value = firstChild.nodeValue;
-
-      assertEquals("firstChildValue","terday",value);
-       lastChild = titleAttr.lastChild;
-
-      value = lastChild.nodeValue;
-
-      assertEquals("lastChildValue","Yes",value);
-       
-}
-
-
-
-
-function runTest() {
-   hc_attrinsertbefore2();
-}
diff --git a/LayoutTests/dom/xhtml/level1/core/hc_attrinsertbefore2.xhtml b/LayoutTests/dom/xhtml/level1/core/hc_attrinsertbefore2.xhtml
deleted file mode 100644 (file)
index f41e5e5..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-<?xml version="1.0"?><?TEST-STYLE PIDATA?>
-<!DOCTYPE html
-   PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-   "xhtml1-strict.dtd" [
-   <!ENTITY alpha "&#945;">
-   <!ENTITY beta "&#946;">
-   <!ENTITY gamma "&#947;">
-   <!ENTITY delta "&#948;">
-   <!ENTITY epsilon "&#949;">
-   <!ENTITY alpha "&#950;">
-   <!NOTATION notation1 PUBLIC "notation1File">
-   <!NOTATION notation2 SYSTEM "notation2File">
-   <!ATTLIST acronym dir CDATA "ltr">
-]>
-<!-- This is comment number 1.-->
-<html xmlns='http://www.w3.org/1999/xhtml'><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><title>hc_staff</title><script type="text/javascript" src="selfxhtml.js"/><script  charset="UTF-8" type="text/javascript" src="hc_attrinsertbefore2.js"/><script type='text/javascript'>function loadComplete() { startTest(); }</script></head><body onload="loadComplete()">
- <p>
-  <em>EMP0001</em>
-  <strong>Margaret Martin</strong>
-  <code>Accountant</code>           
-  <sup>56,000</sup>
-  <var>Female</var>
-  <acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym>
- </p>
- <p>
-  <em>EMP0002</em>
-  <strong>Martha RaynoldsThis is a CDATASection with EntityReference number 2 &amp;ent2;
-This is an adjacent CDATASection with a reference to a tab &amp;tab;</strong>
-  <code>Secretary</code>
-  <sup>35,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Yes">&beta; Dallas, &gamma;
- 98554</acronym>
- </p>
- <p>
-  <em>EMP0003</em>
-  <strong>Roger
- Jones</strong>
-  <code>Department Manager</code>
-  <sup>100,000</sup>
-  <var>&delta;</var>
-  <acronym title="Yes" class="No">PO Box 27 Irving, texas 98553</acronym>
- </p>
- <p>
-  <em>EMP0004</em>
-  <strong>Jeny Oconnor</strong>
-  <code>Personnel Director</code>
-  <sup>95,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Y&alpha;">27 South Road. Dallas, Texas 98556</acronym>
- </p>
- <p>
-  <em>EMP0005</em>
-  <strong>Robert Myers</strong>
-  <code>Computer Specialist</code>
-  <sup>90,000</sup>
-  <var>male</var>
-  <acronym title="Yes">1821 Nordic. Road, Irving Texas 98558</acronym>
- </p>
-</body></html>
diff --git a/LayoutTests/dom/xhtml/level1/core/hc_attrinsertbefore3-expected.txt b/LayoutTests/dom/xhtml/level1/core/hc_attrinsertbefore3-expected.txt
deleted file mode 100644 (file)
index 033bb8d..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-Test   http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrinsertbefore3
-Status Success
diff --git a/LayoutTests/dom/xhtml/level1/core/hc_attrinsertbefore3.js b/LayoutTests/dom/xhtml/level1/core/hc_attrinsertbefore3.js
deleted file mode 100644 (file)
index 3cb24cd..0000000
+++ /dev/null
@@ -1,146 +0,0 @@
-
-/*
-Copyright Â© 2001-2004 World Wide Web Consortium, 
-(Massachusetts Institute of Technology, European Research Consortium 
-for Informatics and Mathematics, Keio University). All 
-Rights Reserved. This work is distributed under the W3C® Software License [1] 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. 
-
-[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
-*/
-
-
-
-   /**
-    *  Gets URI that identifies the test.
-    *  @return uri identifier of test
-    */
-function getTargetURI() {
-      return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrinsertbefore3";
-   }
-
-var docsLoaded = -1000000;
-var builder = null;
-
-//
-//   This function is called by the testing framework before
-//      running the test suite.
-//
-//   If there are no configuration exceptions, asynchronous
-//        document loading is started.  Otherwise, the status
-//        is set to complete and the exception is immediately
-//        raised when entering the body of the test.
-//
-function setUpPage() {
-   setUpPageStatus = 'running';
-   try {
-     //
-     //   creates test document builder, may throw exception
-     //
-     builder = createConfiguredBuilder();
-
-      docsLoaded = 0;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      docsLoaded += preload(docRef, "doc", "hc_staff");
-        
-       if (docsLoaded == 1) {
-          setUpPageStatus = 'complete';
-       }
-    } catch(ex) {
-       catchInitializationError(builder, ex);
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-
-//
-//   This method is called on the completion of 
-//      each asychronous load started in setUpTests.
-//
-//   When every synchronous loaded document has completed,
-//      the page status is changed which allows the
-//      body of the test to be executed.
-function loadComplete() {
-    if (++docsLoaded == 1) {
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-/**
-* 
-Appends a document fragment to an attribute and checks if the value of
-the attribute is changed.
-
-* @author Curt Arnold
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-952280727
-*/
-function hc_attrinsertbefore3() {
-   var success;
-    if(checkInitialization(builder, "hc_attrinsertbefore3") != null) return;
-    var doc;
-      var acronymList;
-      var testNode;
-      var attributes;
-      var titleAttr;
-      var value;
-      var terNode;
-      var dayNode;
-      var docFrag;
-      var retval;
-      var firstChild;
-      var lastChild;
-      var refChild = null;
-
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      doc = load(docRef, "doc", "hc_staff");
-      acronymList = doc.getElementsByTagName("acronym");
-      testNode = acronymList.item(3);
-      attributes = testNode.attributes;
-
-      titleAttr = attributes.getNamedItem("title");
-      terNode = doc.createTextNode("ter");
-      dayNode = doc.createTextNode("day");
-      docFrag = doc.createDocumentFragment();
-      retval = docFrag.appendChild(terNode);
-      retval = docFrag.appendChild(dayNode);
-      retval = titleAttr.insertBefore(docFrag,refChild);
-      value = titleAttr.value;
-
-      assertEquals("attrValue","Yesterday",value);
-       value = titleAttr.nodeValue;
-
-      assertEquals("attrNodeValue","Yesterday",value);
-       value = retval.nodeValue;
-
-      assertNull("retvalValue",value);
-    firstChild = titleAttr.firstChild;
-
-      value = firstChild.nodeValue;
-
-      assertEquals("firstChildValue","Yes",value);
-       lastChild = titleAttr.lastChild;
-
-      value = lastChild.nodeValue;
-
-      assertEquals("lastChildValue","day",value);
-       
-}
-
-
-
-
-function runTest() {
-   hc_attrinsertbefore3();
-}
diff --git a/LayoutTests/dom/xhtml/level1/core/hc_attrinsertbefore3.xhtml b/LayoutTests/dom/xhtml/level1/core/hc_attrinsertbefore3.xhtml
deleted file mode 100644 (file)
index c579945..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-<?xml version="1.0"?><?TEST-STYLE PIDATA?>
-<!DOCTYPE html
-   PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-   "xhtml1-strict.dtd" [
-   <!ENTITY alpha "&#945;">
-   <!ENTITY beta "&#946;">
-   <!ENTITY gamma "&#947;">
-   <!ENTITY delta "&#948;">
-   <!ENTITY epsilon "&#949;">
-   <!ENTITY alpha "&#950;">
-   <!NOTATION notation1 PUBLIC "notation1File">
-   <!NOTATION notation2 SYSTEM "notation2File">
-   <!ATTLIST acronym dir CDATA "ltr">
-]>
-<!-- This is comment number 1.-->
-<html xmlns='http://www.w3.org/1999/xhtml'><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><title>hc_staff</title><script type="text/javascript" src="selfxhtml.js"/><script  charset="UTF-8" type="text/javascript" src="hc_attrinsertbefore3.js"/><script type='text/javascript'>function loadComplete() { startTest(); }</script></head><body onload="loadComplete()">
- <p>
-  <em>EMP0001</em>
-  <strong>Margaret Martin</strong>
-  <code>Accountant</code>           
-  <sup>56,000</sup>
-  <var>Female</var>
-  <acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym>
- </p>
- <p>
-  <em>EMP0002</em>
-  <strong>Martha RaynoldsThis is a CDATASection with EntityReference number 2 &amp;ent2;
-This is an adjacent CDATASection with a reference to a tab &amp;tab;</strong>
-  <code>Secretary</code>
-  <sup>35,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Yes">&beta; Dallas, &gamma;
- 98554</acronym>
- </p>
- <p>
-  <em>EMP0003</em>
-  <strong>Roger
- Jones</strong>
-  <code>Department Manager</code>
-  <sup>100,000</sup>
-  <var>&delta;</var>
-  <acronym title="Yes" class="No">PO Box 27 Irving, texas 98553</acronym>
- </p>
- <p>
-  <em>EMP0004</em>
-  <strong>Jeny Oconnor</strong>
-  <code>Personnel Director</code>
-  <sup>95,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Y&alpha;">27 South Road. Dallas, Texas 98556</acronym>
- </p>
- <p>
-  <em>EMP0005</em>
-  <strong>Robert Myers</strong>
-  <code>Computer Specialist</code>
-  <sup>90,000</sup>
-  <var>male</var>
-  <acronym title="Yes">1821 Nordic. Road, Irving Texas 98558</acronym>
- </p>
-</body></html>
diff --git a/LayoutTests/dom/xhtml/level1/core/hc_attrinsertbefore4-expected.txt b/LayoutTests/dom/xhtml/level1/core/hc_attrinsertbefore4-expected.txt
deleted file mode 100644 (file)
index 7d417a4..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-Test   http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrinsertbefore4
-Status Success
diff --git a/LayoutTests/dom/xhtml/level1/core/hc_attrinsertbefore4.js b/LayoutTests/dom/xhtml/level1/core/hc_attrinsertbefore4.js
deleted file mode 100644 (file)
index 700e61d..0000000
+++ /dev/null
@@ -1,147 +0,0 @@
-
-/*
-Copyright Â© 2001-2004 World Wide Web Consortium, 
-(Massachusetts Institute of Technology, European Research Consortium 
-for Informatics and Mathematics, Keio University). All 
-Rights Reserved. This work is distributed under the W3C® Software License [1] 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. 
-
-[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
-*/
-
-
-
-   /**
-    *  Gets URI that identifies the test.
-    *  @return uri identifier of test
-    */
-function getTargetURI() {
-      return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrinsertbefore4";
-   }
-
-var docsLoaded = -1000000;
-var builder = null;
-
-//
-//   This function is called by the testing framework before
-//      running the test suite.
-//
-//   If there are no configuration exceptions, asynchronous
-//        document loading is started.  Otherwise, the status
-//        is set to complete and the exception is immediately
-//        raised when entering the body of the test.
-//
-function setUpPage() {
-   setUpPageStatus = 'running';
-   try {
-     //
-     //   creates test document builder, may throw exception
-     //
-     builder = createConfiguredBuilder();
-
-      docsLoaded = 0;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      docsLoaded += preload(docRef, "doc", "hc_staff");
-        
-       if (docsLoaded == 1) {
-          setUpPageStatus = 'complete';
-       }
-    } catch(ex) {
-       catchInitializationError(builder, ex);
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-
-//
-//   This method is called on the completion of 
-//      each asychronous load started in setUpTests.
-//
-//   When every synchronous loaded document has completed,
-//      the page status is changed which allows the
-//      body of the test to be executed.
-function loadComplete() {
-    if (++docsLoaded == 1) {
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-/**
-* 
-Prepends a document fragment to an attribute and checks if the value of
-the attribute is changed.
-
-* @author Curt Arnold
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-952280727
-*/
-function hc_attrinsertbefore4() {
-   var success;
-    if(checkInitialization(builder, "hc_attrinsertbefore4") != null) return;
-    var doc;
-      var acronymList;
-      var testNode;
-      var attributes;
-      var titleAttr;
-      var value;
-      var terNode;
-      var dayNode;
-      var docFrag;
-      var retval;
-      var firstChild;
-      var lastChild;
-      var refChild;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      doc = load(docRef, "doc", "hc_staff");
-      acronymList = doc.getElementsByTagName("acronym");
-      testNode = acronymList.item(3);
-      attributes = testNode.attributes;
-
-      titleAttr = attributes.getNamedItem("title");
-      terNode = doc.createTextNode("ter");
-      dayNode = doc.createTextNode("day");
-      docFrag = doc.createDocumentFragment();
-      retval = docFrag.appendChild(terNode);
-      retval = docFrag.appendChild(dayNode);
-      refChild = titleAttr.firstChild;
-
-      retval = titleAttr.insertBefore(docFrag,refChild);
-      value = titleAttr.value;
-
-      assertEquals("attrValue","terdayYes",value);
-       value = titleAttr.nodeValue;
-
-      assertEquals("attrNodeValue","terdayYes",value);
-       value = retval.nodeValue;
-
-      assertNull("retvalValue",value);
-    firstChild = titleAttr.firstChild;
-
-      value = firstChild.nodeValue;
-
-      assertEquals("firstChildValue","ter",value);
-       lastChild = titleAttr.lastChild;
-
-      value = lastChild.nodeValue;
-
-      assertEquals("lastChildValue","Yes",value);
-       
-}
-
-
-
-
-function runTest() {
-   hc_attrinsertbefore4();
-}
diff --git a/LayoutTests/dom/xhtml/level1/core/hc_attrinsertbefore4.xhtml b/LayoutTests/dom/xhtml/level1/core/hc_attrinsertbefore4.xhtml
deleted file mode 100644 (file)
index b493050..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-<?xml version="1.0"?><?TEST-STYLE PIDATA?>
-<!DOCTYPE html
-   PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-   "xhtml1-strict.dtd" [
-   <!ENTITY alpha "&#945;">
-   <!ENTITY beta "&#946;">
-   <!ENTITY gamma "&#947;">
-   <!ENTITY delta "&#948;">
-   <!ENTITY epsilon "&#949;">
-   <!ENTITY alpha "&#950;">
-   <!NOTATION notation1 PUBLIC "notation1File">
-   <!NOTATION notation2 SYSTEM "notation2File">
-   <!ATTLIST acronym dir CDATA "ltr">
-]>
-<!-- This is comment number 1.-->
-<html xmlns='http://www.w3.org/1999/xhtml'><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><title>hc_staff</title><script type="text/javascript" src="selfxhtml.js"/><script  charset="UTF-8" type="text/javascript" src="hc_attrinsertbefore4.js"/><script type='text/javascript'>function loadComplete() { startTest(); }</script></head><body onload="loadComplete()">
- <p>
-  <em>EMP0001</em>
-  <strong>Margaret Martin</strong>
-  <code>Accountant</code>           
-  <sup>56,000</sup>
-  <var>Female</var>
-  <acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym>
- </p>
- <p>
-  <em>EMP0002</em>
-  <strong>Martha RaynoldsThis is a CDATASection with EntityReference number 2 &amp;ent2;
-This is an adjacent CDATASection with a reference to a tab &amp;tab;</strong>
-  <code>Secretary</code>
-  <sup>35,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Yes">&beta; Dallas, &gamma;
- 98554</acronym>
- </p>
- <p>
-  <em>EMP0003</em>
-  <strong>Roger
- Jones</strong>
-  <code>Department Manager</code>
-  <sup>100,000</sup>
-  <var>&delta;</var>
-  <acronym title="Yes" class="No">PO Box 27 Irving, texas 98553</acronym>
- </p>
- <p>
-  <em>EMP0004</em>
-  <strong>Jeny Oconnor</strong>
-  <code>Personnel Director</code>
-  <sup>95,000</sup>
-  <var>Female</var>
-  <acronym title="Yes" class="Y&alpha;">27 South Road. Dallas, Texas 98556</acronym>
- </p>
- <p>
-  <em>EMP0005</em>
-  <strong>Robert Myers</strong>
-  <code>Computer Specialist</code>
-  <sup>90,000</sup>
-  <var>male</var>
-  <acronym title="Yes">1821 Nordic. Road, Irving Texas 98558</acronym>
- </p>
-</body></html>
diff --git a/LayoutTests/dom/xhtml/level1/core/hc_attrinsertbefore5-expected.txt b/LayoutTests/dom/xhtml/level1/core/hc_attrinsertbefore5-expected.txt
deleted file mode 100644 (file)
index 5272e63..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-Test   http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrinsertbefore5
-Status Success
diff --git a/LayoutTests/dom/xhtml/level1/core/hc_attrinsertbefore5.js b/LayoutTests/dom/xhtml/level1/core/hc_attrinsertbefore5.js
deleted file mode 100644 (file)
index a9737ed..0000000
+++ /dev/null
@@ -1,153 +0,0 @@
-
-/*
-Copyright Â© 2001-2004 World Wide Web Consortium, 
-(Massachusetts Institute of Technology, European Research Consortium 
-for Informatics and Mathematics, Keio University). All 
-Rights Reserved. This work is distributed under the W3C® Software License [1] 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. 
-
-[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
-*/
-
-
-
-   /**
-    *  Gets URI that identifies the test.
-    *  @return uri identifier of test
-    */
-function getTargetURI() {
-      return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_attrinsertbefore5";
-   }
-
-var docsLoaded = -1000000;
-var builder = null;
-
-//
-//   This function is called by the testing framework before
-//      running the test suite.
-//
-//   If there are no configuration exceptions, asynchronous
-//        document loading is started.  Otherwise, the status
-//        is set to complete and the exception is immediately
-//        raised when entering the body of the test.
-//
-function setUpPage() {
-   setUpPageStatus = 'running';
-   try {
-     //
-     //   creates test document builder, may throw exception
-     //
-     builder = createConfiguredBuilder();
-       checkFeature("XML", null);
-
-      docsLoaded = 0;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      docsLoaded += preload(docRef, "doc", "hc_staff");
-        
-       if (docsLoaded == 1) {
-          setUpPageStatus = 'complete';
-       }
-    } catch(ex) {
-       catchInitializationError(builder, ex);
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-
-//
-//   This method is called on the completion of 
-//      each asychronous load started in setUpTests.
-//
-//   When every synchronous loaded document has completed,
-//      the page status is changed which allows the
-//      body of the test to be executed.
-function loadComplete() {
-    if (++docsLoaded == 1) {
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-/**
-* 
-Attempt to append a CDATASection to an attribute which should result
-in a HIERARCHY_REQUEST_ERR.
-
-* @author Curt Arnold
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024
-* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-952280727
-*/
-function hc_attrinsertbefore5() {
-   var success;
-    if(checkInitialization(builder, "hc_attrinsertbefore5") != null) return;
-    var doc;
-      var acronymList;
-      var testNode;
-      var attributes;
-      var titleAttr;
-      var value;
-      var textNode;
-      var retval;
-      var refChild = null;
-
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      doc = load(docRef, "doc", "hc_staff");
-      acronymList = doc.getElementsByTagName("acronym");
-      testNode = acronymList.item(3);
-      attributes = testNode.attributes;
-
-      titleAttr = attributes.getNamedItem("title");
-      
-       if(
-       
- &nbs