Closed
Bug 664997
Opened 14 years ago
Closed 14 years ago
TITLE (as arg to an HTML tag) should treat \n as space, else runonwords
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 358452
People
(Reporter: gebser, Unassigned)
Details
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110429 CentOS/3.6-1.el5.centos Firefox/3.6.17
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110429 CentOS/3.6-1.el5.centos Firefox/3.6.17
Past the code below into an HTML page and try it:
<p><dfn title="Where the text assigned to the title arg
contains a newline, HTML renderer should insert a space
character. Otherwise
the
words
are
run
together.">Put cursor over this text to see pop-up text (value of
title arg)</dfn></p>
This happens with any html tag which accepts a title arg.
Reproducible: Always
Steps to Reproduce:
1.Copy and paste the text in Details above into an HTML page.
2.Refresh that page.
3.Hold the cursor over the newly-inserted text.
4.Observe that where the code has a newline separating words, the words before and after the newline are run together asiftheyareoneword.
Actual Results:
As said above, the words before and after the newline are run together asiftheyareoneword.
Expected Results:
In parsing the text assigned to the 'title' arg, a newline should be replaced by a space... this to ensure a space is inserted between words and so that words aren't runtogetherlikethey'reoneword.
Thanks for fixing this and all the other nice work you do.
Comment 1•14 years ago
|
||
Spaces are the only allowed control characters according to: http://www.whatwg.org/specs/web-apps/current-work/multipage/syntax.html#syntax-text
HTML5 requires a line break in title tooltips
http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html#the-title-attribute
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•