Bug 21760

Summary: Inspector autocompletion auto-completes incorrectly in some cases
Product: WebKit Reporter: Oliver Hunt <oliver>
Component: Web Inspector (Deprecated)Assignee: Timothy Hatcher <timothy>
Status: VERIFIED FIXED    
Severity: Normal CC: aroben, timothy
Priority: P2 Keywords: HasReduction
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.5   
Attachments:
Description Flags
Proposed patch oliver: review+

Description Oliver Hunt 2008-10-20 15:44:48 PDT
Autocomplete in the inspector will suggest things that represent incorrect syntax, eg.
foo[0] = "bar"; foo.-> autocompletes to foo.0
foo["\u03bb"] = "lamda"; foo.-> autocompletes to foo.&#955;
foo["bar+4"] = "math"; foo.-> autocompletes to foo.bar+4 which does not have the desired effect.
Comment 1 Timothy Hatcher 2008-10-20 21:37:20 PDT
Created attachment 24536 [details]
Proposed patch
Comment 2 Timothy Hatcher 2008-10-20 21:52:34 PDT
Landed in r37757.