Closed Bug 222452 Opened 21 years ago Closed 21 years ago

bold and underline works only if specified within the <td>...</td> block.

Categories

(Core :: Layout: Text and Fonts, defect)

x86
Windows 2000
defect
Not set
minor

Tracking

()

RESOLVED INVALID

People

(Reporter: Wolfgang_Messingschlager, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031007 Firebird/0.7 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031007 Firebird/0.7 Here is a short example, which shows the problem ========================================================================= <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> </head> <body> wrong: table 1 with thead: shows no bold and underline header <br /> <table> <thead><b><u><td>header 1</td><td>header 2</td></u></b></thead> <tr><td>row 1</td><td>row 2</td></tr> </table> <br /> table 2 with thead: shows bold and underline header </u> <------- why is that underline? <br /> <table> <thead><td><b><u>header 1</u></b></td> <td><b><u>header 2</u></b></td></thead> <tr><td>row 1</td><td>row 2</td></tr> </table> <br /> wrong: table 3 with tr: shows no bold and underline header <br /> <table> <tr><b><u><td>header 1</td><td>header 2</td></u></b></tr> <tr><td>row 1</td><td>row 2</td></tr> </table> <br /> correct: table 4 with tr: shows bold and underline header <br /> <table> <thead><td><b><u>header 1</u></b></td> <td><b><u>header 2</u></b></td></thead> <tr><td>row 1</td><td>row 2</td></tr> </table> <br /> </body> </html> ========================================================================= Reproducible: Always Steps to Reproduce: 1.) use the example defined in Details 2.) use Mozilla 1.4 or Firebird 0.6 or 0.7 Actual Results: If you specify bold or underline outside the <td> ... </td> block the text of the table cells are neither bold nor underline Expected Results: If you specify bold or underline outside the <td> ... </td> block the text of the table cells should be bold and underline
It's invalid HTML to wrap <b> or <u> around an <td> tag, that's why.
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → INVALID
Summary: bold and underline works only if specified within the <td>...</td> block. → bold and underline works only if specified within the <td>...</td> block.
You need to log in before you can comment on or make changes to this bug.