setAttributeNS tests adapted from createAttributeNS which in turn were adapted from createElementNS tests attached to webkit bug 16833 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". PASS element.setAttributeNS(undefined, undefined, 'value') PASS element.setAttributeNS(null, undefined, 'value') FAIL element.setAttributeNS(undefined, null, 'value') FAIL element.setAttributeNS(null, null, 'value') PASS element.setAttributeNS(null, "", 'value'); threw INVALID_CHARACTER_ERR FAIL element.setAttributeNS("", null, 'value') PASS element.setAttributeNS("", "", 'value'); threw INVALID_CHARACTER_ERR PASS element.setAttributeNS(null, "
", 'value'); threw INVALID_CHARACTER_ERR PASS element.setAttributeNS(null, "0div", 'value'); threw INVALID_CHARACTER_ERR PASS element.setAttributeNS(null, "di v", 'value'); threw INVALID_CHARACTER_ERR PASS element.setAttributeNS(null, "di", 'value'); threw INVALID_CHARACTER_ERR PASS element.setAttributeNS("http://example.com/", "0div", 'value'); threw INVALID_CHARACTER_ERR PASS element.setAttributeNS("http://example.com/", "di