<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Package: Firefox<br>
Version: 54.0-2<br>
Tags: a11y upstream<br>
Owner: <a class="moz-txt-link-abbreviated" href="mailto:bugs@hypra.fr">bugs@hypra.fr</a><br>
User: <a class="moz-txt-link-abbreviated" href="mailto:bugs@hypra.fr">bugs@hypra.fr</a><br>
Usertags: hypra<br>
Forwarded: <a class="moz-txt-link-freetext" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1346535">https://bugzilla.mozilla.org/show_bug.cgi?id=1346535</a><br>
<br>
DESCRIPTION FROM UPSTREAM:</p>
<p>
<blockquote type="cite">"Steps to reproduce:<br>
<br>
1. Load data:text/html;charset=utf-8,<div>Hello
%F0%9F%92%97 world</div><br>
<br>
2. Use Accerciser to find the accessible object corresponding
with the <div> element.<br>
<br>
3. In the ipython console, type the following:<br>
<br>
-----<br>
text = acc.queryText()<br>
allText = text.getText(0,-1)<br>
["%s %s" % (allText[i], text.getText(i, i+1)) for i in
range(len(allText))]<br>
-----<br>
<br>
Expected results: The values would match.<br>
<br>
Actual results: The values match only until the multibyte
character is reached. It seems like the get text implementation
is assuming single-byte chars (see example output below). Also
note that performing the same test using the Gedit text editor
works as expected.<br>
<br>
['H H',<br>
'e e',<br>
'l l',<br>
'l l',<br>
'o o',<br>
' ',<br>
'"<br>
<br>
<div class="moz-signature">-- <br>
<table style="font-family: Liberation Sans;" border="0"
cellpadding="0" cellspacing="0" height="151" width="600">
<tbody>
<tr>
<td style="padding:0 0 0 10px;" valign="top" width="145"><img
moz-do-not-send="true" text-align="center" alt="Logo
Hypra"
src="http://hypra.fr/sites/default/IMG/png/logo_hypra_rvb.png"
height="136" width="105"> </td>
<td valign="top"><font color="#312c80" size="+2">RAPHAËL
POITEVIN</font><br>
<div style="margin-bottom:8px"><font size="+1">
FORMATEUR / AGENT DE SUPPORT</font></div>
<div style="line-height:0px;border-bottom:1px solid
#2778cd;width:14em;"> </div>
<div style="margin-top:8px;font-weight:bold;">102, rue
des poissonniers, 75018, Paris</div>
<div style="margin-top:8px;font-weight:bold;">Tel : <a
href="tel:+33184730661" style="margin-right:10px;">+331
84 73 06 61</a> Dir : <a href="tel:+33972497748">+339
72 49 77 48</a></div>
<div style="margin-top:8px"><a
href="mailto:rpoitevin@hypra.fr">rpoitevin@hypra.fr</a></div>
<div style="margin-top:8px"><a
href="http://www.hypra.fr/">www.hypra.fr</a><br>
</div>
<div style="margin-top:20px"><a
href="https://www.facebook.com/hyprasoftware/"><img
moz-do-not-send="true" alt="Facebook Hypra"
src="http://hypra.fr/sites/default/IMG/png/ico_nes_facebook.png"
border="0" height="30" width="16"></a> <a
href="https://twitter.com/Hypra_"><img
moz-do-not-send="true" alt="Twitter Hypra"
src="http://hypra.fr/sites/default/IMG/png/ico_ne_twitter.png"
border="0" height="30" hspace="42" width="37"></a>
<br>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</blockquote>
<br>
</p>
</body>
</html>