Skip to content

Instantly share code, notes, and snippets.

@Shridhad Shridhad/toDOM.js
Created Nov 15, 2014

What would you like to do?
Convert the string into DOM element
String.prototype.toDOM = function() {
var element = document.createElement("div"),
fragment = document.createDocumentFragment();
return fragment;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.