author Andrea <>
Sat, 16 Aug 2014 17:06:10 -0700
changeset 200014 82722ad59732fd355f6bd77d5194ceaa1dab23c3
parent 176421 b816c8efe28be24a70e8910a09fbb6dde3378eec
permissions -rw-r--r--
Bug 991427 - Check if the last character of the string is part of a surrogate pair when truncating text for display in the context menu, to avoid splitting surrogate pairs, r=gavin

<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="">
    <a href="" id="link">I'm a link!</a>
    <a href="" id="longLink">I'm a really long link and I should be truncated.</a>

    <span id="plainText">
      Right clicking me when I'm selected should show the menu item.
    <span id="mixedContent">
      I'm some text, and <a href="">I'm a link!</a>

    <a href="">A partial <span id="partialLink">link selection</span></a>

    <span id="surrogatePair">
      This characteršŸ”„  shouldn't be truncated.