This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-button-element.html Multipage: http://www.whatwg.org/C#the-option-element Complete: http://www.whatwg.org/c#the-option-element Comment: option.text should skip script elements Posted from: 193.190.253.146 by ms2ger@gmail.com User agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Firefox/17.0
WebKit figured this out in <http://trac.webkit.org/changeset/11092>; we did in <https://bugzilla.mozilla.org/show_bug.cgi?id=801486>. Opera and WebKit skip both SVG and HTML script, but not script in other namespaces. IE skips only HTML script. I expect to make Gecko match WebKit/Opera. See <http://w3c-test.org/html/tests/submission/Ms2ger/the-elements-of-html/forms/the-option-element/option-text-recurse.html>.
Please check my wording, this is kinda convoluted.
Checked in as WHATWG revision r7652. Check-in comment: option.text needs to exclude script nodes, for compat reasons http://html5.org/tools/web-apps-tracker?from=7651&to=7652
Thanks, looks good.