[Phphtmllib-devel] more changes
Status: Beta
Brought to you by:
hemna
From: Walter A. B. I. <wb...@qu...> - 2002-06-07 19:16:17
|
Howdy, I'm working on adding lots more html_* helper functions with various "standard" params for each specific tag to be built. One of the changes I am making to html_td() is to add specific commonly used params. Currently html_td() only accepts content. This kinda sux. So I have come up with html_td($class, $align, $width), params 4 through n are content. I thought about adding colspan as the 4th param, but in my experience, its not used as often as the other 3. Also, according to the w3c spec width is depricated. You should use a style="width:100px" to set the width of the td...but, how many ppl know to do that? My guess is not many. So this leads me to a gray area between the w3c, which I would like to conform to, and normal implementation of html. Browsers still to this day are not very compliant in their implementation of the spec, so its hard to try and enforce an api to the libs that require conformance. So, for the time being I'm trying to take each tag as a case by case basis for conformance vs. implementation. Hence my addition of the width param to html_td(). Also, note, this change to html_td() will break 1.1.x of the libs. folks will have to change their use of html_td(). Thoughts? Walt |