Forum Moderators: open

Message Too Old, No Replies

1 error in xhtml strict I can't get rid of

         

zyph

9:48 am on Sep 19, 2004 (gmt 0)

10+ Year Member



Hi,

I'm having a dropdown menu with select and option, and this little line is the error:

<select class="test" name='mode' onChange="location='#' + options[selectedIndex].value">

I'm using XHTML 1.0 Strict, and this one is the only error left. Is there a workaround or anything I can use, to get rid of this error?

Span

10:26 am on Sep 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi,

onChange should be lowercase onchange
<added> and 'mode' should be "mode"

zyph

10:48 am on Sep 19, 2004 (gmt 0)

10+ Year Member



Oh, I didn't think of an uppercase could change it. Thanks alot Span ;)

photon

7:30 pm on Sep 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I believe that xhtml is expecting ALL tags, elements, and attribute names to be lowercase.

(That "onChange" error drove me nuts before I finally figured it out. ;) )