Bug 802562 - createElement(null) should work like createElement("null"); r=bz

This commit is contained in:
Aryeh Gregor 2012-10-21 13:46:39 +02:00
parent 70c46f800c
commit 024865a052
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ interface nsIDOMDocument : nsIDOMNode
readonly attribute nsIDOMDocumentType doctype;
readonly attribute nsIDOMDOMImplementation implementation;
readonly attribute nsIDOMElement documentElement;
nsIDOMElement createElement(in DOMString tagName)
nsIDOMElement createElement([Null(Stringify)] in DOMString tagName)
raises(DOMException);
nsIDOMDocumentFragment createDocumentFragment();
nsIDOMText createTextNode(in DOMString data);

View File

@ -80,7 +80,7 @@ var allNSTests =
var allNoNSTests =
[
{ args: [undefined] },
{ args: [null], code: 5 },
{ args: [null] },
{ args: [""], code: 5 },
{ args: ["<div>"], code: 5 },
{ args: ["0div"], code: 5 },