top

Content text formatted as a hyperlink

Published 2014-10-28 | (Compatible with SDK 3.5,4.5,5.0,5.1 and 2012,2013,2014 models)

Difference in handling the non-closed anchor tag on the 2012 platform

If the 2012 platform displays some parts of the content text as a hyperlink, while it does not happen on any older devices, please make sure that all of your anchors are properly closed with a separate closing tag.

The 2012 Webkit browser is more strict than the previous platforms and accepts self-closing tags for correct void elements only. For that reason, the browser does not recognise this tag as closed and marks the following text as a hyperlink.

Source Files

Note

Refer to files in this package.

Solution

All anchors should be closed properly with a correct closing tag, even if they contain no text or child nodes.

Bad example

<div>
    <a id="anchor" onkeydown="Main.OnKeyDown()" />
</div>

Good example

<div>
    <a id="anchor" onkeydown="Main.OnKeyDown()"></a>
<div>