Closed
Bug 47191
Opened 24 years ago
Closed 24 years ago
images fail to display if name is prefixed with space in double quotes
Categories
(Core :: DOM: HTML Parser, defect, P3)
Tracking
()
VERIFIED
FIXED
M18
People
(Reporter: ekrock, Assigned: waterson)
References
()
Details
(Whiteboard: [nsbeta3+] FIX IN HAND)
Attachments
(1 file)
4.67 KB,
patch
|
Details | Diff | Splinter Review |
Using Commercial 2000080104 on WinNT 4.0 SP4. To repro: 1) view page in Seamonkey; in table in middle of page, you see the *names* of four images, not the images themselves 2) view in Nav4 -- looks fine The problem: in the HTML source, in the double quotes for the name of the image file, the page author has included an extraneous space prior to the image name. Nav4 clearly had sympathetic parsing for this (which we'd do well to match!); apparently we don't. Here's the offending markup: <CENTER><TABLE BORDER CELLSPACING=2 BORDERCOLOR="#000000" WIDTH=450> <TR><TD WIDTH="50%" VALIGN="MIDDLE"> <P> <IMG SRC=" newmemsmall.gif" WIDTH=310 HEIGHT=174></TD> <TD WIDTH="50%" VALIGN="MIDDLE"> <P> <IMG SRC=" newmem2small.gif" WIDTH=310 HEIGHT=174></TD> </TR> <TR><TD WIDTH="50%" VALIGN="MIDDLE"> <P> <IMG SRC=" newmem3small.gif" WIDTH=310 HEIGHT=174></TD> <TD WIDTH="50%" VALIGN="MIDDLE"> <P> <IMG SRC=" newmem4small.gif" WIDTH=310 HEIGHT=174></TD> </TR> </TABLE> </CENTER> Note spaces prior to GIF names. (Checked View Source in Nav4 to make sure this wasn't a VS display bug; it's not.)
Reporter | ||
Comment 1•24 years ago
|
||
Nom. for nsbeta3 consideration as a correctness (e.g. 4xp) bug for existing markup. But we can future if lacking time; after all, the workaround is (presumably) to fix markup to drop the space.
Reporter | ||
Comment 2•24 years ago
|
||
Final comment: don't take the fact that I've nominated this for nsbeta3 consideration to mean that I strongly think we must fix this before RTM. I don't, unless we find lots of top100 pages that break because of this. This bug falls into the category of "if it's easy and the engineer has the cycles, we'd love to fix this, but we can FUTURE this easily if not."
Comment 3•24 years ago
|
||
Note to anyone planning to mark this INVALID -- spaces at the start and end of content in CDATA attributes should be ignored per the spec, so this is valid. It's also a minor issue...
Blocks: html4.01
Severity: normal → minor
Triaging rickg's bug list: This is not a parser issue. Parser just consumes everyting between quotes. The problem should be addressed in layout. Giving bug to waterson and ccing nisheeth and myself.
Assignee: rickg → waterson
Assignee | ||
Comment 5•24 years ago
|
||
this is a break-the-web problem. should be straight-forward to fix: strip off whitespace before using attribute somewhere.
Status: NEW → ASSIGNED
Whiteboard: [nsbeta3+]
Target Milestone: --- → M18
Assignee | ||
Comment 6•24 years ago
|
||
Attaching fix, which was to add string.Trim(" \n\r") at appropriate times before calling NS_MakeAbsoluteURI() or NS_NewURI().
Whiteboard: [nsbeta3+] → [nsbeta3+] FIX IN HAND
Assignee | ||
Comment 7•24 years ago
|
||
Assignee | ||
Comment 8•24 years ago
|
||
fix checked in. per jst's suggestion use " \t\r\n", not just " \r\n", as the characters to trim.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Verified on NT & Linux, this week's builds.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•