MCPcopy Create free account
hub / github.com/unconed/TermKit / findParentElement

Function findParentElement

HTML/external/syntaxhighlighter_3.0.83/src/shCore.js:520–523  ·  view source on GitHub ↗

* Looks for a parent node which has specified classname. * This is an alias to findElement(container, className, true) . * @param {Element} target Target element. * @param {String} className Class name to look for. * @return {Element} Returns found parent element on null.

(target, className)

Source from the content-addressed store, hash-verified

518 * @return {Element} Returns found parent element on null.
519 */
520function findParentElement(target, className)
521{
522 return findElement(target, className, true);
523};
524
525/**
526 * Finds an index of element in the array.

Callers 2

shCore.jsFile · 0.85
quickCodeHandlerFunction · 0.85

Calls 1

findElementFunction · 0.85

Tested by

no test coverage detected