Re: [Phphtmllib-devel] more changes
Status: Beta
Brought to you by:
hemna
From: Walter A. B. I. <wab...@bu...> - 2002-06-10 03:00:40
|
On Fri, 2002-06-07 at 13:56, Tim Moloney wrote: > 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. ---ok I dropped the width parameter. I think folks should use the style attribute of the tag, since the W3C says the width attribute for a TDtag is depricated. This doesn't mean u can't do it, its just not a default param for the wrapper function html_td(). If you have to do width="50", then u still can after you have created the object. How often do folks really use colspan on a td? what % of all TDtags that you create need colspan attribute? In my case its less then 10% of all the TDtags I create manually. > 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. -- I have updated the Changelog to reflect the major/minor changes that have happened since 1.1.0. With any luck I'll have cvs access to the libs this comming week via sourceforge. I am pretty sure that I have all the missing html_* helper functions added. Some of them have special attributes for the most commonly used features of the tags. Take html_fieldset() for example. the first param of that function accepts, text, or a LEGENDtag object. Since the first tag of a <fieldset> tag can be a <legend> tag. If you guys haven't used <fieldset><legend>foo</legend></fieldset> before, its really kewl. Give it a try. Unfortunatly IE 5.5 doesn't render a background color on the legend properly, but it does look killer in Moz. Walt |