Closed Bug 146358 Opened 22 years ago Closed 22 years ago

description list with small font in table ignores dd tags

Categories

(Core :: Layout, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 117738

People

(Reporter: panuworld.net, Assigned: karnaze)

Details

Attachments

(3 files)

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Win95; en-US; rv:1.0rc2) Gecko/20020510
BuildID:    2002051006

When a description list (with <DT>s and <DD>s) is put inside <SMALL> and
</SMALL> tags and everything this is put in a TABLE cell, the description list
is shown incorrectly (both in quirks & standards mode).

Removing the SMALL tags changes the list appearance heavily.

Reproducible: Always
Steps to Reproduce:
1. Open a HTML page containing a description list with small font in a table cell.
2. Note the different (correct?) layout if the <SMALL> & </SMALL> tags are deleted.


Actual Results:  <DT>Term<DD>Description will be shown as:

TermDescription

Expected Results:  I guess <DT>Term<DD>Description should be shown as:

Term
        Description

HTML example that fails:

<HTML>
<BODY>

<TABLE>
<TR>
<TD>

<SMALL>
<DL>
<DT>Term<DD>Description
</DL>
</SMALL>

</TD>
</TR>
</TABLE>

</BODY>
</HTML>
Component: HTMLTables → Layout
See also the bug with 2002052508 on win95
Reporter: As a work around please use also the end tags !!

So write

<SMALL>
<DL>
<DT>Term</DT><DD>Description</DD>
</DL>
</SMALL>

The end tag are optional but looks like they are needed.

http://www.w3.org/TR/html4/struct/lists.html#h-10.3
it's there, yes...
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows 95 → All
Just one test case more: Small-font description lists fail in tables even if
closing tags </DT> and </DD> are used. Just insert enought items into the list
-or- just enough any HTML data into the list, like a huge comment.
(I was looking for a workaround for my site, but it seemed to be rather hard.)
If the small tags are moved into the DL tags (compare the source to the first
attachment), DD items appear on new lines, but are not indented.

In fact these effects seem to happen also with other font formatting tags than
"SMALL", for example "I". The only workaround I have found is that the fotn
formatting must be done for each DT and DD item separately, like
<DT><SMALL>Term</SMALL><DD><SMALL>Description</SMALL>

Ok, I guess that this is enough for this bug this time.
Since <small> is just a special case of font, this looks like a dup of 117738.
Note that the markup used in all the attachments here is not valid HTML
(only the "workaround" described by Panu is using valid HTML).

Marking as duplicate of bug 117738, please reopen if you disagree.

*** This bug has been marked as a duplicate of 117738 ***
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: