This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
--- | |
provides : BuildSugar | |
version : 0.1alpha1 | |
description : Provides a bizarrely clean & simple syntax sugar for building HTML/XML strings | |
source : http://gist.github.com/278016 | |
git : git://gist.github.com/278016.git | |
demo : http://jsfiddle.net/SubtleGradient/4W3RR/ | |
author : Thomas Aylott |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Recursive depth-first search to find all shadow roots within a webpage. | |
* | |
* Example usage: let's imagine you come across a page that has a bunch of | |
* expandable information sections, and you would like to expand all of those | |
* info sections for the sake of printing to a PDF or for the ease of | |
* performing a simple `CTRL+F` search across the information. Let's assume | |
* those expanding buttons are buried within Shadow DOM. (Perhaps the site is | |
* using Angular or something of the sort & the buttons are separate | |
* components, thus by default they end up in a Shadow DOM whenever included.) |