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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Oct 10 03:09:13 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=69455





--- Comment #3 from Sachin Puranik <jcqt43 at motorola.com>  2011-10-10 03:09:14 PST ---
Hi,
Below is the behavior in the various browsers. I am taking an example for value attribute and assuming that "label" attribute also need not be any different.

Attached is the test case I have tested.

IE.(Win) ( I have tested only on IE8 will also update the comment @ the IE 9)
1. in case "value/label" content attribute is not present, it returns NULL and Not the "textContent". Does not meet spec.

Hence this is not the appropriate case to be considered for comparison.

FireFox:(Win - 7.01)
1. In case "value" attribute is not present, it returns the "textContent" with inner html spaces trimmed.( This is issue in the Webkit which is fixed with the attached patch) But after this if we set option.value="" then it starts returning "". 

Opera:(Win - 11.51)
1. In case "value" attribute is not present, it returns the "textContent" with  internal html space trimmed. But after this if we set option.value="" then it starts returning "". 

Chrome/Webkit: (Win - 12.0.742.112)
Same as opera , except a small bug. The internal html space on "textContent" is not trimmed. This is fixed in the attached patch. This change is needed in webkit.


I will update the IE9 behavior in the bug tonight.

-- 
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