Opened 11 years ago

Closed 11 years ago

#10416 closed Bug (invalid)

Tags within iframe-tag gets stripped

Reported by: davidegeland Owned by:
Priority: Normal Milestone:
Component: General Version: 4.1.1
Keywords: Cc:


Insert this code:

<iframe id="foobar" src="" frameborder="0" width="100%"><p>If you can read this, your browser doesn't support frames. <a href="">Click here</a>.</p></iframe> 

An extra iframe is generated, and all other tags are stripped from inside the <iframe>-tag.

If you remove the <p>-tag from the inside of the <iframe>-tag, no extra iframe is generated, but all other tags are still stripped.

Change History (1)

comment:1 Changed 11 years ago by Jakub Ś

Resolution: invalid
Status: newclosed

What you are trying to do is using invalid HTML syntax thus you get this weird result.

Iframe only allows normal character data to be used as its contents -

Below code will work and is valid:

<p><iframe frameborder="0" id="foobar" src="" width="100%">If you can read this, your browser doesn&#39;t support frames.</iframe></p>
Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy