Override DOMDocument->createElement()