Closed Bug 532372 Opened 15 years ago Closed 15 years ago

Tooltips on input elements ignore line breaks

Categories

(Core :: Layout: Form Controls, defect)

x86_64
Windows 7
defect
Not set
trivial

Tracking

()

RESOLVED DUPLICATE of bug 358452

People

(Reporter: tor.edvardsson, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.4) Gecko/20091016 Firefox/3.5.4 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.4) Gecko/20091016 Firefox/3.5.4 Tooltips (title attribute) on input elements ignore line breaks in supplied string. The problem becomes apparent when trying to set the title attribute from JavaScript with strings containing any line break character ("\n"). Other browsers like Safari, Chrome and IE8 honors line breaks in the title attribute. This is also consistent with how line breaks is handled inside a textarea element. Reproducible: Always Steps to Reproduce: 1.Set up a test html page with the following <input type="bytton" value="A button" title="Tooltip with line break"/> (note that there is a line break after the word "Tooltip" ) 2.Trigger mouseover event. 3.Look at the displayed tooltip. Actual Results: Tooltipwith line break Expected Results: Tooltip with line break
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.