Closed Bug 215372 Opened 21 years ago Closed 21 years ago

img alt does not render neither '\n' nor '<br>'

Categories

(SeaMonkey :: General, defect)

x86
All
defect
Not set
minor

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 45375

People

(Reporter: arysin, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4b) Gecko/20030313
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4b) Gecko/20030313

alt attribute of img element does not render properly '\n' symbol, neither it
does '<br>' tag so there's no way to break lines there

Reproducible: Always

Steps to Reproduce:
1. try to put this in <img src="" alt="line1\nline2"> html
2. 
3.

Actual Results:  
you'll see some symbol between line1 and line2

Expected Results:  
line1 and line2 should be split in two lines
Attached file testcase
actually on mozilla 1.4 with static HTML \n' in alt gives '\n' and with dynamic
HTML it just gives space
Dupe of bug 45375. See also bug 67127 and bug 47078.
The difference with the staic and dynamic version is easy : \n doesn't exists in
HTML, os it's rendered directly.

*** This bug has been marked as a duplicate of 45375 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: