[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]

possible bug in <box> ?



Hey folks,

First off, I have to say thanks :-) WML has changed the way I work with
the web. For the better. Big time ;-)

Now I have a question. I could be being dim, but take a look at the
following:

#use wml::std::box
<box bdcolor="#000000" bgcolor="#FFFFFF" border="1" width="50%">
Hello world!
</box>

So I want a box 50% the width of the page, right? Well, the generated
html is:

<table cellspacing="0" cellpadding="1" bgcolor="#000000" border="0">
<tr>
<td>
<table bgcolor="#FFFFFF" width="50%" cellspacing="0" cellpadding="4" border="0">
<tr>
<td>Hello world!</td>
</tr>
</table>
</td>
</tr>
</table>


Notice that the width="50%" is in the *inner* table. Is this correct?
I'm pretty sure it should be in the outer table, no? Because using this
example I do *not* get a 50% width table, but the inner table is 50% the
width of the outer one.

Shouldn't the generated code be:

<table width="50%" cellspacing="0" cellpadding="1" bgcolor="#000000" border="0">
<tr>
<td>
<table bgcolor="#FFFFFF" width="100%" cellspacing="0" cellpadding="4" border="0">
<tr>
<td>Hello world!</td>
</tr>
</table>
</td>
</tr>
</table>

I guess there's a chance I'm just being dense here....

Tom.
-- 
            .------------------------------------------------------.
    .^.     | Tom Gilbert, England | http://www.linuxbrit.co.uk    |
    /V\     |----------------------| gilbertt@linuxbrit.co.uk      |
   // \\    | Sites I recommend:   `-------------------------------|
  /(   )\   | www.freshmeat.net www.enlightenment.org slashdot.org |
   ^^-^^    `------------------------------------ vim: set tw=72: -'
______________________________________________________________________
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com