Opened 8 years ago
Last modified 8 years ago
#16907 confirmed Bug
Iframe plugin uses deprecated attributes and allows invalid values in HTML5
Reported by: | Tomasz Jakut | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 4.0 |
Keywords: | Cc: |
Description
Steps to reproduce
- Open editor with iframe plugin (e.g. http://sdk.ckeditor.com/samples/fullpreset.html ) and clear its content.
- Click "Iframe" button.
- Set URL to
http://wikipedia.org
, "Width" to100%
, "Height" to800px
, "Align" to "Middle". - Check "Enable scrollbars" and "Show frame border".
- Click OK.
- Go into source mode and copy generated code into https://validator.w3.org/nu/#textarea
- Validate HTML
Expected result
- Editor should not allow to set "Width" to "100%" (only digits should be allowed).
- Editor should not allow to set "Height" to "800px" (only digits should be allowed).
- No validation errors found.
Actual result
5 validation errors are found:
Bad value 800px for attribute height on element iframe: Expected a digit but saw p instead.
Bad value 100% for attribute width on element iframe: Expected a digit but saw % instead.
The align attribute on the iframe element is obsolete.
The frameborder attribute on the iframe element is obsolete.
The scrolling attribute on the iframe element is obsolete.
Change History (2)
comment:1 Changed 8 years ago by
Status: | new → confirmed |
---|
comment:2 Changed 8 years ago by
Version: | 4.7.0 (GitHub - major) → 4.0 |
---|
#7207 was marked as duplicate.