[Webkit-unassigned] [Bug 88749] HTMLSelectElement::selectedOptions returns wrong collection
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jun 26 18:09:41 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=88749
--- Comment #6 from Alexis Menard (darktears) <alexis.menard at openbossa.org> 2012-06-26 18:09:39 PST ---
(In reply to comment #5)
> The rollout is overkill. I can just fix the bug. Now I will need to land again the feature + fix it :(.
For the record :
http://jsfiddle.net/f39cC/20/
works fine.
What seems to get crazy is when using :
output.innerHTML = ([]).map.call(this.selectedOptions, function(so) {return so.value;}).join();
console.log(([]).map.call(this.selectedOptions, function(so) {return so.value;}).join());
together. Using one of them at a time is fine.
"because this feature is incomplete at all."
Well we just spotted a bug, but as the jsfiddle shows the basic use case work.
We do have a problem I agree with that and it's related to the selected state not invalidating properly the selectedOptions collection.
Also I couldn't reproduce with the suggestion of comment #1 unless I missed something.
I do have a patch here to fix the original issue, I'll cleanup and upload tomorrow.
--
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