Failure of <select multiple> in Firefox

Discussion in 'HTML & Website Design' started by Hoth, Jun 30, 2008.

  1. #1
    Somehow, it seems that Firefox handles <select multiple> in a different and unknown way from what Opera and Konqueror do, and different from the W3C standard. This simplified test page validates, and works in Opera and Konqueror (presumably IE too), but in Firefox 3.0 it doesn't pre-select the selected options and when you make a selection in one of the boxes it undoes your selection in the other box:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
            "http://www.w3.org/TR/html4/loose.dtd">
    <html><head><title>Test</title></head>
    <body>
    <form action="">
    
    Box 1:<br> 
    <select multiple size="5" name="parsecodelinks[]">
    <option value="title">title</option>
    <option value="url">url</option>
    <option value="description" selected>description</option>
    <option value="email">email</option>
    </select>
    
    <br>Box 2:<br>
    <select multiple size="5" name="parsecodecategories[]">
    <option value="name">name</option>
    <option value="description" selected>description</option>
    <option value="custom">custom</option>
    <option value="moderators">moderators</option>
    </select>
    
    </form>
    </body>
    </html>
    Code (markup):
    Any ideas? Frustrating when something ridiculously simple fails in one browser. Couldn't find anything relevant in google.
     
    Hoth, Jun 30, 2008 IP
  2. martyn.b

    martyn.b Peon

    Messages:
    144
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    what version of fiefox are you using?
     
    martyn.b, Jun 30, 2008 IP
  3. Hoth

    Hoth Well-Known Member

    Messages:
    51
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #3
    Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9) Gecko/2008061015 Firefox/3.0
     
    Hoth, Jun 30, 2008 IP