Created
September 20, 2010 21:55
-
-
Save apipkin/588718 to your computer and use it in GitHub Desktop.
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
// input :: <hr/> | |
Y.all('hr').each(function(hr){ | |
var div = Y.Node.create('<div class="hr"/>'); | |
Y.Node.insertBefore(div, hr); | |
div.append(hr.remove()); | |
}); | |
// output :: <div class="hr"><hr/></div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment