     el.appendChild(fragment)
 
 
-@el.getAttr = (el, attr) ->
+exports.getAttr = (el, attr) ->
   directAttr = directAttributes[attr]
   if directAttr
     el[directAttr]
 
 
-@el.setAttr = (el, attr, value) ->
+exports.setAttr = (el, attr, value) ->
   directAttr = directAttributes[attr]
   if directAttr
     if attr is 'html' and typeof value isnt 'string'

  'text': 'textContent'


@el.appendChildren = (el, children) ->
  if children.length
    fragment = doc.createDocumentFragment()
    for child in children

  else
    [tag, id, classes] = parseTagSpec(tagSpecOrEl)
    el = doc.createElement(tag)
    exports.setAttr(el, 'id', id) if id
    exports.setAttr(el, 'className', classes.join(' ')) if classes.length

  if children.length
    exports.setAttr(el, 'html', children)
