Opened 9 years ago
Closed 9 years ago
#13680 closed Bug (fixed)
<summary> should support heading content
Reported by: | stephaniehobson | Owned by: | Szymon Cofalik |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 4.5.4 |
Component: | General | Version: | 4.0 |
Keywords: | Cc: |
Description
Steps to reproduce
- switch to source view
- create a <details> element
- put a <summary> element inside it
- put a <h2> element inside that
- switch to preview
- switch to source view
- <summary> is no longer around <h2>
Expected result
<summary><h2>Summary</h2></summary>
Actual result
<summary></summary><h2>Summary</h2>
Other details (browser, OS, CKEditor version, installed plugins)
Heading content is acceptable according to the spec: http://www.w3.org/html/wg/drafts/html/master/semantics.html#the-summary-element
The 'open' attribute is also being stripped off the <details> element but I'm not yet 100% sure that's not a problem with our configuration.
FireFox 41 OSX 10.10.14 CKEditor: 4.4.8 Plugins: a11yhelp: 1, autogrow: 1, basicstyles: 1, bidi: 1, blockquote: 1, clipboard: 1, contextmenu: 1, dialogadvtab: 1, elementspath: 1, enterkey: 1, entities: 1, find: 1, htmlwriter: 1, image: 1, indentlist: 1, language: 1, link: 1, list: 1, liststyle: 1, magicline: 1, maximize: 1, pastefromword: 1, pastetext: 1, removeformat: 1, resize: 1, scayt: 1, sharedspace: 1, showblocks: 1, showborders: 1, sourcearea: 1, stylescombo: 1, tab:1, table: 1, tabletools: 1, toolbar: 1, undo: 1, wsc: 1, wysiwygarea: 1, 'mdn-attachment': 1, 'mdn-format': 1, 'mdn-sticky-toolbar': 1, 'mdn-image-attachment': 1, 'mdn-link-customization': 1, 'mdn-link-launch': 1, 'mdn-redirect': 1, 'mdn-sample-finder': 1, 'mdn-sampler': 1, 'mdn-spell': 1, 'mdn-syntaxhighlighter': 1, 'mdn-system-integration': 1, 'mdn-table-customization': 1, 'mdn-toggle-block': 1, 'mdn-wrapstyle': 1, 'mdn-youtube': 1, descriptionlist: 1, tablesort: 1, texzilla: 1
Change History (9)
comment:1 Changed 9 years ago by
Milestone: | → CKEditor 4.5.4 |
---|---|
Status: | new → confirmed |
Version: | 4.4.8 → 4.0 |
comment:2 Changed 9 years ago by
Owner: | set to Szymon Cofalik |
---|---|
Status: | confirmed → assigned |
comment:4 Changed 9 years ago by
Status: | assigned → review |
---|
comment:5 Changed 9 years ago by
Status: | review → review_failed |
---|
Test, please ;>. Simple one in the htmlparser will be enough.
comment:8 Changed 9 years ago by
Status: | review_failed → review |
---|
comment:9 Changed 9 years ago by
Resolution: | → fixed |
---|---|
Status: | review → closed |
Fixed on master with git:cb9f37c.
I checked the spec (http://www.w3.org/html/wg/drafts/html/master/semantics.html#the-summary-element) and you're right. Perhaps it was updated after we created our DTD.
I guess following workaround should work: