Closed
Bug 485161
Opened 17 years ago
Closed 17 years ago
Text appears broken
Categories
(Core :: DOM: HTML Parser, defect)
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: marun2, Unassigned)
References
()
Details
Attachments
(1 file)
|
366 bytes,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b3) Gecko/20090305 Firefox/3.1b3
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b3) Gecko/20090305 Firefox/3.1b3
FF 3.1 b 3
In this URL the word "If" appears broken, and it appears normally in IE8.
Site uses no browser-specific CSS
Reproducible: Always
Steps to Reproduce:
1. Go to URL
2. Look for broken "If"
Actual Results:
Word broken
Expected Results:
Word to display normally even if it is in different span's
Comment 1•17 years ago
|
||
The 'I' of the 'If' is in <p> element (ending on the closing span, just after the letter). This bug is INVALID. Try to validate (http://validator.w3.org/) your code first.
| Reporter | ||
Comment 2•17 years ago
|
||
Yeah but the p is not closed yet, only span is closing. It is not my code and not my site, and web pages do not have to validate to display as intended in browsers (again and again).
Since IE8 displays both I and f on the same line, unbroken, displaying f on the second line is open to question (unless there is a rendering standard for this)
Comment 3•17 years ago
|
||
The markup is invalid and incorrect. You can remove this from the bug list. There is no bug here.
| Reporter | ||
Comment 4•17 years ago
|
||
The bug is that </span> causes a line break. IE 8 displays in the same line. How can you prove that, Firefox is correct in rendering this markup? Again browsers need to handle all the following
- invalid markups
- incorrect markups
- non validating markups
- non-compliant markups
That is how the Internet has been made so far.
| Reporter | ||
Comment 5•17 years ago
|
||
"the <div> tag forces a line break, where as <span> does not."
FROM
http://www.codethenet.com/divspan.htm
If there is a more authoritative reference, let me know.
| Reporter | ||
Comment 6•17 years ago
|
||
http://en.wikipedia.org/wiki/Span_and_div
It doesnt say, </span> creates a line break.
the page author seems to have fixed the code now, so now it is not possible to find what caused that span to break.
Updated•17 years ago
|
Component: General → HTML: Parser
Product: Firefox → Core
QA Contact: general → parser
Comment 7•17 years ago
|
||
I'm going to mark this WFM based on comment 6. If you have a testcase that shows what the markup in question looked like, feel free to reopen.
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → WORKSFORME
Comment 8•17 years ago
|
||
Attached is a code that reproduces the described behavior.
Comment 9•17 years ago
|
||
All right. So, the HTML5 algorithm does not insert a line break there. I suppose we *could* fix it in our parser, but the effort to do so seems like it vastly outweighs the benefits, especially considering that we have an HTML5 parser on the way, so this will be fixed when that lands. I'm marking this WONTFIX, even though it should eventually be fixed.
Resolution: WORKSFORME → WONTFIX
Comment 10•17 years ago
|
||
As I said above, and is shown in the attachment, the markup is invalid.
You need to log in
before you can comment on or make changes to this bug.
Description
•