Make CreateElement comply with the spec.
auto merge of #910 : metajack/servo/fix-create-element, r=jdm