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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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'); | 62 testDOMStringReflection('menu', 'type'); |
63 testDOMStringReflection('menu', 'label'); | 63 testDOMStringReflection('menu', 'label'); |
64 testDOMStringReflection('menuitem', 'type'); | |
65 testDOMStringReflection('menuitem', 'label'); | 64 testDOMStringReflection('menuitem', 'label'); |
66 testDOMStringReflection('object', 'name'); | 65 testDOMStringReflection('object', 'name'); |
67 testDOMStringReflection('output', 'name'); | 66 testDOMStringReflection('output', 'name'); |
68 testDOMStringReflection('select', 'name'); | 67 testDOMStringReflection('select', 'name'); |
69 testDOMStringReflection('textarea', 'name'); | 68 testDOMStringReflection('textarea', 'name'); |
70 | 69 |
71 // [TreatNullAs=EmptyString] | 70 // [TreatNullAs=EmptyString] |
72 testDOMStringReflection('frame', 'marginheight', 'marginHeight', true); | 71 testDOMStringReflection('frame', 'marginheight', 'marginHeight', true); |
73 testDOMStringReflection('frame', 'marginwidth', 'marginWidth', true); | 72 testDOMStringReflection('frame', 'marginwidth', 'marginWidth', true); |
74 testDOMStringReflection('iframe', 'marginheight', 'marginHeight', true); | 73 testDOMStringReflection('iframe', 'marginheight', 'marginHeight', true); |
(...skipping 12 matching lines...) Expand all Loading... |
87 testDOMStringReflection('td', 'bgcolor', 'bgColor', true); | 86 testDOMStringReflection('td', 'bgcolor', 'bgColor', true); |
88 testDOMStringReflection('th', 'bgcolor', 'bgColor', true); | 87 testDOMStringReflection('th', 'bgcolor', 'bgColor', true); |
89 testDOMStringReflection('tr', 'bgcolor', 'bgColor', true); | 88 testDOMStringReflection('tr', 'bgcolor', 'bgColor', true); |
90 | 89 |
91 | 90 |
92 // Add more DOMString attributes! | 91 // Add more DOMString attributes! |
93 | 92 |
94 </script> | 93 </script> |
95 </body> | 94 </body> |
96 </html> | 95 </html> |
OLD | NEW |