Bug 22977 - New layout test to verify that local vars take precedence in form event handlers
Summary: New layout test to verify that local vars take precedence in form event handlers
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P3 Minor
Assignee: Pam Greene (IRC:pamg)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-23 08:15 PST by Glenn Wilson
Modified: 2008-12-29 11:22 PST (History)
1 user (show)

See Also:


Attachments
New layout test (2.49 KB, patch)
2008-12-23 08:17 PST, Glenn Wilson
darin: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Glenn Wilson 2008-12-23 08:15:53 PST
Adding new test to verify that using a locally-scoped variable in a form event handler takes precedence in evaluation over items (form elements) of that form.

Meaning, if a variable with a name of "value" is declared in an event handler of a form element, referring to "value" in that event handler will refer to the variable and not the value of the element.

Fortunately, I could not find any bugs that show WebKit ever had this behavior, so I did not link any.  Let me know if there's a corresponding bug here.
Comment 1 Glenn Wilson 2008-12-23 08:17:00 PST
Created attachment 26225 [details]
New layout test

Here is the test for this case.
Comment 2 Darin Adler 2008-12-23 08:29:19 PST
Comment on attachment 26225 [details]
New layout test

Looks fine. r=me
Comment 3 Pam Greene (IRC:pamg) 2008-12-29 10:43:28 PST
Will land.
Comment 4 Pam Greene (IRC:pamg) 2008-12-29 11:22:55 PST
Removed svn:executable property and landed as r39499.