Open Bug 1272450 Opened 8 years ago Updated 8 years ago

insertion of line breaks and blanks to <a href title=""> destroys tooltip view

Categories

(SeaMonkey :: Composer, defect)

SeaMonkey 2.40 Branch
defect
Not set
normal

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: bmajoros, Unassigned)

References

Details

(Keywords: reproducible)

Attachments

(3 files)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.94 Safari/537.36

Steps to reproduce:

Open up an existing HTML file having <a href title="text with multiple words"> element.


Actual results:

Composer reformatted the text inside the title attribute of the <a href> element to achieve equal indentation in the HTML source, but this is wrong, because when viewed in Chrome the title attribute text now has extraneous spaces due to the extraneous indentation introduced by Composer.


Expected results:

Composer should not try to "pretty-print" the text of attributes of <a href> elements.  Spaces introduced to achieve a nice indentation in the HTML source are interpreted as significant by other browsers, so this changes the appearance of the hover-over text.
Summary: incorrect formatting in <a href title=""> → insertion of line breaks and blanks to <a href title=""> destroys tooltip view
Attached file test document
Effect is REPRODUCIBLE with  English SeaMonkey 2.45a1  (Windows NT 6.1; WOW64; rv:48.0)  Gecko/20100101 Firefox/48.0 Build 20160308001946  (Default Classic Theme)  on German WIN7 64bit
1. Open attached document in Browser and move mouse pointer to text contents
   » 2 lines tooltip shown
2. Open attached document in Composer, add trailing blank, save, do Preview
   and in Browser  move mouse pointer to text contents
   » 3 lines tooltip shown with strange indent for lines 2, 3

I will do some more research later.
Keywords: reproducible
Same problem in Thunderbird, so probably a CORE problem
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: