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.
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: