Open Bug 758580 Opened 12 years ago Updated 2 years ago

Quotation marks that come from tag <q> are copied and searched badly

Categories

(Core :: DOM: Selection, defect)

12 Branch
defect

Tracking

()

People

(Reporter: titombitel, Unassigned)

References

(Depends on 1 open bug)

Details

Attachments

(1 file)

Attached file selection_bug.html
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20100101 Firefox/12.0
Build ID: 2012042100

Steps to reproduce:

1. Just opened that webpage: http://rudy.mif.pg.gda.pl/~bogdro/linux/linux01.html
2. Tried to select and copy-paste text inside and outside quotation marks.

This text is near "Do rejestru ECX (32-bitowy) lub RSI (64-bitowy) wstaw offset (adres) etykiety", search for it.

3. Tried to search text with quotation marks.


Actual results:

2. The text I'm now talking about is:
--------------
 etykiety "tekst". 
--------------

Source code:
--------------
etykiety <q>tekst</q>.
--------------

When I select:
--------------
etykiety "tek
--------------
and copy-paste it, I get:
--------------
etykiety "tek"
--------------
As you can see, the quotation mark after last "k" appears in the pasted text. It shouldn't.
It doesn't matter if you select normal text on the left and quotation on the right or oppositely.
When I select and copy-paste any letters inside quotation marks, like:
--------------
tekst
--------------
It, s OK, no quotation marks appear.
So the bug happens only when the user selects text both inside and outside the <q> tags.

2. Also, Ctrl+F finds text with normal( " ) quotation marks and doesn't find text with those " marks that come from <q>. 
This cannot be found:
--------------
etykiety "tek
--------------
This can:
--------------
tekst db "Cze
--------------
because in the source code it looks like this:
--------------
tekst	db	"Cze
--------------
no <q> tags.


Expected results:

It should be copied ok and found ok.
Attachment #627191 - Attachment mime type: text/plain → text/html
Component: Untriaged → Selection
Depends on: 12460
Product: Firefox → Core
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Linux → All
Hardware: x86_64 → All
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: