| OLD | NEW | 
|---|
| 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE html> | 
| 2 <title>This tests the HTMLImageElement border property.</title> | 2 <title>This tests the HTMLImageElement border property.</title> | 
| 3 <body> | 3 <body> | 
| 4 <script src="../../resources/testharness.js"></script> | 4 <script src="../../resources/testharness.js"></script> | 
| 5 <script src="../../resources/testharnessreport.js"></script> | 5 <script src="../../resources/testharnessreport.js"></script> | 
| 6 <script type="text/javascript"> | 6 <script type="text/javascript"> | 
| 7 function imageBorderWidth(borderValue, style) { | 7 function imageBorderWidth(borderValue, style) { | 
| 8     var image = document.createElement("img"); | 8     var image = document.createElement("img"); | 
| 9     if (borderValue !== undefined) | 9     if (borderValue !== undefined) | 
| 10         image.setAttribute("border", borderValue); | 10         image.setAttribute("border", borderValue); | 
| 11     image.setAttribute("style", style); | 11     image.setAttribute("style", style); | 
| (...skipping 21 matching lines...) Expand all  Loading... | 
| 33     assert_equals(imageBorderWidth(' 10'), 10); | 33     assert_equals(imageBorderWidth(' 10'), 10); | 
| 34     assert_equals(imageBorderWidth('10 '), 10); | 34     assert_equals(imageBorderWidth('10 '), 10); | 
| 35     assert_equals(imageBorderWidth(' 10 '), 10); | 35     assert_equals(imageBorderWidth(' 10 '), 10); | 
| 36     assert_equals(imageBorderWidth('10q'), 10); | 36     assert_equals(imageBorderWidth('10q'), 10); | 
| 37     assert_equals(imageBorderWidth(' 10q'), 10); | 37     assert_equals(imageBorderWidth(' 10q'), 10); | 
| 38     assert_equals(imageBorderWidth('10q '), 10); | 38     assert_equals(imageBorderWidth('10q '), 10); | 
| 39     assert_equals(imageBorderWidth(' 10q '), 10); | 39     assert_equals(imageBorderWidth(' 10q '), 10); | 
| 40 }); | 40 }); | 
| 41 </script> | 41 </script> | 
| 42 | 42 | 
| OLD | NEW | 
|---|