4 <script src=
"../../resources/js-test.js"></script>
6 description('Test to make sure WebKit doesn\'t quote face attribute of font elements.');
8 var testContainer
= document
.createElement('div');
9 testContainer
.contentEditable
= true;
10 document
.body
.appendChild(testContainer
);
12 testContainer
.innerHTML
= 'Hello WebKit';
13 window
.getSelection().selectAllChildren(testContainer
);
14 document
.execCommand('fontName', false, 'courier new');
16 var expected
= '<font face="courier new">Hello WebKit</font>';
17 if (expected
== testContainer
.innerHTML
)
18 testPassed('Font face is unquoted.');
20 testFailed('Font face is quoted, expected: ' + expected
+ ', actual: ' + testContainer
.innerHTML
);
22 document
.body
.removeChild(testContainer
);
23 var successfullyParsed
= true;