are you using an HTML or XHTML doctype?
in HTML doctypes it's ok to set boolean attributes without values, in XHTML doctypes it is not.
in XHTML you have got to use:
selected="selected", or selected="yes", or selected="true"
MattEvans
Veteran Poster
1,386 posts since Jul 2006
Reputation Points: 522
Solved Threads: 64
does it work in Firefox if you use one of those atttribute values instead of just 'selected'?
it's not so much a question of staying valid, as being compatible.
an absolutely 'correct' XML parser should reject that line of code and output a warning/error message instead of an expected output. But, Firefox only ever truely parses a page as X(HT)ML if you serve the Content-Type:application/xhtml+xml* header.
* not sure if that's the correct type, it's not an easy one to remember.
MattEvans
Veteran Poster
1,386 posts since Jul 2006
Reputation Points: 522
Solved Threads: 64
Whether or not to clear fields is a setting.
MidiMagic
Nearly a Senior Poster
3,319 posts since Jan 2007
Reputation Points: 730
Solved Threads: 182
The quotes must be there in XHTML. It must be in the selected="selected" form, not the selected=selected form.
MidiMagic
Nearly a Senior Poster
3,319 posts since Jan 2007
Reputation Points: 730
Solved Threads: 182