Skip to content

Commit cb9f37c

Browse files
committed
Merge branch 't/13680'
2 parents 2e699f0 + 7d8dd6a commit cb9f37c

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Fixed Issues:
1414
* [#13599](http://dev.ckeditor.com/ticket/13599): Fixed: Cross-editor D&D of inline widget ends up in error/artifacts.
1515
* [#13640](http://dev.ckeditor.com/ticket/13640): [IE] Fixed: Dropping a widget outside body is not handled correctly.
1616
* [#13533](http://dev.ckeditor.com/ticket/13533): Fixed: No progress during upload.
17+
* [#13680](http://dev.ckeditor.com/ticket/13680): Fixed: The parser should allow `<h1-6>` to be a child of the `<summary>` element.
1718

1819
Other Changes:
1920

core/dtd.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ CKEDITOR.dtd = ( function() {
194194
strong: P,
195195
style: T,
196196
sub: P,
197-
summary: P,
197+
summary: X( { h1: 1, h2: 1, h3: 1, h4: 1, h5: 1, h6: 1 }, P ),
198198
sup: P,
199199
table: { caption: 1, colgroup: 1, thead: 1, tfoot: 1, tbody: 1, tr: 1 },
200200
tbody: { tr: 1 },

tests/core/htmlparser/htmlparser.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,13 @@
310310
parser.parse( html );
311311
assert.areSame( expectedTags, tags.join( ',' ), 'tags - ' + msg );
312312
}
313+
},
314+
315+
// #13680
316+
'test header elements in summary tag': function() {
317+
assert.areSame( '<summary><h2>Summary</h2></summary>',
318+
htmlParse( '<summary><h2>Summary</h2></summary>' ) );
313319
}
314320
} );
315321

316-
} )();
322+
} )();

0 commit comments

Comments
 (0)