1

Topic: Missing width and height attribute in <img> (not really a bug)

Oh well I love the way this forum is coded in valid XHTML 1.0 Strict. smile

But one down side is that images posted to this forum are missing the width and height attribute (alt is there) which is required in order to validates.

Maybe this will be fixed soon. wink I do not use PunBB at the moment but I'm more interested on the way it is coded.

Re: Missing width and height attribute in <img> (not really a bug)

I just ran the topic with your test post through with a validator and it validates perfectly wink

3

Re: Missing width and height attribute in <img> (not really a bug)

Ahh, my mistake! Haha. Oh well, I just forgot how I actually remember that width and height must be set in order for it to validates. Uhh, okay. Nice work on the board! smile

Yeah since we're talking about web standards, why not try and remove the empty tags? I can understand that some are really needed in order to get what the layout is supposed to be, such as

<div class="clearer"></div>

Maybe that will be the last thing to care for. smile

Re: Missing width and height attribute in <img> (not really a bug)

Removal of the clearer divs is on track for 1.3 I believe. You'd have to ask Paul about the specifics though.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

5

Re: Missing width and height attribute in <img> (not really a bug)

big_smile

Haha, you guys really planned on that? I'll be here for sure, maybe a little contribution from me could help. wink

6

Re: Missing width and height attribute in <img> (not really a bug)

The specifics are the clearer divs (or at least most of them) are definitely going. Where possible they will get removed by structuring things to render them unnecessary. In other cases it's a question of experimenting to find out what works best. I am beginning to favour the "overflow:hidden" method of containing floats,  but we will have to see.

I think most of the <div class="inbox"> will go as well, nobody has used them for styling and the IE problems they were designed to fix can be dealt with in other ways. Viewtopic looks like it's in for a facelift to simplify styling it. It might also be possible to scrap one layer of divs from the forms.

The downside is the more standards compliant PunBB becomes the harder it becomes to integrate with old sites. Put PunBB in the middle of a site which is also XHTML Strict (or even transitional) and things are fine. Try and integrate it with some antique DW Template and all hell breaks loose.