Re: checked attribute for a checkbox input

John Foderaro <[email protected]> Wed, 17 Mar 2004 12:27:53 -0800
Newsgroups gmane.lisp.open-source.franz
Message-ID <[email protected]>
re:
    (NET.HTML.GENERATOR:HTML
          ((:input :type "Checkbox"
                   :name id
                   :value aValue
                   :if* (my-lisp-function aValue) :checked "CHECKED"
                   )
           (:princ aValue)
           :newline
           )
          )


you can also do

    (NET.HTML.GENERATOR:HTML
          ((:input :type "Checkbox"
                   :name id
                   :value aValue
                   :if* (my-lisp-function aValue) :checked '||
                   )
           (:princ aValue)
           :newline
           )
          )


The first gives you 
        <input type="Checkbox" name="something" checked="CHECKED">
and the second gives
        <input type="Checkbox" name="something" checked>


These *should* be treated identically. 

*should* is the important word.   I don't know of any cases where
they aren't treated the same but I've seen warnings that there may
be bogus html parsing software out there.    Hopefully those 
warnings are out of date.