createElement(null) no longer throws exceptions

Published: | Categories: DOM | Creative Commons BY-SA 3.0

Description

Previously the document.createElement method has thrown exception INVALID_CHARACTER_ERR if the argument was null. The method now returns the HTMLUnknownElement object because the argument should be treated as a string and considered to be the same code as document.createElement("null").

References