MCPcopy
hub / github.com/textAngular/textAngular / parseEndTag

Function parseEndTag

src/textAngular-sanitize.js:411–428  ·  view source on GitHub ↗
(tag, tagName)

Source from the content-addressed store, hash-verified

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
431var hiddenPre=document.createElement("pre");

Callers 2

htmlParserFunction · 0.85
parseStartTagFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected