Index: includes/parser/Preprocessor_DOM.php =================================================================== --- includes/parser/Preprocessor_DOM.php (revision 60030) +++ includes/parser/Preprocessor_DOM.php (working copy) @@ -1034,7 +1034,7 @@ # Insert a heading marker only for children of # This is to stop extractSections from going over multiple tree levels if ( $contextNode->parentNode->nodeName == 'root' - && $this->parser->ot['html'] ) + && $this->parser->ot['html'] && $this->title ) { # Insert heading index marker $headingIndex = $contextNode->getAttribute( 'i' );