Closed
Bug 6347
Opened 26 years ago
Closed 24 years ago
The <wbr> element is weaker than <nobr> {ll}
Categories
(Core :: Layout, defect, P4)
Core
Layout
Tracking
()
RESOLVED
WONTFIX
Future
People
(Reporter: momoi, Assigned: buster)
References
()
Details
(4 keywords, Whiteboard: recommend WONTFIX: have workaround, non-standard extension)
Attachments
(1 file)
(deleted),
text/html
|
Details |
** Observed with 5/13/99 Win32 and Mac apprunner **
This problem was obaserved on a Yahoo Japan new headlines page
today. I copied the page to the above URL. It seems that we truncate a
line when the items listed with <li> with <nobr> gets too long. These
items are actually in a table cell.
In 4.6, this page is displayed correctly like this:
http://kaze:8000/bugs/4.6yahoo.gif
Note there is no truncation on the 2nd bulleted item on the right
column. Now contrast this with the view on 5.0 Browser:
http://kaze:8000/bugs/5.0yahoo.gif
Note that this time, the 2nd bulleted line is truncated.
This can be avoided if we eliminate <nobr> ... </nobr> around the
2nd item.
This page is in Japanese. You can display it with a Bitstream font
or any other Japanese font as long as it's installed on your system.
If you need a Windows Bitstream font, you can find it here:
ftp://ftp.netscape.com/pub/communicator/extras/fonts/windows/Cyberbit.ZIP
Updated•26 years ago
|
Severity: major → minor
Summary: A long <li> line with <nobr> gets truncated → {compat} The <wbr> element is weaker than <nobr>
Whiteboard: (py8ieh:will check if this occurs with whitespace:nowrap too)
Comment 2•26 years ago
|
||
Actually, the error is simply that <wbr> and <nobr> elements have different
priorities in Gecko than in 4.x browsers.
<nobr> This "should" never break, except at <br>
elements (always) and at <wbr>
elements (if required.) </nobr>
Currently, <nobr> is overriding <wbr>, so the above would only ever break on
the <br>.
Here is a simplified test case for this:
http://www.bath.ac.uk/%7Epy8ieh/internet/projects/mozilla/wbr.html
There is another bug on this page, namely the actual truncation. It is not
actully related to <nobr>; it is a tables issue. I will file another bug.
Severity: minor → major
Priority: P3 → P4
Summary: {compat} The <wbr> element is weaker than <nobr> → {yikes} {compat} The <wbr> element is weaker than <nobr>
Comment 5•26 years ago
|
||
Updated•26 years ago
|
Whiteboard: [TESTCASE] <wbr> is weaker than <nobr>
Comment 6•26 years ago
|
||
Overview Description:
<wbr> weaker than <nobr>
Steps to reproduct:
1) load the attachment
2 [details] [diff] [review]) have a look at line 2
Actual results:
no line break, even if you resize the window so that the text doesn't fit the
line.
Expected resuls:
line break
Build Date & Platform:
M7 & 1999071417 build
Summary: {yikes} {compat} The <wbr> element is weaker than <nobr> → {ll} {compat} The <wbr> element is weaker than <nobr>
Why are you re-reassing layout bugs? Do NOT touch layout bugs.
The bugs are assigned to Kipp so they can stay neatly organized until we have a
new owner for the block/inline code.
mass moving all Kipp's pre-beta bugs to M15. Nisheeth and I will
prioritize these and selectively move high-priority bugs into M13 and M14.
Comment 10•25 years ago
|
||
Bulk moving [testcase] code to new testcase keyword. Sorry for the spam!
Keywords: testcase
Comment 11•25 years ago
|
||
I'm currently working on some related stuff, so I guess it's worth a look...
Thank's to Momoi-san for pointing this bug...
Status: NEW → ASSIGNED
Comment 12•25 years ago
|
||
jbetak: did you mean to assign this bug to yourself?
Assignee | ||
Comment 13•25 years ago
|
||
mine! mine mine mine! all mine! whoo-hoo!
Assignee: kipp → buster
Status: ASSIGNED → NEW
Assignee | ||
Comment 15•25 years ago
|
||
will be very tough to get this fixed for FCS, unless someone else can do it.
Comment 16•25 years ago
|
||
jbetak: You commented above that you might look at this -- do you still intend
to do so?
Keywords: compat
Priority: P3 → P4
Summary: {ll} {compat} The <wbr> element is weaker than <nobr> → The <wbr> element is weaker than <nobr> {ll}
Whiteboard: [TESTCASE] <wbr> is weaker than <nobr>
Assignee | ||
Comment 17•25 years ago
|
||
redistributing bugs across future milestones, sorry for the spam
Target Milestone: M19 → M21
Assignee | ||
Comment 18•25 years ago
|
||
This bug has been marked "future" because we have determined that it is not
critical for netscape6.0.
If you feel this is an error, or if it blocks your work in some way -- please
attach your concern to the bug for reconsideration.
Target Milestone: M21 → Future
Comment 19•25 years ago
|
||
This isn't life-threatening or anything, but please consider making this a
higher priority. It makes several of my web pages look really bad.
Comment 20•25 years ago
|
||
At this stage, we are pretty much only fixing life threatening bugs. So......
Don't forget that <wbr> is completely non-standard. Author valid HTML, and your
pages are likely to come out a lot better in Mozilla.
Comment 21•25 years ago
|
||
I understand that. However, if you're going to take that line, nobr should be
removed entirely. I'd prefer that it be fixed though, since a lot of pages (not
just mine) do use it and now look silly. It's supported by both Netscape
Navigator and MS Internet Explorer. (And since the standards process is
essentially descriptive, it may eventually make it in.)
Comment 22•25 years ago
|
||
More pages would look silly if we didn't support <nobr> than look silly now with
only <wbr> being not supported.
Anyway, if you are worried about what your pages _look_ like then you have
missed the point of HTML, which is that you should markup the *structure* of
your documents and then rely on the web browser to render it correctly -- be
it on a screen, by voice, or on a braille reader.
Comment 23•25 years ago
|
||
That's a religious issue and doesn't really belong here. The fact is, HTML in
the real world today is mix of content-based and presentation-based markup.
And, as appearance-based markup goes, wbr is a great tag. It exists so that
pages can look good in a wide variety of browser/page widths.
Comment 24•24 years ago
|
||
Um, ok, so: <NOBR></NOBR> works exactly like <WBR>, as far as I can tell. Duh.
I'll shut up about this now.
Comment 25•24 years ago
|
||
Do you mean </NOBR><NOBR> ?
Comment 26•24 years ago
|
||
Yes, sorry.
Comment 27•24 years ago
|
||
Excellent! In that case we have a workaround!
RELNOTE ITEM:
Mozilla does not support the <wbr> tag inside the <nobr> element. To work
around this issue, replace all instances of <wbr> with </nobr><nobr>. Note,
though, that both these elements are non-standard.
Severity: normal → trivial
Keywords: relnote
OS: other → All
Whiteboard: recommend WONTFIX: have workaround, non-standard extension
Comment 28•24 years ago
|
||
The same thing can be done with SPAN and white-space: nowrap. Unfortunately,
while this works great in Mozilla, it doesn't work in Navigator 4.75...
Comment 29•24 years ago
|
||
(RELEASE NOTE ITEM: above -- need to explicitly say that to get it on my radar.)
Marking WONTFIX.
This is a compatability issue, but since we are not fixing it for this release,
web authors will have to write their markup to work around the way we render it
regardless of whether we 'fix' it in the future or not. Thus, fixing it in the
future is a waste of our time.
Note that the markup is invalid anyway; so the workaround is simply to fix the
page in question.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → WONTFIX
Comment 30•24 years ago
|
||
*** Bug 57072 has been marked as a duplicate of this bug. ***
Comment 31•24 years ago
|
||
I couldn't get </nobr><nobr> to work but </nobr><wbr><nobr> did...
Comment 32•20 years ago
|
||
See bug 256643
Comment 33•20 years ago
|
||
Damn, what is the workaround, when you need XSL transformation? Lookup if is
child of <nobr> and then output as xsl:text the damn hack?
How you want render complex chemical equation - you cannot break it anywhere you
want, author gives you hint where to break it if necessary.
And if we say, presentation should be controlled by CSS, ok - nobr ~
white-space:nowrap, but how you achieve wbr effect?
Btw, do you know anyone from W3C? I can imagine such guy as little green man
with big eyes and cute antennas on his head.
Comment 34•20 years ago
|
||
*** Bug 272271 has been marked as a duplicate of this bug. ***
Comment 35•19 years ago
|
||
(In reply to comment #33)
> Damn, what is the workaround, when you need XSL transformation? Lookup if is
> child of <nobr> and then output as xsl:text the damn hack?
> And if we say, presentation should be controlled by CSS, ok - nobr ~
> white-space:nowrap, but how you achieve wbr effect?
The construct "<span style="font-size: 0px"> </span>" can be used as a replacement for wbr. In Mozilla browsers it works fine and in MS-IE it renders as a nearly visible 1-pixel (?) space.
Comment 36•19 years ago
|
||
(In reply to comment #35)
This is the correct construct: "<span style="font-size: 0px"> </span>"
You need to log in
before you can comment on or make changes to this bug.
Description
•