This tests that the setAttribute and setAttributeNS
methods on the Element interface work correctly, for some
simple cases.
There are five sub-tests (a rectangle for each). These are:
- Sub-test 1: test setting known attributes in no namespace.
- Sub-test 2: test setting unknown attributes in no namespace.
-
Sub-test 3: test setting known attributes in a namespace, correctly using setAttributeNS with a namespace URI.
-
Sub-test 4: test setting known attributes in a namespace, incorrectly using setAttribute with a QName.
- Sub-test 5: test setting unknown attributes in a namespace.
The test has been passed if all five rectangles are blue.