Content text formatted as a hyperlink
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>
See also
- W3C void elements reference.
- http://dev.w3.org/html5/spec-author-view/syntax.html#void-elements