WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 134841
135009
assign undefined value to Element property throws TypeError
https://bugs.webkit.org/show_bug.cgi?id=135009
Summary
assign undefined value to Element property throws TypeError
ShihChi Huang
Reported
2014-07-16 22:50:14 PDT
Prior to iOS8 Safari / Safari 8.0 if we assign undefined to Element property (like document.body.scrollTop) it fallback to 0 ```js document.body.scrollTop = undefined; TypeError: Type error column: 110 line: 1 message: "Type error" stack: "eval code↵eval@[native code]↵_evaluateOn↵_evaluateAndWrap↵evaluate" __proto__: Error ```
Attachments
Add attachment
proposed patch, testcase, etc.
Oliver Hunt
Comment 1
2014-07-17 17:08:11 PDT
Hmmm, this is complaining about assigning NaN (undefined is being number coerced) Maybe due to fractional coordinates?
Alexey Proskuryakov
Comment 2
2014-07-17 17:11:46 PDT
Good point. Can you still reproduce with a current WebKit nightly? I thought that the fractional coordinate change was already undone.
Oliver Hunt
Comment 3
2014-07-17 17:13:06 PDT
I think this is a dupe of
bug #134841
ShihChi Huang
Comment 4
2014-07-17 18:05:27 PDT
awesome, I cannot repro in webkit nightly
r171105
alan
Comment 5
2014-07-17 18:31:12 PDT
(In reply to
comment #2
)
> Good point. Can you still reproduce with a current WebKit nightly? I thought that the fractional coordinate change was already undone.
It's been reverted only for Element.scroll*. Other properties' (Element.offset*, Element.client*) return type is still double. *** This bug has been marked as a duplicate of
bug 134841
***
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