Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.1
-
None
Description
xdoc source:
<a href="http://example.com/example.html?version=latest&login=example">link</a> <img src="http://example.com/example.jpg?version=latest&login=example" alt="image"/> <script type="text/javascript" src="http://example.com/example.js?version=latest&login=example"></script>
result:
<a href="http://example.com/example.html?version=latest&login=example" class="externalLink">link</a> <img src="http://example.com/example.jpg?version=latest&login=example" alt="image" /> <script type="text/javascript" src="http://example.com/example.js?version=latest&login=example"></script>
ie for the <script> and <img> src attribute, the ampersand gets un-escaped. The reason is that the plexus MXParser (correctly) normalizes attribute values, but the XhtmlBaseSink doesn't re-escape them.