WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
149057
document.body = "text" should throw a TypeError, not a HierarchyRequestError
https://bugs.webkit.org/show_bug.cgi?id=149057
Summary
document.body = "text" should throw a TypeError, not a HierarchyRequestError
Chris Dumez
Reported
2015-09-10 21:35:32 PDT
document.body = "text" should throw a TypeError, not a HierarchyRequestError:
https://html.spec.whatwg.org/multipage/dom.html#dom-document-body
This is because "text" is a DOMString and it cannot be converted into an HTMLElement?. Therefore, the WebIDL specification says we should throw a TypeError in this case.
Attachments
Patch
(5.54 KB, patch)
2015-09-10 22:03 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2015-09-10 21:36:21 PDT
rdar://problem/22567157
Chris Dumez
Comment 2
2015-09-10 22:03:31 PDT
Created
attachment 260988
[details]
Patch
WebKit Commit Bot
Comment 3
2015-09-11 07:50:49 PDT
Comment on
attachment 260988
[details]
Patch Clearing flags on attachment: 260988 Committed
r189617
: <
http://trac.webkit.org/changeset/189617
>
WebKit Commit Bot
Comment 4
2015-09-11 07:50:53 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug