blob: c8592d786d0ebb728a9a6d03da184ff2f51ae6f1 [file] [log] [blame]
<!DOCTYPE html>
<body>
<script src="../../../resources/js-test-pre.js"></script>
<script>
description("Tests that Attr.value is not nullable");
evalAndLog("attr = document.createAttribute('test')");
shouldBeEmptyString("attr.value");
shouldNotThrow("attr.value = null");
shouldBeEqualToString("attr.value", "null");
shouldNotThrow("attr.value = undefined");
shouldBeEqualToString("attr.value", "undefined");
</script>
<script src="../../../resources/js-test-post.js"></script>
</body>