[Webkit-unassigned] [Bug 69455] Option.value should trim extra internal html spaces

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 5 13:26:59 PDT 2011


Sachin Puranik <jcqt43 at motorola.com> changed:

           What    |Removed                     |Added
 Attachment #109848|                            |review?, commit-queue?
               Flag|                            |

--- Comment #1 from Sachin Puranik <jcqt43 at motorola.com>  2011-10-05 13:26:59 PST ---
Created an attachment (id=109848)
 --> (https://bugs.webkit.org/attachment.cgi?id=109848&action=review)
Patch fixing the space triming issue for value attribute.


1. Restructured the code as per comments in the bug #68684.
2. Fixed the internal space striping issue for option.value.
3. Added a test case.

One more question I have?

<option id="o1">Hello      Spaces</option>
var o = document.getElementById('o3');

Now first alert will be "Hello Spaces".
But after setting a "" value to option.value , it always returns "". is this correct behaviour. Now we can never go back to the original state and we will never get the option.value as  "Hello Spaces". is this correct? I feel this is inconsistent.

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