nl_tokens: Compares HTML code but beautifies it before the comparison .
pl_tokens: function ( expected , actual , optionsOrMsg ) { var <mask> = optionsOrMsg instanceof Object ? optionsOrMsg : { message : optionsOrMsg } , msg = options . message , compatHtml = bender . tools && bender . tools . compatHtml ; if ( ! options . skipCompatHtml ) { var sortAttributes = ( 'sortAttributes' in options ) ? options . sortAttributes : true , fixZWS = ( 'fixZWS' in options ) ? options . fixZWS : true , fixNbsp = ( 'fixNbsp' in options ) ? options . fixNbsp : true ; if ( ! compatHtml ) { throw new Error ( 'Missing bender.tools.compatHtml' ) ; } expected = compatHtml ( expected , options . noInterWS , sortAttributes , fixZWS , options . fixStyles , fixNbsp , options . noTempElements , options . customFilters ) ; actual = compatHtml ( actual , options . noInterWS , sortAttributes , fixZWS , options . fixStyles , fixNbsp , options . noTempElements , options . customFilters ) ; } bender . assert . areSame ( html_beautify ( expected , this . _config ) , html_beautify ( actual , this . _config ) , msg ) ; }