(jQuery and friends) DOM Factory Wrapper
Overview
$div === $('<div>'); //in the jQuery version OR
$div === document.createElement('div'); //in the vanilla Javascript version
This applies to any html tag we can use. ( or at least listed here ) You also can use it with another $ libraries like Zepto or Ender.
Installation
Just paste or include the helm.js code before writing your own code and after any dependency if needed (as in the jQuery version)
Look inside the example files of each version to find the specific use.
More
For a deeper explanation ( with code review included ) go read my blog post about helmjs.
Found any typo or grammar misuse? please report it.
And this is a Helm-et:
..,:::;;;;:::,,.
.,;riSS5SSiisssssiiiiiSisr:,.
,;i55ir;:,.. . ..,,.,r,.
,rS5s;,. :@Xrs:.
.;S5s:. @r ;iS;.
,r5i;. ....... @s :iS;.
.r5r, ,,........ #S .. :Si,
;5r, .,........ Si .... .r5;.
si: ......... ;i ...... :5r.
.ir. ....... ........ ,Si.
.i; ....... r........ .ii.
s; ....... ,,......... .is.
;; ,S#@@A. .......,,........... .5;
,; :sAhsi2@@@s ...........,,........ .. :S.
;. . .r2HXGB#s ,. r@@ ................... . r;
.:.... ,,:iXssXH3G, , ,@@ ................. .,s.
, .,,.,:s;;sisr.., iASXr:..;@@; ................ ..r,
.2 .;25,r5hr;rr;;:;, .H@9X&AM@@@i ................. .;:
:S .;Sr.;sS::;;;;::sX@@@@@99@@@X .................. ;:
;r .;S:.;ss,:;;;::,r5s2H@M2H#@G .................. :;
s; .;i,,;sr,;;;;::,rirrrrrA#@& ..,............... :;
i, ,;i.,;ir,;;;:::,sisssSA#@X .,................. ,:, ;:
5. ,rr.:;i;,;;;;:,:iis5&@@@; ,................ ,:;rA@r ;,
.5 .:sr.:ri::;;;::,,i2A@@#r .,................ .;:;;:,G@r .;.
:i .:i:.;ri,:;;;::,5M@@#; .,................. ;:;: s.,@@ .;
;r .;S,.;rs,:;;:::2@@A: .,,.................. ,;:;::; i@A .. ;:
s: .;i,,;rr.:;;;rs#H, .,,.................... ;r;;;:A@M .....;.
S. ,;s.,r2;;S23GAX. .,,....................... :2AM@A: ... :,
S :3S:X#@h&H9S; .,,,........................ .....,;X;
:@. ;s9@9sSr:. ..,,............................ .,:;Sh#@s,
;#isr;. ..,,,............................... .,:r2B@@@@Bs
:. .....,,,,,..................................,;ih#@@@#hr.
:. ............................................ .:;2H@@@@M2:
:, .. .. ............ .,;ih#@@@@As,
::.. ... .;s9M@@@@#2;
.;.. .:i9#@@@@@&s,
,:.. .:sG@@@@@@B5;
:,.. ,r3@@@@@@#3r,
.:.. ,iB@@@@@@Gs:
.:.. ,sM@@@@@BS;
,,.. .rM@@@@#3r,
,, .rA@@@@BS;, ..,,,,,,,,.....
.:iM@@@@Ai:,...,:::;;;;;;;;;;::::,,,,.....
.2@@@3r:,,,,::;;;;;;;;;;;;;::::::,,,,,,,....
..,,,:::::::::::::::::,,,,,,,,,......
........,,,.,,,,..........