Closed
Bug 604927
Opened 14 years ago
Closed 14 years ago
FireFox does not respect the original source. A DOM/HTML parse bug?
Categories
(Firefox :: General, defect)
Firefox
General
Tracking
()
RESOLVED
INVALID
People
(Reporter: pancardo, Unassigned)
Details
(Keywords: testcase)
Attachments
(1 file)
12.84 KB,
application/xhtml+xml
|
Details |
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; es-MX; rv:1.9.2.10) Gecko/20100915 Ubuntu/10.04 (lucid) Firefox/3.6.10 FirePHP/0.4
Build Identifier: Mozilla/5.0 (X11; U; Linux x86_64; es-MX; rv:1.9.2.10) Gecko/20100915 Ubuntu/10.04 (lucid) Firefox/3.6.10 FirePHP/0.4
Firefox does not respect original structure of the xhtml document and can affect to the style of some elements. It's seem that rewrites incorrectly the structure.
I found this bug when I was designing a page to show 7 or 8 links, but the sixth link didn't display correctly, the style was ignored. I checked the design in Internet Explorer and Google Chrome and they display correctly.
I started to further investigate this problem or bug. In this report i reduced to an reproducible and very simple example.
I checked with Firebug an abnormal structure of the xhtml document (see the HTML tab in Firebug): some <a> elements are empty and the following line is modified. (more details in the actual and expected results)
Reproducible: Always
Steps to Reproduce:
1. You can see the xHTML file attached in this report.
2. I used Firebug to see the the html structure.
To see a more abnormal and very curious behaviour:
3. Try to change <title> for a long o short text.
4. Try to change the <div> content for a long o short text.
Actual Results:
From the firebug "html" tab:
...
<a href="http://aaron"><div class="box">link</div></a>
<a href="http://aaron"><div class="box">link</div></a>
<a href="http://aaron"></a><div class="box"><a href="http://aaron">link</a></div>
<a href="http://aaron"><div class="box">link</div></a>
<a href="http://aaron"><div class="box">link</div></a>
...
Expected Results:
...
<a href="http://mozilla.org"><div class="box">link</div></a>
<a href="http://mozilla.org"><div class="box">link</div></a>
<a href="http://mozilla.org"><div class="box">link</div></a>
<a href="http://mozilla.org"><div class="box">link</div></a>
<a href="http://mozilla.org"><div class="box">link</div></a>
...
1. Operating Systems: I checked to see in Windows XP and Linux.
2. Firefox version: 3.6.10 (on both OS).
3. Internet Explorer and Google Chrome display correctly this page.
4. A very curious and abnormal behavoir: If I add / delete character to the document, the affected element changes.
5. I created a XHTML document to test this specific bug. Normal link with correct style are in white. The problem ocurr when you see links in red or there is no text in the gray box.
6. I tried on a clean install of Firefox without addons, the problem is still happening.
This test have designed to show and identify clearly the problem.
Try to modify the title or the text links to the how abnormally changes the affected elements. It seems that when you add/delete characters in the document can affect this problem.
Updated•14 years ago
|
Attachment #483786 -
Attachment mime type: text/html → application/xhtml+xml
Comment 2•14 years ago
|
||
If you're going to write xhtml you can't serve it as html in general. I've corrected the mime type in the file you attached and as you can see it now works.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•