[Webkit-unassigned] [Bug 71113] New: someEvent.type is not writable
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Oct 28 05:50:45 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=71113
Summary: someEvent.type is not writable
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: HTML DOM
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: raynos2 at gmail.com
var e = document.createEvent("UIEvent");
var pd = Object.getOwnPropertyDescriptor(e, "type");
console.log(pd.writable); // type is writable
e.type = "foobar";
console.log(e.type === ""); // Webkit Y U DO THIS.
test : http://jsfiddle.net/WxA3a/1/ in chrome 14.
I presume this is an issue with `e.type` living in C++ land and `e.type = "foobar"` living in ES land.
As a sidenote
delete e.type;
e.type = "click";
breaks e.initEvent()
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list