| OLD | NEW |
| 1 testText("<div>", "abc", "abc", "Simplest possible test"); | 1 testText("<div>", "abc", "abc", "Simplest possible test"); |
| 2 testHTML("<div>", "abc\ndef", "abc<br>def", "Newlines convert to <br> in non-whi
te-space:pre elements"); | 2 testHTML("<div>", "abc\ndef", "abc<br>def", "Newlines convert to <br> in non-whi
te-space:pre elements"); |
| 3 testHTML("<pre>", "abc\ndef", "abc<br>def", "Newlines convert to <br> in <pre> e
lement"); | 3 testHTML("<pre>", "abc\ndef", "abc<br>def", "Newlines convert to <br> in <pre> e
lement"); |
| 4 testHTML("<textarea>", "abc\ndef", "abc<br>def", "Newlines convert to <br> in <t
extarea> element"); |
| 4 testHTML("<div style='white-space:pre'>", "abc\ndef", "abc<br>def", "Newlines co
nvert to <br> in white-space:pre element"); | 5 testHTML("<div style='white-space:pre'>", "abc\ndef", "abc<br>def", "Newlines co
nvert to <br> in white-space:pre element"); |
| 5 testHTML("<div>", "abc\rdef", "abc<br>def", "CRs convert to <br> in non-white-sp
ace:pre elements"); | 6 testHTML("<div>", "abc\rdef", "abc<br>def", "CRs convert to <br> in non-white-sp
ace:pre elements"); |
| 6 testHTML("<pre>", "abc\rdef", "abc<br>def", "CRs convert to <br> in <pre> elemen
t"); | 7 testHTML("<pre>", "abc\rdef", "abc<br>def", "CRs convert to <br> in <pre> elemen
t"); |
| 7 testHTML("<div>", "abc\r\ndef", "abc<br>def", "Newline/CR pair converts to <br>
in non-white-space:pre element"); | 8 testHTML("<div>", "abc\r\ndef", "abc<br>def", "Newline/CR pair converts to <br>
in non-white-space:pre element"); |
| 8 testHTML("<div>", "abc\n\ndef", "abc<br><br>def", "Newline/newline pair converts
to two <br>s in non-white-space:pre element"); | 9 testHTML("<div>", "abc\n\ndef", "abc<br><br>def", "Newline/newline pair converts
to two <br>s in non-white-space:pre element"); |
| 9 testHTML("<div>", "abc\r\rdef", "abc<br><br>def", "CR/CR pair converts to two <b
r>s in non-white-space:pre element"); | 10 testHTML("<div>", "abc\r\rdef", "abc<br><br>def", "CR/CR pair converts to two <b
r>s in non-white-space:pre element"); |
| 10 testHTML("<div style='white-space:pre'>", "abc\rdef", "abc<br>def", "CRs convert
to <br> in white-space:pre element"); | 11 testHTML("<div style='white-space:pre'>", "abc\rdef", "abc<br>def", "CRs convert
to <br> in white-space:pre element"); |
| 11 testText("<div>", "abc<def", "abc<def", "< preserved"); | 12 testText("<div>", "abc<def", "abc<def", "< preserved"); |
| 12 testText("<div>", "abc>def", "abc>def", "> preserved"); | 13 testText("<div>", "abc>def", "abc>def", "> preserved"); |
| 13 testText("<div>", "abc&", "abc&", "& preserved"); | 14 testText("<div>", "abc&", "abc&", "& preserved"); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 32 testHTML("<div>", "abc\n", "abc<br>", "End with LF"); | 33 testHTML("<div>", "abc\n", "abc<br>", "End with LF"); |
| 33 testHTML("<div>", "abc\r\n", "abc<br>", "End with CRLF"); | 34 testHTML("<div>", "abc\r\n", "abc<br>", "End with CRLF"); |
| 34 | 35 |
| 35 // Setting innerText on these should not throw | 36 // Setting innerText on these should not throw |
| 36 ["area", "base", "basefont", "bgsound", "br", "col", "embed", "frame", "hr", | 37 ["area", "base", "basefont", "bgsound", "br", "col", "embed", "frame", "hr", |
| 37 "image", "img", "input", "keygen", "link", "menuitem", "meta", "param", | 38 "image", "img", "input", "keygen", "link", "menuitem", "meta", "param", |
| 38 "source", "track", "wbr", "colgroup", "frameset", "head", "html", "table", | 39 "source", "track", "wbr", "colgroup", "frameset", "head", "html", "table", |
| 39 "tbody", "tfoot", "thead", "tr"].forEach(function(tag) { | 40 "tbody", "tfoot", "thead", "tr"].forEach(function(tag) { |
| 40 testText(document.createElement(tag), "abc", "abc", "innerText on <" + tag + "
> element"); | 41 testText(document.createElement(tag), "abc", "abc", "innerText on <" + tag + "
> element"); |
| 41 }); | 42 }); |
| OLD | NEW |