(tag, tagName)
| 409 | } |
| 410 | |
| 411 | function parseEndTag(tag, tagName) { |
| 412 | var pos = 0, i; |
| 413 | tagName = angular.lowercase(tagName); |
| 414 | if (tagName) |
| 415 | // Find the closest opened tag of the same type |
| 416 | for (pos = stack.length - 1; pos >= 0; pos--) |
| 417 | if (stack[ pos ] == tagName) |
| 418 | break; |
| 419 | |
| 420 | if (pos >= 0) { |
| 421 | // Close all the open elements, up the stack |
| 422 | for (i = stack.length - 1; i >= pos; i--) |
| 423 | if (handler.end) handler.end(stack[ i ]); |
| 424 | |
| 425 | // Remove the open elements from the stack |
| 426 | stack.length = pos; |
| 427 | } |
| 428 | } |
| 429 | } |
| 430 | |
| 431 | var hiddenPre=document.createElement("pre"); |
no outgoing calls
no test coverage detected