Closed Bug 284967 Opened 19 years ago Closed 9 years ago

the content of optgroup is copied to clipboard

Categories

(Core :: DOM: Serializers, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: masayuki, Unassigned)

References

()

Details

if we select surround a dropdown list that has optgroup element and we copy the
text, the content of optgroup is copied to clipboard.
the content of optgroup should not be copoied.

1. Go to https://bugzilla.mozilla.org/query.cgi?format=specific
2. Select the text from "flash crash mouse." to "Actions:".
3. Copy the text.

In this case, we get the following text.

=============================================================================
flash crash mouse.
Status: 	
Product: 	FirefoxThunderbirdMozilla Application SuiteCaminoCalendarMinimoOther
ApplicationsCoreToolkitNSPRDirectoryNSSPSMJSSRhinoBugzillaUpdateWebtoolsMozilla
LocalizationsDocumentationTech EvangelismMarketingmozilla.orgMozilla
ClassicGrendelCCK
Words: 	
	
Actions:
==============================================================================
that depends. if i'm copying to an html editor, then i definitely want that content.
Assignee: selection → dom-to-text
Component: Selection → DOM to Text Conversion
I can reproduce in Firefox/Trunk/Linux.

Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a1) Gecko/20051001 Firefox/1.6a1
OS: Windows XP → All
Assignee: dom-to-text → nobody
QA Contact: dom-to-text
The result with current Nightly:

--
 For example, if the bug you are looking for is a browser crash when you go to a secure web site with an embedded Flash animation, you might search for "crash secure SSL flash".
Status: 	
Product: 	
Words: 	
  	Search comments
--

So, <option>s are not copied now.

-> WFM
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.