Bug 33588

Summary: Deleting attribute’s first apostrophe appends additional one at the end
Product: WebKit Reporter: Piotr Petrus <itunesgripes>
Component: Web Inspector (Deprecated)Assignee: Nobody <webkit-unassigned>
Status: RESOLVED WONTFIX    
Severity: Minor CC: apavlov
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac (Intel)   
OS: OS X 10.6   

Description Piotr Petrus 2010-01-13 04:32:03 PST
1. Open Web Inspector, Elements pane
2. Double click any attribute. The edit field will appear, and the value of the attribute will be selected.
3. Move cursor to the left and delete first " character (opening apostrophe)
4. Press Return to cofirm the change. The attribute will now have an additional apostrophe at the end.

Example:

1. Go to http://webkit.org/quality/bugwriting.html
2. Edit attribute id="title"
3. After aforementioned change, the attribute will read id="title""

Comments:

This behavior will occur infinite number of times – deleting first apostrophe always appends additional apostrophe at the end.
Comment 1 Alexander Pavlov (apavlov) 2011-11-03 06:43:28 PDT
This is the expected behavior, as the parser attempts to quote unquoted values, so that
width=90%
will be mapped to
width="90%"