@@ -271,14 +271,14 @@ function htmlParser(html, handler) {
271271 }
272272 }
273273 var index , chars , match , stack = [ ] , last = html , text ;
274- stack . last = function ( ) { return stack [ stack . length - 1 ] ; } ;
274+ stack . last = function ( ) { return stack [ stack . length - 1 ] ; } ;
275275
276276 while ( html ) {
277277 text = '' ;
278278 chars = true ;
279279
280280 // Make sure we're not in a script or style element
281- if ( ! stack . last ( ) || ! specialElements [ stack . last ( ) ] ) {
281+ if ( ! stack . last ( ) || ! specialElements [ stack . last ( ) ] ) {
282282
283283 // Comment
284284 if ( html . indexOf ( "<!--" ) === 0 ) {
@@ -360,17 +360,17 @@ function htmlParser(html, handler) {
360360
361361 function parseStartTag ( tag , tagName , rest , unary ) {
362362 tagName = angular . lowercase ( tagName ) ;
363- if ( blockElements [ tagName ] ) {
364- while ( stack . last ( ) && inlineElements [ stack . last ( ) ] ) {
363+ if ( blockElements [ tagName ] ) {
364+ while ( stack . last ( ) && inlineElements [ stack . last ( ) ] ) {
365365 parseEndTag ( "" , stack . last ( ) ) ;
366366 }
367367 }
368368
369- if ( optionalEndTagElements [ tagName ] && stack . last ( ) == tagName ) {
369+ if ( optionalEndTagElements [ tagName ] && stack . last ( ) == tagName ) {
370370 parseEndTag ( "" , tagName ) ;
371371 }
372372
373- unary = voidElements [ tagName ] || ! ! unary ;
373+ unary = voidElements [ tagName ] || ! ! unary ;
374374
375375 if ( ! unary )
376376 stack . push ( tagName ) ;
@@ -395,13 +395,13 @@ function htmlParser(html, handler) {
395395 if ( tagName )
396396 // Find the closest opened tag of the same type
397397 for ( pos = stack . length - 1 ; pos >= 0 ; pos -- )
398- if ( stack [ pos ] == tagName )
398+ if ( stack [ pos ] == tagName )
399399 break ;
400400
401401 if ( pos >= 0 ) {
402402 // Close all the open elements, up the stack
403403 for ( i = stack . length - 1 ; i >= pos ; i -- )
404- if ( handler . end ) handler . end ( stack [ i ] ) ;
404+ if ( handler . end ) handler . end ( stack [ i ] ) ;
405405
406406 // Remove the open elements from the stack
407407 stack . length = pos ;
0 commit comments