| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <meta charset="utf-8"> |
| 3 <script src="../../resources/testharness.js"></script> |
| 4 <script src="../../resources/testharnessreport.js"></script> |
| 5 <svg id="svg" height="0" font-size="100"> |
| 6 <text id="text"> |
| 7 <!-- invalid non-bmp character followed by a valid character --> |
| 8 <tspan>򐀒a</tspan> |
| 9 <!-- many invalid non-bmp characters followed by a valid character --> |
| 10 <tspan>򐀒򐀒򐀒򐀒a򐀒򐀒򐀒&
#x90012;a</tspan> |
| 11 <!-- alternating valid and invalid non-bmp characters --> |
| 12 <tspan>😂򐀒😂򐀒😂򐀒</tspan> |
| 13 <!-- invalid non-bmp characters in rtl --> |
| 14 <tspan direction="rtl">نشاط😂نشاط򐀒򐀒ن򐀒شاط&
#128514;نش򐀒اط򐀒ا</tspan> |
| 15 </text> |
| 16 </svg> |
| 17 <script> |
| 18 test(function() { |
| 19 text.getComputedTextLength(); |
| 20 svg.parentElement.removeChild(svg); |
| 21 }, 'Text runs with invalid non-bmp characters should not crash.'); |
| 22 </script> |
| OLD | NEW |