code: function handleBooleanAttribute(element, name, flag) {
  	if (flag)
  		element.setAttribute(name, name);
  	else
  		element.removeAttribute(name);
  }
docs: /*
  function removeCastingChildren(doc) {
  var element = doc.getElementById('xdh-casting');
  
  if (element)
  element.parentNode.removeChild(element);
  
  doc.head.appendChild(element = doc.createElement('xdh-casting'));
  
  element.id = 'xdh-casting';
  }