Closed Bug 660776 Opened 13 years ago Closed 13 years ago

BUG on Firefox 4.0.1

Categories

(Core :: DOM: HTML Parser, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 354161

People

(Reporter: rafalzysk, Unassigned)

References

()

Details

(Keywords: regression)

User-Agent:       Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E)
Build Identifier: Firefox 4.0.1

I found bug on firefox which bad interpreter code. When I look at source code all looks like good. But on firefox 4.0.1 on site i don't see <CR> on text (don't use <br> code). This bug I saw from this text to end of document:
Huśtawka ogrodowa i zabawki dla Roksanki 5-letnia Roksana z miejscowości Kamyk w woj. śląskim cierpi na zanik mięśni. Największym marzeniem Roksany był wyjazd z rodziną na letnie wczasy nad morzem, posiadanie huśtawki ogrodowej, na której mogłaby odpoczywać w letnie dni oraz zabawek... więcej Skuter z akcesoriami dla Tomka 15-letni Tomek z Syrynii

Reproducible: Always

Steps to Reproduce:
1.bug on site
2.
3.

Actual Results:  
the same

Expected Results:  
new update for firefox, or explain why this looks like that

source code looks good:
<br /><font style="font-family: Arial; line-height: 20px; font-size: 12px"><b>Huśtawka ogrodowa i zabawki dla Roksanki </b></font>
<font style="font-family: Arial; line-height: 20px; font-size: 12px"><br />
<img src="obrazki/spacer.gif" width="1" height="17" border="0" alt="" /><br />
5-letnia Roksana z miejscowości Kamyk w woj. śląskim cierpi na zanik mięśni. Największym marzeniem Roksany był wyjazd z rodziną na letnie wczasy nad morzem, posiadanie huśtawki ogrodowej, na której mogłaby odpoczywać w letnie dni oraz zabawek... <a href="spelnione_szczegoly.php?numer=918" style="color: #B40202; text-decoration: none">więcej</a>
<br />
<br /><font style="font-family: Arial; line-height: 20px; font-size: 12px"><b>Skuter z akcesoriami dla Tomka</b></font>
<font style="font-family: Arial; line-height: 20px; font-size: 12px"><br />
<img src="obrazki/spacer.gif" width="1" height="17" border="0" alt="" /><br />
15-letni Tomek z Syrynii koło Wodzisławia Śląskiego cierpi na mukowiscydozę. Chłopiec od dawna marzył o własnym skuterze. Niestety rodzice nie mogli sobie na to pozwolić, gdyż wszystkie środki finansowe pokrywają wydatki na życie oraz leczenie chłopca... <a href="spelnione_szczegoly.php?numer=926" style="color: #B40202; text-decoration: none">więcej</a>
<br />

<br /><font style="font-family: Arial; line-height: 20px; font-size: 12px"><b>Teleskop dla Pauliny</b></font>
<font style="font-family: Arial; line-height: 20px; font-size: 12px"><br />
<img src="obrazki/spacer.gif" width="1" height="17" border="0" alt="" /><br />
13-letnia Paulina z Żywca walczy z guzem na kręgosłupie. Marzeniem dziewczynki był własny teleskop, dzięki któremu będzie mogła być bliżej gwiazd... <a href="spelnione_szczegoly.php?numer=925" style="color: #B40202; text-decoration: none">więcej</a>
<br />
...
WFM:
Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.2.17) Gecko/20110420 Firefox/3.6.17

Reproduced:
Mozilla/5.0 (X11; Linux x86_64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20100101 Firefox/5.0
Mozilla/5.0 (X11; Linux x86_64; rv:6.0a2) Gecko/20110527 Firefox/6.0a2
Mozilla/5.0 (X11; Linux x86_64; rv:7.0a1) Gecko/20110530 Firefox/7.0a1


html5.parser.enable false makes the last Nightly a WFM:
Mozilla/5.0 (X11; Linux x86_64; rv:7.0a1) Gecko/20110530 Firefox/7.0a1


W3C Markup Validation Service reports 955 errors and 4763 warnings:
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.f-df.pl%2Fspelnione-ramka.php&charset=%28detect+automatically%29&doctype=Inline&group=0

WDG HTML Validator aborts report due to maximum number of errors reached:
http://htmlhelp.com/cgi-bin/validate.cgi?url=http%3A%2F%2Fwww.f-df.pl%2Fspelnione-ramka.php&warnings=yes

Validome reports 101 errors:
http://www.validome.org/validate/?uri=http://www.f-df.pl/spelnione-ramka.php
Version: unspecified → 4.0 Branch
OS: Windows XP → All
Hardware: x86 → All
Version: 4.0 Branch → Trunk
The website is using XHTML style closing tags <br /> in an HTML 4 document. This is probably just an example of a very badly coded and designed website that is confusing our new parser.
Whiteboard: INVALID?
(In reply to comment #2)
> The website is using XHTML style closing tags <br /> in an HTML 4 document.

That's no problem, the problem might be:
You have hundreds of unclosed <font> elements. The new HTML5 parser changed behaviour. 

Please test with 
 HTML5.parser.enabled= false
(in about:config, don't forget to reset)

If it works with that, it's likely a duplicate of bug 654164 and adding
closing </font>s would fix it.
Whiteboard: INVALID?
Component: General → HTML: Parser
Depends on: 654164
Product: Firefox → Core
QA Contact: general → parser
(In reply to comment #3)
That was just one example of the many issues in the HTML of this website I saw to begin with.
Depends on: 354161
Keywords: regression
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.