Closed
Bug 303153
Opened 19 years ago
Closed 19 years ago
right-click search collapses newlines to nothing, joining words and invalidating search
Categories
(Firefox :: Menus, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 270297
People
(Reporter: bugzilla.e.wuuza, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6
The right-click context menu always has a "Search for ..." option when text is
selected. However, if that text spans multiple lines (due to a markup break,
not a break due to browser line-wrapping), the line break is removed. The
resulting search is invalid because two words are run together. Whitespace due
to page markup should be collapsed to a single space for the search.
Take, for instance, an address rendered in code like this:
<p>123 Main St</p>
<p>City, State 10001</p>
With Google now returning links to maps when searching for addresses, it is
handy just to be able to select the address, right-click, and search. However,
right now Firefox searches for "123 Main StCity, State 10001". Collapsing the
paragraph break to a single space would yield a much more useful search for "123
Main St City, State 10001".
Reproducible: Always
Steps to Reproduce:
Given a page containing this code or something like it:
<p>123 Main St</p>
<p>City, State 10001</p>
Select all the text, right-click, and "Search for ..."
Actual Results:
Firefox searches for "123 Main StCity, State 10001"
Expected Results:
Firefox searches for "123 Main St City, State 10001"
Comment 1•19 years ago
|
||
*** This bug has been marked as a duplicate of 270297 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•