Skip to content

Instantly share code, notes, and snippets.

@slorber
Created January 8, 2015 12:22
Show Gist options
  • Select an option

  • Save slorber/4b3e88a041d33df851d3 to your computer and use it in GitHub Desktop.

Select an option

Save slorber/4b3e88a041d33df851d3 to your computer and use it in GitHub Desktop.
exports.highlightStampleDescription = function highlightBlock(descriptionDiv) {
//$(descriptionDiv).find("pre").first().remove();
console.error("##################################################");
console.debug("DOM node in document?",document.contains(descriptionDiv));
console.debug("DOM node has parent?",descriptionDiv.parentNode);
var codeDivs = $(descriptionDiv).find("pre").get();
console.debug("codeDivs",codeDivs);
_.each(codeDivs,function(codeDiv) {
console.error("child DOM node has parent?",codeDiv.parentNode);
exports.highlightBlock(codeDiv);
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment