Re: [Phphtmllib-devel] more changes
Status: Beta
Brought to you by:
hemna
From: Tim M. <mo...@mr...> - 2002-06-07 20:57:13
|
Walter A. Boring IV wrote: > 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. I would like to see the colspan parameter, personally. > 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. Do most broswers support width in the <style> tag? If so, I'd go with the w3c and not have the width parameter. I've learned to use more <style> tags since you flag the other deprecated items I used to use (<center>, <font>, etc.). > 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(). As I said before, if your going to change the API, now's the time. Just make sure that any API changes are well documented in the Changlog/Readme file. -- Tim Moloney ManTech Real-time Systems Laboratory 2015 Cattlemen Road \ / Sarasota, FL 34232 .________\(O)/________. (941) 377-6775 x208 ' ' O(.)O ' ' |