hsp/compiler/treebuilder/syntaxTree.js
function (index, blocks, out) {
        // only called in case of error, i.e not digested by _elementOrComponent
        var block = blocks[index], name = block.name;
        if (isVoidElement(name)) {
          this._logError("The end element </" + name + "> was rejected as <" + name + "> is a void HTML element and can't have a closing element", block);
        } else {
          this._logError("End element </" + name + "> does not match any <" + name + "> element", block);
        }
        return index;
    }
function (index, blocks, out) {
        // only called in case of error, i.e not digested by _elementOrComponent
        var block = blocks[index], name = block.name;
        if (isVoidElement(name)) {
          this._logError("The end element </" + name + "> was rejected as <" + name + "> is a void HTML element and can't have a closing element", block);
        } else {
          this._logError("End element </" + name + "> does not match any <" + name + "> element", block);
        }
        return index;
    }
function ( index , blocks , out ) { // only called in case of error, i.e not digested by _elementOrComponent var block = blocks [ index ] , name = block . name ; if ( isVoidElement ( name ) ) { this . _logError ( "The end element </" + name + "> was rejected as <" + name + "> is a void HTML element and can't have a closing element" , block ) ; } else { this . _logError ( "End element </" + name + "> does not match any <" + name + "> element" , block ) ; } return index ; }
Captures isolated end elements to raise an error.
@param {Array} blocks the full list of blocks.
@param {Integer} index the index of the block to manage.
@param {Array} out the output as an array of Node.
@return {Integer} the index of the block where the function stopped or -1 if all blocks have been handled.
Captures isolated end elements to raise an error .