Hi Bill,

Not that I can answer your questions completely with regards to other
browsers, but I regularly use XHTML with MSIE and MSDN recommends specifying
value-less attributes (a.k.a attribute-minimization) as follows:

selected --> selected="true" or selected="selected"
checked --> checked="true" or checked="checked"
disabled --> disabled="true" or disabled="disabled"
readonly --> readonly="true" or readonly="readonly"

MSIE recognizes the above syntax correctly.

I'd be interested to know where you got your recommendation for quoting,
because it doesn't ring any bells with me and doesn't conform to the basic
rules required for well-formed XML. 

The following links might be helpful for you.

http://www.w3schools.com/xhtml/xhtml_syntax.asp

Hope this helps. Cheers...

Scott Cadillac,
Witango.org - http://witango.org
403-281-6090 - [EMAIL PROTECTED]
--
Information for the Witango Developer Community
---------------------

XML-Extranet - http://xmlx.ca
403-281-6090 - [EMAIL PROTECTED]
--
Well-formed Development (for hire)
---------------------


> -----Original Message-----
> From: Bill Conlon [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, September 17, 2003 2:59 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Witango-Talk: problem with double quotes 
> (RH9/witango 062/apache2.047)
> 
> 
> I just wanted to put this issue to bed.
> 
> Witango does properly wrap the "checked" or "selected" 
> attributes of the 
> HTML input or option tags, respectively.  But the clients I've check 
> (Windows IE5 & 6, Mac IE5, Mozilla 1.4, Netscape 7) apparently do not 
> fully implement XHTML 1.0 Transitional.
> 
> Mozilla/Netscape:  the double quotes around "checked" or 
> "selected" are 
> stripped by the client and do not appear in the source.
> 
> IE:  The double quotes appear in the source, but IE ignores the 
> attribute, so the check boxes are NOT checked.
> 
> I guess this is the transitional part of the document header ;).
> 
> >I tried <@DQ> unsuccessfully, then re-jiggered the code, so 
> I'll try it 
> >again.  It looks like it needs to be escaped somehow, maybe 
> double double 
> >quotes, or wrapped in single quotes.
> >
> >I'll let you know.
> >
> >>Ooh,
> >>Have you tried either?
> >>
> >><@LITERAL VALUE='"SELECTED"'>
> >>or
> >><@DQ>SELECTED<@DQ>
> >>
> >>Ben Johansen - http://www.pcforge.com
> >>Authorized Witango Reseller 
> http://www.pcforge.com/WitangoGoodies.htm 
> >>Authorized MDaemon Mail Server Reseller
> >>http://www.pcforge.com/AltN.htm
> >>
> >>
> >>-----Original Message-----
> >>From: Bill Conlon [mailto:[EMAIL PROTECTED] 
> >>Sent: Tuesday, September 09, 2003 3:02 PM
> >>To: [EMAIL PROTECTED]
> >>Subject: RE: Witango-Talk: problem with double quotes (RH9/witango
> >>062/apache2.047)
> >>
> >>You do for XHTML
> >>
> >>>You don't need quotes around the word selected or checked
> >>>In the option tag it is switch not a name="value" pair
> >>>
> >>>Ben Johansen - http://www.pcforge.com
> >>>Authorized Witango Reseller 
> http://www.pcforge.com/WitangoGoodies.htm 
> >>>Authorized MDaemon Mail Server Reseller
> >>>http://www.pcforge.com/AltN.htm
> >>>
> >>>
> >>>-----Original Message-----
> >>>From: Bill Conlon [mailto:[EMAIL PROTECTED] 
> >>>Sent: Tuesday, September 09, 2003 1:19 PM
> >>>To: [EMAIL PROTECTED]
> >>>Subject: Witango-Talk: problem with double quotes (RH9/witango
> >>>062/apache2.047)
> >>>
> >>>I'm perplexed.  I can't get quoted "checked" or "selected" 
> attributes
> >>to
> >>>
> >>>appear in dynamically generated form elements.
> >>>
> >>>Here's a snippet:
> >>>
> >>><select name="template_id">
> >>>                                                   <@ROWS
> >>>ARRAY=templates>
> >>>                                                           <option
> >>>value="@@request$templates[<@CURROW>,1]" <@IFEQUAL 
> >>>VALUE1='@@request$template_id'
> >>>VALUE2='@@request$templates[<@CURROW>,1]'> 
> >>>"selected" <@ELSE></@IF>>
> >>>   
> >>>@@request$templates[<@CURROW>,2]
> >>>   
> >>></option>
> >>>                                                           </@ROWS>
> >>></select>
> >>>
> >>>
> >>>Here's the output:
> >>>
> >>><select name="template_id">
> >>>   
> >>><option value="4"  selected >
> >>>
> >>>   
> >>>template1.html
> >>>   
> >>></option>
> >>>   
> >>><option value="5" >
> >>>   
> >>>template2.html
> >>>   
> >>></option>
> >>>                                                           
> >>></select>
> >>>
> >>>
> >>>Note that "selected" is NOT quoted.  Anyone have better 
> eyes than me?
> >>>
> >>>Bill Conlon
> >>>
> >>>To the Point
> >>>345 California Avenue Suite 2
> >>>Palo Alto, CA 94306
> >>>
> >>>office: 650.327.2175
> >>>fax:    650.329.8335
> >>>mobile: 650.906.9929
> >>>e-mail: mailto:[EMAIL PROTECTED]
> >>>web:    http://www.tothept.com
> >>>
> >>>
> >>>___________________________________________________________
> ____________
> >>_
> >>>TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf
> >>>
> >>>___________________________________________________________
> ____________
> >>_
> >>>TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf
> >>>
> >>
> >>
> >>Bill Conlon
> >>
> >>To the Point
> >>345 California Avenue Suite 2
> >>Palo Alto, CA 94306
> >>
> >>office: 650.327.2175
> >>fax:    650.329.8335
> >>mobile: 650.906.9929
> >>e-mail: mailto:[EMAIL PROTECTED]
> >>web:    http://www.tothept.com
> >>
> >>
> >>____________________________________________________________
> ____________
> >>TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf
> >>
> >>____________________________________________________________
> ____________
> >>TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf
> >>
> >
> >
> >Bill Conlon
> >
> >To the Point
> >345 California Avenue Suite 2
> >Palo Alto, CA 94306
> >
> >office: 650.327.2175
> >fax:    650.329.8335
> >mobile: 650.906.9929
> >e-mail: mailto:[EMAIL PROTECTED]
> >web:    http://www.tothept.com
> >
> >
> >_____________________________________________________________
> ___________
> >TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf
> >
> 
> 
> Bill Conlon
> 
> To the Point
> 345 California Avenue Suite 2
> Palo Alto, CA 94306
> 
> office: 650.327.2175
> fax:    650.329.8335
> mobile: 650.906.9929
> e-mail: mailto:[EMAIL PROTECTED]
> web:    http://www.tothept.com
> 
> 
> ______________________________________________________________
> __________
> TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf
> 

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf

Reply via email to