[whatwg/dom] Change createElement to report exceptions instead of rethrowing (#341)

Such exceptions can occur due to custom element constructors or invariant checks. This closes https://github.com/w3c/webcomponents/issues/569 by moving the catch-and-return-HTMLUnknownElement from HTML to DOM; HTML will subsequently be updated to remove that logic.

/cc @rniwa @dominiccooney. HTML PR incoming; I am hoping @rniwa can upstream his test changes from https://bugs.webkit.org/attachment.cgi?id=290872&action=prettypatch
You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/dom/pull/341

-- Commit Summary --

  * Change createElement to report exceptions instead of rethrowing

-- File Changes --

    M dom.bs (16)
    M dom.html (12)

-- Patch Links --

https://github.com/whatwg/dom/pull/341.patch
https://github.com/whatwg/dom/pull/341.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/341

Received on Monday, 10 October 2016 20:45:15 UTC