Closed
Bug 166558
Opened 24 years ago
Closed 23 years ago
Mixture of <dd> and <b> in <dl> leads to unusual parsing
Categories
(Core :: DOM: HTML Parser, defect)
Core
DOM: HTML Parser
Tracking
()
People
(Reporter: psback, Assigned: harishd)
References
()
Details
(Keywords: compat, testcase)
Attachments
(1 file)
|
762 bytes,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1b) Gecko/20020721
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1b) Gecko/20020721
Hi, this is a trivial issue but one that I found interesting.
The page (http://www.helsinginsanomat.fi/uutiset/juttu.asp?id=20020904KO1) and
all other article pages render badly on mozilla. I note that indentation is
screwed and also for some reason the space after <b> is omitted. (I checked the
.css for funky directives but there are none.) The site in question is the net
version of the largest newspaper in scandinavia, Helsingin Sanomat. While they
probably don't give a hoot if their pages render on anything else than IE
,(Haven't contacted them, just guessing.) I/we do. Mostly I'm interested in why
it won't render right on mozilla but will on IE. I know the page is hardly
compliant, w3c's validator gave like 150+ errors, but still...
Cheers,
Peter
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Confirming using BuildID 2002090308 on WinXP, it does a lot of sniffing and
possibly treats mozilla different to ns6/7.
Status: UNCONFIRMED → NEW
Component: Browser-General → Layout
Ever confirmed: true
Comment 2•24 years ago
|
||
weird indeed:
<dd><b>Rikoskomisario </b></dd><b>Per-Erik Pettersson</b> Pietarsaare
(note no space between Pettersson and Pietarsaare in Moz rendering)
<dd> </dd>
Rikoslain uskonrauhapykäl
(for some reason, indentation is inherited downward in MSIE)
no char encoding defined. My MSIE picked up Big5 (incorrect) and
Mozilla guessed the right one...
if(is_nav){document.write('<LINK rel="stylesheet" type="text/css"
href="/css/tyylitns.css">')}else{do ...
(don't think ns4 does <link>, so I guess the css is meant for
Mozilla)
no diff between the ns and ie css files, except for font-size and
these:
/ns css/
P.box // <----- capital P?
{
FLOAT: none;
FONT-FAMILY: Arial, Helvetica, sans-serif;
FONT-SIZE: 15px;
FONT-WEIGHT: bold;
PADDING-BOTTOM: 1px;
PADDING-LEFT: 5px;
PADDING-RIGHT: 5px;
PADDING-TOP: 5px;
WIDTH: 140px
}
/ie css/
.box
{
BACKGROUND-COLOR: #ccccff;
FLOAT: left;
FONT-FAMILY: Arial, Helvetica, sans-serif;
FONT-SIZE: 14px;
FONT-WEIGHT: bold;
MARGIN: 2px;
PADDING-BOTTOM: 8px;
PADDING-LEFT: 8px;
PADDING-RIGHT: 8px;
PADDING-TOP: 8px;
WIDTH: 140px
}
Comment 3•23 years ago
|
||
The CSS is a false lead, they've got some weird things (a made-up <article>
element, for instance) stuck into their <dl>, and we're botching that when we
do residual style. I've cut out a simplified testcase.
Comment 4•23 years ago
|
||
Note that the markup is quite invalid even after removing <article>; harish, do
you want to just evangelize this?
Comment 5•23 years ago
|
||
re original comment:
> I note that indentation is screwed and
bug 5119
> also for some reason the space after <b> is omitted.
bug 116253
*** This bug has been marked as a duplicate of 5119 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•