Sync DOMImplementation.createDocument() IDL with spec

https://dom.spec.whatwg.org/#interface-domimplementation

Because DOMImplementation::createDocument calls qualifiedName.isEmpty()
there is no observable difference when qualifiedName is null.

The added [TypeChecking=Interface] only affects the generated code for
the doctype argument, where passing a non-null, non-DocType object will
now throw an exception.

Firefox Nightly and IE11 pass all of the new tests, with the exception
of IE11 throwing an exception when the doctype argument is undefined. In
other words, the cases where we now throw exceptions already throw
exceptions in Firefox and IE, making it likely Web compatible.

TEST=LayoutTests/fast/dom/DOMImplementation/createDocument-doctype-err.html

Review URL: https://codereview.chromium.org/762383004

git-svn-id: svn://svn.chromium.org/blink/trunk@186779 bbb929c8-8fbe-4397-9dbb-9b2b20218538
5 files changed
tree: 68110f80a002ffde9e2cfe774173d96b13205f10
  1. third_party/