| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <body> | 3 <body> |
| 4 <script src="../../resources/js-test.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
| 5 <script> | 5 <script> |
| 6 var element; | 6 var element; |
| 7 | 7 |
| 8 function testDOMStringReflection(elementName, contentAttributeName, idlAttribute
Name, treatNullAsEmptyString) { | 8 function testDOMStringReflection(elementName, contentAttributeName, idlAttribute
Name, treatNullAsEmptyString) { |
| 9 idlAttributeName = idlAttributeName || contentAttributeName; | 9 idlAttributeName = idlAttributeName || contentAttributeName; |
| 10 element = document.createElement(elementName); | 10 element = document.createElement(elementName); |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 | 52 |
| 53 debug('\n'); | 53 debug('\n'); |
| 54 } | 54 } |
| 55 | 55 |
| 56 testDOMStringReflection('button', 'name'); | 56 testDOMStringReflection('button', 'name'); |
| 57 testDOMStringReflection('fieldset', 'name'); | 57 testDOMStringReflection('fieldset', 'name'); |
| 58 testDOMStringReflection('form', 'name'); | 58 testDOMStringReflection('form', 'name'); |
| 59 testDOMStringReflection('input', 'name'); | 59 testDOMStringReflection('input', 'name'); |
| 60 testDOMStringReflection('input', 'step'); | 60 testDOMStringReflection('input', 'step'); |
| 61 testDOMStringReflection('keygen', 'name'); | 61 testDOMStringReflection('keygen', 'name'); |
| 62 testDOMStringReflection('menu', 'type'); |
| 63 testDOMStringReflection('menu', 'label'); |
| 64 testDOMStringReflection('menuitem', 'type'); |
| 65 testDOMStringReflection('menuitem', 'label'); |
| 62 testDOMStringReflection('object', 'name'); | 66 testDOMStringReflection('object', 'name'); |
| 63 testDOMStringReflection('output', 'name'); | 67 testDOMStringReflection('output', 'name'); |
| 64 testDOMStringReflection('select', 'name'); | 68 testDOMStringReflection('select', 'name'); |
| 65 testDOMStringReflection('textarea', 'name'); | 69 testDOMStringReflection('textarea', 'name'); |
| 66 | 70 |
| 67 // [TreatNullAs=EmptyString] | 71 // [TreatNullAs=EmptyString] |
| 68 testDOMStringReflection('frame', 'marginheight', 'marginHeight', true); | 72 testDOMStringReflection('frame', 'marginheight', 'marginHeight', true); |
| 69 testDOMStringReflection('frame', 'marginwidth', 'marginWidth', true); | 73 testDOMStringReflection('frame', 'marginwidth', 'marginWidth', true); |
| 70 testDOMStringReflection('iframe', 'marginheight', 'marginHeight', true); | 74 testDOMStringReflection('iframe', 'marginheight', 'marginHeight', true); |
| 71 testDOMStringReflection('iframe', 'marginwidth', 'marginWidth', true); | 75 testDOMStringReflection('iframe', 'marginwidth', 'marginWidth', true); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 83 testDOMStringReflection('td', 'bgcolor', 'bgColor', true); | 87 testDOMStringReflection('td', 'bgcolor', 'bgColor', true); |
| 84 testDOMStringReflection('th', 'bgcolor', 'bgColor', true); | 88 testDOMStringReflection('th', 'bgcolor', 'bgColor', true); |
| 85 testDOMStringReflection('tr', 'bgcolor', 'bgColor', true); | 89 testDOMStringReflection('tr', 'bgcolor', 'bgColor', true); |
| 86 | 90 |
| 87 | 91 |
| 88 // Add more DOMString attributes! | 92 // Add more DOMString attributes! |
| 89 | 93 |
| 90 </script> | 94 </script> |
| 91 </body> | 95 </body> |
| 92 </html> | 96 </html> |
| OLD | NEW |