Skip to main content
Inspiring
May 11, 2006
Answered

CFSELECT tag generates invalid HTML

I'm using MX 7.
Anyone notice this?
The selected option that is generated look like this:
<option value="somevalue" selected="selected">

As far as I know, this is not valid HTML. I noticed it because it doesn't work in Firefox 1.5 (works in IE 6 though)

Should be:
<option value="somevalue" selected>
Right?

    This topic is closed to new replies. Start a new post to keep the conversation going.
    swsCorrect answer
    Inspiring
    May 11, 2006
    oops... I could be wrong here. It may have to do with my doctype or some other bad html I have in my document.

    Edit: Yep, I'm wrong. Sorry about that. I had missed a <tr> in my XHTML Transitional doc.

    1 reply

    swsAuthorCorrect answer
    Inspiring
    May 11, 2006
    oops... I could be wrong here. It may have to do with my doctype or some other bad html I have in my document.

    Edit: Yep, I'm wrong. Sorry about that. I had missed a <tr> in my XHTML Transitional doc.
    Translate