Closed Bug 485161 Opened 17 years ago Closed 17 years ago

Text appears broken

Categories

(Core :: DOM: HTML Parser, defect)

x86
Windows XP
defect
Not set
trivial

Tracking

()

RESOLVED WONTFIX

People

(Reporter: marun2, Unassigned)

References

()

Details

Attachments

(1 file)

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
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.
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)
The markup is invalid and incorrect. You can remove this from the bug list. There is no bug here.
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.
"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.
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.
Component: General → HTML: Parser
Product: Firefox → Core
QA Contact: general → parser
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
Attached file The markup in question
Attached is a code that reproduces the described behavior.
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
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.

Attachment

General

Created:
Updated:
Size: