Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

dom.node

oatkiller edited this page Sep 13, 2010 · 4 revisions

does the same as dom.fragment accept you pass it one node and get back a single node instead of a documentFragment.

don’t use with tables

(function () {
	
// returns the div
var my_div = o.dom.node('<div id="my_div"><a href="#" title="my link">asdf</a>foo</div>');
	
})();
Clone this wiki locally