Opened 15 years ago
Last modified 13 years ago
#4902 confirmed Bug
<style> output formatting incorrect
Reported by: | Garry Yao | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | Core : Output Data | Version: | 3.0 |
Keywords: | Cc: |
Description
Style tag content should be left as untouched.
Reproducing Procedures
- Open any sample page, load editor with the following content:
<style> span { color: blue } </style> <p> <span>text</span></p>
- Switch to 'wysiwyg' mode and back to 'source' mode.
- Actual Result:
<style type="text/css"> span { color: blue }</style> <p> <span>text</span></p>
- Expected Result: Output is same as original source.
Reproducible from CKEditor 3.0 in all browsers.
What @garry.yao means here is that indentation before first <style> tag is removed. CKEditor also adds
type="text/css"
to style tag but that part is ok.