开发者

Generated source escaped after IFRAME

开发者 https://www.devze.com 2023-02-03 09:28 出处:网络
I\'m currently looking at a site where all of the generated source appears to be replaced with escape characters after inclusion of an IFRAME. The page being included has no Javascript errors and the

I'm currently looking at a site where all of the generated source appears to be replaced with escape characters after inclusion of an IFRAME. The page being included has no Javascript errors and the code for the IFRAME inclusion is as follows:-

 <iframe scrolling="no" frameborder="0" width="100%" style="border-width: 0em; height: 1800px; width: 620px;" marginwidth="0" marginheight="0" src="[URL to included page[]" id="iframeEvents" />

When viewing the generated source everything after the IFRAME has bee开发者_运维知识库n escaped e.g.

&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;/div&gt;

The original page and the included page both have JQuery running. I've tried Googling this but just get results explaining how to use Javascript to escape from an Iframe.

This issue is present in Firefox, Chrome, Safari (Current Versions) plus IE6, 7 and 8.


You shouldn't use <iframe .../> but <iframe ...></iframe>.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号