#70 ✓wont_fix
Ruggero

Element#update needs to be special cased for OPTGROUP element

Reported by Ruggero | May 2nd, 2008 @ 03:50 PM | in 1.7.0.1

Setting optgroup element in a select, using an Ajax call, doesn't work on Opera 9.27.

js function:

new Ajax.Updater("selSquadre",

"/actions/getSquadreBySeasonAndDt.php",

{parameters: {id: $("sp").getValue()}});

selSquadre is an existing select element and getSquadreBySeasonAndDt.php produces simple html code.

It works fine in Firefox 2.0.0.14 and IE 7.0

Best regards

Ruggero

Comments and changes to this ticket

  • John-David Dalton

    John-David Dalton May 2nd, 2008 @ 05:40 PM

    can you paste a snippet of the html you are trying to set?

  • Tobie Langel

    Tobie Langel May 4th, 2008 @ 01:37 AM

    • State changed from “new” to “bug”
    • Assigned user set to “Tobie Langel”
    • Title changed from “Ajax.Updater & optgroup - Opera” to “Element#update needs to be special cased for OPTGROUP element”
  • Ruggero

    Ruggero May 4th, 2008 @ 02:58 PM

    • no changes were found...
  • Ruggero

    Ruggero May 4th, 2008 @ 03:03 PM

    In the html page I have this fragment of html code:

    The php script is really simple:

    <?

    echo("");

    echo("foo");

    echo("");

    etc...

    ?>

    tia

  • Ruggero

    Ruggero May 4th, 2008 @ 02:58 PM

    ehm, I loose my tags...

    The code is in the attached file

  • John-David Dalton

    John-David Dalton May 29th, 2008 @ 04:32 AM

    • Milestone set to 1.6.0.3
  • John-David Dalton

    John-David Dalton June 3rd, 2008 @ 11:23 PM

    • Milestone changed from 1.6.0.3 to 1.7

    Since its an ajax fix and probably related to Element#update() this fix is being pushed back to 1.6.1

  • John-David Dalton

    John-David Dalton June 3rd, 2008 @ 11:32 PM

    this test confirms its an issue in Opera 9.25+ (including 9.5)

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/stric...">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
    <head>
    <title>Test selectboxes and optgroups in Opera (9.25 & 9.5)</title>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
    
    <script src="prototype.js" type="text/javascript"></script>
    
    <script type="text/javascript">
      document.observe('dom:loaded', function() { 
        $('select-test').update('<optgroup label="ABC"><option value="a">AA</option><option value="b">BB</option><option value="c">CC</option></optgroup>');
      });
      
    </script>
    </head>
    
    <body>
    	<select id="select-test">
    	  <option value="1">one</option>
    	  <option value="2">two</option>
    	  <option value="3">three</option>
    	</select>
    </body>
    </html>
    
  • Yoan Blanc

    Yoan Blanc June 18th, 2008 @ 04:13 PM

    This bug Opera related, see: http://dev.jquery.com/ticket/3040

    The workaround is to avoid using innerHTML, even MSIE likes it.

  • Tobie Langel

    Tobie Langel July 24th, 2009 @ 02:10 AM

    • Tag set to ie, needs_patch, needs_tests, opera, section:dom

    [not-tagged:"dom" tagged:"section:dom" bulk edit command]

  • Tobie Langel

    Tobie Langel July 24th, 2009 @ 02:26 AM

    • Tag changed from ie, needs_patch, needs_tests, opera, section:dom to ie, missing:tests, needs_patch, opera, section:dom

    [not-tagged:"needs_tests" tagged:"missing:tests" bulk edit command]

  • Tobie Langel

    Tobie Langel July 24th, 2009 @ 02:28 AM

    • Tag changed from ie, missing:tests, needs_patch, opera, section:dom to ie, missing:patch, missing:tests, opera, section:dom

    [not-tagged:"needs_patch" tagged:"missing:patch" bulk edit command]

  • Tobie Langel

    Tobie Langel July 24th, 2009 @ 03:36 AM

    • Tag changed from ie, missing:patch, missing:tests, opera, section:dom to ie, missing:patch, needs:tests, opera, section:dom

    [not-tagged:"missing:tests" tagged:"needs:tests" bulk edit command]

  • Tobie Langel

    Tobie Langel July 24th, 2009 @ 03:37 AM

    • Tag changed from ie, missing:patch, needs:tests, opera, section:dom to ie, needs:patch, needs:tests, opera, section:dom

    [not-tagged:"missing:patch" tagged:"needs:patch" bulk edit command]

  • Tobie Langel

    Tobie Langel July 24th, 2009 @ 04:05 AM

    • Tag changed from ie, needs:patch, needs:tests, opera, section:dom to needs:patch, needs:tests, opera, section:dom

    [not-tagged:"ie" not-tagged:"ie6" not-tagged:"ie7" not-tagged:"ie8" bulk edit command]

  • Tobie Langel

    Tobie Langel July 24th, 2009 @ 12:44 PM

    • Tag changed from needs:patch, needs:tests, opera, section:dom to needs:patch, needs:tests, section:dom

    [not-tagged:"opera" bulk edit command]

  • T.J. Crowder

    T.J. Crowder November 16th, 2009 @ 04:50 PM

    • Assigned user cleared.

    [responsible:none bulk edit command]

  • Andrew Dupont

    Andrew Dupont October 17th, 2010 @ 08:41 AM

    • Milestone changed from 1.7 to After 1.7
    • Importance changed from “” to “Medium”

    Moving to the "after 1.7" milestone, but I do want to get this resolved in 1.7.1.

  • Andrew Dupont

    Andrew Dupont December 27th, 2011 @ 12:21 AM

    • Milestone changed from After 1.7 to 1.7.0.1
  • Andrew Dupont

    Andrew Dupont February 18th, 2012 @ 01:12 AM

    • State changed from “bug” to “wont_fix”

    I thought this would just require our fancy node-scraping technique (see getContentFromAnonymousElement in src/dom/dom.js) but it's more complicated than that. We already special-case SELECTs here and that apparently doesn't solve this bug.

    jQuery WONTFIXed this one ages ago; I feel comfortable doing the same.

  • John-David Dalton

    John-David Dalton February 18th, 2012 @ 01:20 AM

    Yap confirmed still broke in JQ too.

  • catheriene

    catheriene March 14th, 2014 @ 08:21 AM

    The key to effective seo, I think, is convincing Look for engines that your web page is most appropriate to any given search question. You do this by excellent exclusive keyword and key phrase wealthy written text material and getting “quality” hyperlinks to that web page.DenverSEO.pw

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Prototype JavaScript library.

Shared Ticket Bins

Attachments

Referenced by

Pages