| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <body> | 2 <body> |
| 3 <script> | 3 <script> |
| 4 var docToAppendTo; | 4 var docToAppendTo; |
| 5 function addTextarea(properties, opt_innerHTML) { | 5 function addTextarea(properties, opt_innerHTML) { |
| 6 var title = docToAppendTo.createTextNode(); | 6 var title = docToAppendTo.createTextNode(''); |
| 7 title.nodeValue = ''; | 7 title.nodeValue = ''; |
| 8 var wrapper = docToAppendTo.createElement('div'); | 8 var wrapper = docToAppendTo.createElement('div'); |
| 9 wrapper.style.cssText = 'display:inline-block;border:1px solid blue;font-siz
e:12px;'; | 9 wrapper.style.cssText = 'display:inline-block;border:1px solid blue;font-siz
e:12px;'; |
| 10 var textarea = docToAppendTo.createElement('textarea'); | 10 var textarea = docToAppendTo.createElement('textarea'); |
| 11 for (property in properties) { | 11 for (property in properties) { |
| 12 var value = properties[property]; | 12 var value = properties[property]; |
| 13 title.nodeValue += property + ': "' + value + '", '; | 13 title.nodeValue += property + ': "' + value + '", '; |
| 14 if (property == 'wrap') | 14 if (property == 'wrap') |
| 15 textarea.setAttribute(property, value); | 15 textarea.setAttribute(property, value); |
| 16 else if (property == 'style') | 16 else if (property == 'style') |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 document.body.appendChild(standardsIframe); | 92 document.body.appendChild(standardsIframe); |
| 93 | 93 |
| 94 var quirksIframe = document.createElement('iframe'); | 94 var quirksIframe = document.createElement('iframe'); |
| 95 quirksIframe.onload = function(e) { | 95 quirksIframe.onload = function(e) { |
| 96 addAllTextareas(e.target, 'BackCompat'); | 96 addAllTextareas(e.target, 'BackCompat'); |
| 97 } | 97 } |
| 98 document.body.appendChild(quirksIframe); | 98 document.body.appendChild(quirksIframe); |
| 99 </script> | 99 </script> |
| 100 </body> | 100 </body> |
| 101 </html> | 101 </html> |
| OLD | NEW |