Bug 137375

Summary: Web Inspector: Cannot add a new CSS Rule to elements with 3 or more class names
Product: WebKit Reporter: Joseph Pecoraro <joepeck>
Component: Web InspectorAssignee: Joseph Pecoraro <joepeck>
Status: RESOLVED FIXED    
Severity: Normal CC: benjamin, commit-queue, graouts, joepeck, timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
[PATCH] Proposed Fix none

Description Joseph Pecoraro 2014-10-02 18:13:00 PDT
* TEST

    <div class="one two three"></div>

* STEPS TO REPRODUCE
1. Inspect the <div> in the test
2. Open Styles Detail Sidebar
3. Open Rules tab
4. Click "+ Add Rule"
  => nothing happens, expected a new rule section

* NOTES:
- Clicking the button sends:
frontend: {"method":"CSS.addRule","params":{"contextNodeId":5,"selector":".one.two three"},"id":99}
That selector looks wrong. It should be ".one.two.three" not ".one.two three".
Comment 1 Radar WebKit Bug Importer 2014-10-02 18:13:10 PDT
<rdar://problem/18534519>
Comment 2 Joseph Pecoraro 2014-10-02 18:15:57 PDT
Created attachment 239168 [details]
[PATCH] Proposed Fix
Comment 3 Timothy Hatcher 2014-10-02 18:25:12 PDT
Comment on attachment 239168 [details]
[PATCH] Proposed Fix

Nice catch!
Comment 4 WebKit Commit Bot 2014-10-02 19:07:21 PDT
Comment on attachment 239168 [details]
[PATCH] Proposed Fix

Clearing flags on attachment: 239168

Committed r174254: <http://trac.webkit.org/changeset/174254>
Comment 5 WebKit Commit Bot 2014-10-02 19:07:24 PDT
All reviewed patches have been landed.  Closing bug.