mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 08:10:35 +00:00
Nominate more HTML5 sectioning and heading elements for block-level treatment
Block-level (in HTML4 lingo) elements are not wrapped into paragraphs. Change-Id: I4a01c9721be30b526172952915d528dea79e2f30
This commit is contained in:
parent
5a33099875
commit
bbae66cd69
|
@ -50,13 +50,27 @@ Util.prototype.isBlockTag = function ( name ) {
|
|||
//case 'img': // hmm!
|
||||
case 'pre':
|
||||
case 'center':
|
||||
case 'blockquote':
|
||||
// HTML5 heading content
|
||||
case 'h1':
|
||||
case 'h2':
|
||||
case 'h3':
|
||||
case 'h4':
|
||||
case 'h5':
|
||||
case 'h6':
|
||||
case 'hgroup':
|
||||
// HTML5 sectioning content
|
||||
case 'article':
|
||||
case 'aside':
|
||||
case 'nav':
|
||||
case 'section':
|
||||
case 'header':
|
||||
case 'footer':
|
||||
case 'header':
|
||||
case 'figure':
|
||||
case 'figcaption':
|
||||
case 'fieldset':
|
||||
case 'details':
|
||||
case 'blockquote':
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue