okf_html filter: Nested Inline elements with translate="no" attribute becomes non-nested in the text unit

Create issue
Issue #1042 new
Pallavi Bhardwaj created an issue

If there are nested Inline Elements in HTML where both parent and child tags have translate=”no” attribute then these nested inline elements becomes non-nested. Child and parent tags becomes two separate tags and the relation between these tags are also lost.

Example HTML-

<html>
<body>
Shopping cart contains two items <strong id="1" translate="no"><a>These two items are without any discount and </a>summer sale <b translate="no">is also not applicable </b></strong>full amount will be charged.
</body></html>

Text unit created for this HTML -

Shopping cart contains two items currently <b translate="no">is not applicable </b><strong id="1" translate="no"><a>These two items do not have discount </a>summer sale </strong>full amount will be charged.

It is clearly seen that tag<b translate="no">is not applicable </b> has come out of the parent tag and deforms the text.

There are two codes generated for the text fragment extracted from the text unit:

code[0] with type PLACEHOLDER and data <b translate="no">is not applicable </b>

code[1] with type PLACEHOLDER and data <strong id="1" about="nothing" translate="no"><a>These two items do not have discount </a>summer sale </strong>

Filter in use is okf_html with nonwellformedConfiguration

Comments (1)

  1. Log in to comment