Opened 12 years ago

Closed 12 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:

Description

Insert this code:

<iframe id="foobar" src="http://www.ckeditor.com" frameborder="0" width="100%"><p>If you can read this, your browser doesn't support frames. <a href="http://www.ckeditor.com">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 12 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 - http://www.w3.org/TR/html-markup/iframe.html#iframe.

Below code will work and is valid:

<p><iframe frameborder="0" id="foobar" src="http://www.ckeditor.com" 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