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

UNCONFIRMED
Unassigned

Status

()

Core
Selection
UNCONFIRMED
6 years ago
4 years ago

People

(Reporter: titombitel, Unassigned)

Tracking

(Depends on: 1 bug)

12 Branch
x86_64
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

6 years ago
Created attachment 627191 [details]
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.

Updated

6 years ago
Attachment #627191 - Attachment mime type: text/plain → text/html

Updated

4 years ago
Component: Untriaged → Selection
Depends on: 12460
Product: Firefox → Core
You need to log in before you can comment on or make changes to this bug.