Re: Re: [PEPr] +1 for XML::XML_FastCreate
| From: | Guillaume Lecanu | Date: | Tue, 27 Apr 2004 09:18:52 +0000 |
| Subject: | Re: Re: [PEPr] +1 for XML::XML_FastCreate | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-28422@lists.php.net to get a copy of this message | ||
Le mar 27/04/2004 à 11:05, Bertrand Mansion a écrit :
> <Guillaume.Lecanu@Online.fr> wrote :
>
> > Le mar 27/04/2004 à 02:47, PEPr a écrit :
> >> Stig Bakken (http://pear.php.net/user/ssb) has voted +1 on the proposal for
> >> XML::XML_FastCreate.
> >>
> >> Proposal information:
> >> http://pear.php.net/pepr/pepr-proposal-show.php?id=47
> >> Vote information:
> >>
> >> http://pear.php.net/pepr/pepr-vote-show.php?id=47&handle=ssb
> >>
> >> This vote is conditional. The condition is:
> >>
> >> +1 if you change single attributes to use true instead of null:
> >>
> >> $x->input(array(type=>'checkbox', checked=>true))
> >
> > You're right, Alan Knowles had already asked me, but i forgot to do it.
> > I'm going to fix it this evening.
> Why not 'checked'=>'checked' or just 'checked'(just the value,
> no key). Both
> forms are supported by html_common BTW.
To make correct XML syntax, you must use 'checked'=>'checked' because
all attributs in XML needs a value.
But if you use the syntax 'checked'=>true, this will make a single
attribute, not valid XML.
This may be use if you want make HTML4 output.