This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 19549 - option.text should skip script elements
Summary: option.text should skip script elements
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-16 12:45 UTC by contributor
Modified: 2013-01-26 10:49 UTC (History)
3 users (show)

See Also:


Attachments

Description contributor 2012-10-16 12:45:41 UTC
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
Comment 1 Ms2ger 2012-10-16 13:02:43 UTC
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>.
Comment 2 Ian 'Hixie' Hickson 2013-01-26 00:56:59 UTC
Please check my wording, this is kinda convoluted.
Comment 3 contributor 2013-01-26 00:58:15 UTC
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
Comment 4 Ms2ger 2013-01-26 10:49:42 UTC
Thanks, looks good.