patocardo/DOM-Rich-Text — comment on commit 3288a58303e24051b078fd6b050a2eef584a2c05
File: comunes0_6.js line 497
By patocardo:

Very useful shortcut, widely used in DOMRichText code. It creates a node in a HTMLElement, with attributes and content, and can be inserted before or after a reference node, everything in just one line.
Usage:
p_.nodo(
tag → str tagName for elements or 'text' for text node,
padre → HTMLElement or id string for set a parentNode, or bool false without a parentNode
attrib → object with attributes and values, e.g.: { id : 'myelem', style: { fontSize: '10pt', backgroundColor:'#eeeeee'}}
inhtml → str to convert to textNode or HTMLElement as a child of the new element
ref → HTMLElement that is a reference sibling
delante → bool true: after the ref, false before he ref.
)