Improvements to DOMElement.

Signed-off-by: Grant Skinner <info@gskinner.com>