blob: 2eb91fbf200e36f928bb54d0981a8d6be61c4312 [file] [log] [blame]
<!DOCTYPE html>
<script src="../../../resources/js-test-pre.js"></script>
<script>
description('Tests that className works on non HTMLElements');
var htmlElement = document.createElement('div');
htmlElement.setAttribute('class', 'foo');
shouldBeEqualToString('htmlElement.className', 'foo');
var xmlElement = document.createElementNS('http://www.example.com', 'xml');
xmlElement.setAttribute('class', 'foo');
shouldBeEqualToString('xmlElement.className', 'foo');
</script>
<script src="../../../resources/js-test-post.js"></script>