HTML/XHTML filter fails to handle translate="no" elements inside of parent element correctly

Issue #1195 resolved
Patrick Huy created an issue

HTML/XHTML filter fails to handle translate="no" elements inside of parent element correctly:

Given the HTML file

You can also press <span style="font-weight:bold; "><span translate="no">x</span></span>.

When we use the HTML/XHTML filter to convert this, using either the okf_html or okf_html-wellFormed configuration we get the following XLIFF:

<source xml:lang="en-US">You can also press <bx id="1"/><x id="2"/>.</source>

Observe that the <bx> tag is rather unexpected.

The <bx id="1"> tag represents <span style="font-weight:bold; "> whereas the <x id="2"> represents <span translate="no">x</span></span> . Notice that the second closing </span> also got included in <x id="2">

The bug can be reproduced in Okapi Version 1.45.0 and 1.44.0.

With the html5 filter the problem does not occur but the translate=”no” is not handled at all.

Comments (2)

  1. Log in to comment