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:
Gabriel Wicke 2012-04-11 12:53:49 +02:00
parent 5a33099875
commit bbae66cd69

View file

@ -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;