Package:  Firefox
Version: 54.0-2
Tags: a11y upstream
Owner: b...@hypra.fr
User: b...@hypra.fr
Usertags: hypra
Forwarded: https://bugzilla.mozilla.org/show_bug.cgi?id=1346535

DESCRIPTION FROM UPSTREAM:

"Steps to reproduce:

1. Load data:text/html;charset=utf-8,<div>Hello %F0%9F%92%97 world</div>

2. Use Accerciser to find the accessible object corresponding with the <div> element.

3. In the ipython console, type the following:

-----
text = acc.queryText()
allText = text.getText(0,-1)
["%s %s" % (allText[i], text.getText(i, i+1)) for i in range(len(allText))]
-----

Expected results: The values would match.

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.

['H H',
 'e e',
 'l l',
 'l l',
 'o o',
 '   ',
 '"

--
Logo Hypra      RAPHAËL POITEVIN
FORMATEUR / AGENT DE SUPPORT
102, rue des poissonniers, 75018, Paris
Tel : +331 84 73 06 61 <tel:+33184730661> Dir : +339 72 49 77 48 <tel:+33972497748>
rpoite...@hypra.fr <mailto:rpoite...@hypra.fr>
www.hypra.fr <http://www.hypra.fr/>
Facebook Hypra <https://www.facebook.com/hyprasoftware/> Twitter Hypra <https://twitter.com/Hypra_>


Reply via email to