HTML/XHTML filter fails to handle translate="no" elements inside of parent element correctly
Issue #1195
resolved
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)
-
-
reporter - changed status to resolved
Corrected with https://bitbucket.org/okapiframework/okapi/issues/1327/
- Log in to comment
Hi guys,
feel free to close this one, too. It has been resolved with PR 774. See https://bitbucket.org/okapiframework/okapi/issues/1327/ for reference.
Kind regards,
Philipp