Completed
Last Updated: 24 Jul 2015 13:43 by ADMIN
ADMIN
Ianko
Created on: 19 Dec 2013 15:03
Category: Editor
Type: Bug Report
0
When HTML content with comments is set into the editor, href and src attributes are modified from relative to absolute under IE7
If you set anchors in html content and additional put some HTML comments, under IE7 the hrefs will be placed as absolute.

For example the following HTML:

<div id="htmlcontent">
    <div>
        <!-- comment beginning -->
        <a href="/relativePath/ToALink">
            <img alt="" src="relativePath/ToMyImage/image.gif" />
        </a>
    </div>
    <!-- /another ending comment -->
</div>

Will be transformed to this one:

<DIV id=htmlcontent>
<DIV><!-- comment beginning --><A href="http://localhost:52771/relativePath/ToALink"><IMG alt="" src="http://localhost:52771/relativePath/ToMyImage/image.gif"> </A></DIV><!-- /another ending comment --></DIV>
0 comments