Closed Bug 1695 Opened 26 years ago Closed 26 years ago

text has wrong font

Categories

(Core :: CSS Parsing and Computation, defect, P2)

x86
Windows NT
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: buster, Assigned: rickg)

References

()

Details

"BROOKER'S STATUTES AND REGULATIONS" has the wrong font. I've copied the document source below. I can't tell if it's a bug in the style system or in the parser. =========================================================================== <html> <head> <title>Brooker's: Legal Information</title> <meta name="description" content="Links to the catalogue of products relevant to legal practitioners, also to the Locate a Lawyer facility, and to Judgments"> <meta name="keywords" content="Lawyer, Legal, Locate a Lawyer, Find, Practitioner, Locate, Directory, Lawyers, Legislation, Judgment, Judgments, Judgement, Judgements, Court of Appeal, Court, Appeal, Order, Search, Barrister, Solicitor"> <meta name="html-design" content=" The Web Limited http://web.co.nz/ mailto:info@web.co.nz PO Box 15-175 Wellington, New Zealand +64-4-495-8250"> </head> <body topmargin="0" leftmargin="0" background="images/legal_t1_tile.gif" bgcolor="#FFFFFF" link="#330099" vlink="#660000" alink="#336600"> <table border="0" cellpadding="0" cellspacing="0" width="550"> <tr> <td valign="top" align="right" width="280" colspan="3"><a name="top"></a><img src="images/legal.gif" alt="Legal Information" WIDTH="150" HEIGHT="48"></td> <td valign="top" align="left" width="0270"></td> </tr> <tr> <td valign="top" align="left" width="245" colspan="2" rowspan="4"> <table border="0" width="245" cellspacing="0" cellpadding="0"> <tr> <td><img src="images/people1.gif" alt="" border="0" width="80" height="112"></td> <td><img src="images/people2.gif" alt="" border="0" width="165" height="112"></td> </tr> <tr> <td>&nbsp;</td> <td><img src="images/people3.gif" alt="" border="0" width="165" height="65"></td> </tr> </table> <br> </td> <td valign="top" align="left" width="305" colspan="2"><img src="images/information.gif" alt="Legal Information" WIDTH="155" HEIGHT="22"><br> <a href="directory/default.htm" target="_top"><img src="images/locate.gif" alt="Locate a Lawyer" border="0" WIDTH="155" HEIGHT="20"></a><table border="0" cellpadding="0" cellspacing="0" width="300"> <tr> <td valign="top" align="left" width="035"><img src="../images/nav/space025.gif" ALT="" WIDTH="25" HEIGHT="1"></td> <td valign="top" align="left" width="10">&#150;</td> <td valign="top" align="left" width="0255"><a target="_top" href="directory/default.htm">Search for a Lawyer</a> with our Directory Service</td> </tr> </table> </td> </tr> <tr> <td valign="top" align="left" width="305" colspan="2"><br> <a href="judgments/default.htm" target="_top"><img src="images/judgments.gif" alt="Judgments" border="0" WIDTH="155" HEIGHT="20"></a><table border="0" cellpadding="0" cellspacing="0" width="300"> <tr> <td width="035"><img src="../images/nav/space025.gif" ALT="" WIDTH="25" HEIGHT="1"></td> <td valign="top" align="left" width="10">&#150;</td> <td valign="top" align="left" width="0255"><a href="judgments/default.htm" target="_top">Court of Appeal Judgments</a></td> </tr> <tr> <td width="035"><img src="../images/nav/space025.gif" WIDTH="25" HEIGHT="1" ALT=""></td> <td valign="top" align="left" width="10">&#150;</td> <td valign="top" align="left" width="0255"><a href="mailto:service@brookers.co.nz">Order a Judgment</a></td> </tr> </table> </td> </tr> <tr> <td valign="top" align="left" width="305" colspan="2"><br> <a href="catalogue/default.htm" target="_top"><img src="images/catalogue.gif" alt="Legal Catalogue" border="0" WIDTH="155" HEIGHT="20"></a><table border="0" cellpadding="0" cellspacing="0" width="300"> <tr> <td valign="top" align="left" width="035"><img src="../images/nav/space025.gif" WIDTH="25" HEIGHT="1" ALT=""></td> <td valign="top" align="left" width="10">&#150;</td> <td valign="top" align="left" width="0255">Browse by <a href="catalogue/subject.asp">Subject</a>, <a href="catalogue/legislation.asp">Legislation</a>, <a href="catalogue/title.asp">Title</a> or by the <a href="../catalogue/search.asp?cat=legal">Search</a> function.</td> </tr> </table> </td> </tr> <tr> <td valign="top" align="left" width="305" colspan="2"><br> <a href="../insite/default.htm" target="_top"><img src="images/insite.gif" alt="Brooker's Legal InSite" border="0" WIDTH="177" HEIGHT="21"></a><table border="0" cellpadding="0" cellspacing="0" width="300"> <tr> <td valign="top" align="left" width="035"><img src="../images/nav/space025.gif" ALT="" WIDTH="25" HEIGHT="1"></td> <td valign="top" align="left" width="10">&#150;</td> <td valign="top" align="left" width="0255">View legal news and recent developments through the <a href="../insite/default.htm" TARGET="_top">InSite Daily News Service</a></td> </tr> </table> <br> <img src="../images/nav/space025.gif" alt="" width="17" height="1"><img src="../images/nav/bullet_green.gif" xwidth="30" xheight="12"> <font size="1.5"><font face="Arial, Helvetica, sans-serif"><b>&nbsp;BROOKER'S STATUTES AND REGULATIONS</b></font></font> <table border="0" cellpadding="0" cellspacing="0" width="300"> <tr> <td valign="top" align="left" width="035"><img src="../images/nav/space025.gif" alt="" width="25" height="1"></td> <td valign="top" align="left" width="10"> &#150;</td> <td valign="top" align="left" width="0255">Search the consolidated New Zealand Statutes and Regulations databases on <a href="http://www.knowledge-basket.co.nz/kete/database.html" target=_parent>The Knowledge Basket</a></td> </tr> </table> </td> </tr> <tr> <td valign="top" align="left" width="80"></td> <td valign="top" align="left" width="0165"></td> <td valign="top" align="left" width="305" colspan="2"> <p><br> <small><a href="directory/default.htm" target="_top">Locate a&nbsp; Lawyer</a> | <a href="judgments/default.htm" target="_top">Judgments</a> |&nbsp;<a href="catalogue/default.htm" target="_top">Legal Catalogue</a></small><br> <a href="../insite/default.htm" target="_top"><small>Brooker's Legal InSite</small></a></p> </td> </tr> <tr> <td valign="top" align="left" width="80"></td> <td valign="top" align="left" width="0165"></td> <td valign="top" align="left" width="305" colspan="2"> <p><br> <small><a target="_top" href="default.htm">Legal</a> | <a target="_top" href="../tax/default.htm">Tax</a> | <a target="_top" href="../business/default.htm">Accounting</a> | <a target="_top" href="../service/default.htm">Training, Service &amp; Support</a></small><br> <small><a href="../intro/default.htm" target="_top">Introducing Brooker's</a> | <a href="../insite/default.htm" target="_top">InSite</a> | <a href="../catalogue/default.htm" target="_top">Catalogue</a><br> <a target="_top" href="../default.htm">Home</a> | <a href="../find/default.htm" target="_top">Site Search</a> | <a target="_top" href="../contact/default.htm">Contact Us</a> | <a href="../intro/disclaimer.htm" target="_top">Disclaimer</a></small></p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> </td> </tr> <tr> <td valign="top" align="left" width="80"></td> <td valign="top" align="left" width="0165"></td> <td valign="top" align="left" width="35"></td> <td valign="top" align="left" width="0270"></td> </tr> </table> </body> </html>
Assignee: peterl → rickg
The problem here is that the font size is specified as <FONT size="1.5">. Out nsString::ToInteger() method converts ("1.5") as an illegal value, not 1, as it most likely should. (like atoi does) A simpler test case: <font size="1.5">This should be size 1</font> <font size="1">This is size 1</font>
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Bug in ToInteger() where decimal point was not being taken into account.
Status: RESOLVED → VERIFIED
QA Contact: 3819
veified
You need to log in before you can comment on or make changes to this bug.