Closed Bug 163864 Opened 22 years ago Closed 22 years ago

List Index (<li> in <ul>) entry split accross two lines when in <td>

Categories

(Core :: Layout: Tables, defect)

x86
All
defect
Not set
minor

Tracking

()

RESOLVED DUPLICATE of bug 128601

People

(Reporter: pcarey, Assigned: karnaze)

Details

(Keywords: testcase)

Attachments

(1 file, 1 obsolete file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.0) Gecko/20020530
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.0) Gecko/20020530

The text for an <li> in a <ul> is split accross two lines when the <ul> is in a
<td>.  The html produces no warnings or errors when checked against TidyHTML. If
the <ul> is removed from the <td>, the text for the <li> is displayed as I
believe it should be. There is an additional complexity added with a <div> whose
display style is "none" that may be causing the problem (although it probably
should not). The HTML required to reproduce this is included in Additional
Information.

Reproducible: Always

Steps to Reproduce:
1.Copy the HTML included in Additional Information into a new file and save it.
2.View the new file
3.




<html>

<head>
   <title>li table bug</title>
</head>

<body>

<table border="1" summary="table containing li tags">
   <tr>
      <td>
         <ul>
            <li><a href="http://www.w3.org">Random</a></li>
            <li>
               <div id="tw">
                  <a href="http://www.w3.org">Two Words</a>
               </div>

               <div id="allKeywordsSection">
                  Show more text here
               </div>
            </li>
         </ul>
      </td>
   </tr>
</table>


<script type="text/javascript">
   document.getElementById( 'allKeywordsSection' ).style.display = "none";
</script>

</body>

</html>
WFM, 2002-08-20-08 trunk Linux. Tested several different font-sizes too.
Severity: normal → minor
Keywords: testcase
Clicked on the link to the attachment, but still doesn't wfm. 'Two words' is 
split into two lines.
Your build is quite old, it has likely been fixed already.

WFM, 2002-08-21-04 trunk Windows 2000.
Problem evident in previous attachment was resolved by upgrading to 1.0.1RC
{Build ID:2002081506}. However, viewing this attachement and clicking around
the links should made the problem clear.
Yes, I see the problem now, but I'm not so sure this is actually a bug.

--> HTMLTables
OS: Windows 2000 → All
Attachment #96176 - Attachment is obsolete: true
--> HTMLTables
Assignee: attinasi → karnaze
Component: Layout → HTMLTables
QA Contact: petersen → amar
I know what you're saying when you say you're not sure it's a bug, but I still
feel that Mozilla should render it consistently at least, which is not what
happens if 'All Keywords' is expanded and then collapsed.
This is the same problem as in bug 128601 so I'm duping it and moving over
the testcase there.

*** This bug has been marked as a duplicate of 128601 ***
Status: UNCONFIRMED → 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: