2 <script src=
"../../../resources/js-test.js"></script>
4 description('Tests that className works on non HTMLElements');
6 var htmlElement
= document
.createElement('div');
7 htmlElement
.setAttribute('class', 'foo');
8 shouldBeEqualToString('htmlElement.className', 'foo');
10 var xmlElement
= document
.createElementNS('http://www.example.com', 'xml');
11 xmlElement
.setAttribute('class', 'foo');
12 shouldBeEqualToString('xmlElement.className', 'foo');