Open Bug 718911 Opened 12 years ago Updated 2 years ago

window.find() doesn't respect white-spaces when searching inside pre elements

Categories

(Core :: DOM: Core & HTML, defect, P5)

8 Branch
x86_64
All
defect

Tracking

()

UNCONFIRMED

People

(Reporter: jarben, Unassigned)

References

(Depends on 1 open bug)

Details

(Keywords: reproducible, testcase, Whiteboard: [bugday-20131111])

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20100101 Firefox/8.0
Build ID: 20111104165243

Steps to reproduce:

See attachment, there is a string "        string" inside a pre element. When window.find(" string") is called it selects whole string including all spaces. 



Expected results:

it should select only the first space in the string. When find/replace mechanism uses window.focus method it collapses all spaces and incorrectly replaces spaces which are not selected by by user. 

Works as expected in webkit based browsers
Attachment #589391 - Attachment mime type: text/plain → text/html
Depends on: 672395
Reproduced with 2013-11-10-03-02-05-mozilla-central-firefox-28.0a1.en-US.linux-x86_64.
Component: Untriaged → DOM
OS: Windows 7 → All
Product: Firefox → Core
Whiteboard: [bugday-20131111]
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046

Move all DOM bugs that haven't been updated in more than 3 years and has no one currently assigned to P5.

If you have questions, please contact :mdaly.
Priority: -- → P5
Component: DOM → DOM: Core & HTML
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: