This project is archived and is in readonly mode.

#587 ✓wontfix
avorobiev

Mootools 1.2.1. Problem with Element.Load() and optgroup HTML tag in Opera 9.63

Reported by avorobiev | February 4th, 2009 @ 10:20 AM | in 1.3.0 rc2 (closed)

Hello! If in the page:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <script type="text/javascript" src="mootools-1.2.js"></script>
</head>
<body>
  <script type="text/javascript">
    //<![CDATA[
    window.addEvent('domready', function() {
        $('button_load').addEvent('click', function(){
          $('target_select').load('option.html');
        });
      });
    //]]>
  </script>
  <form>
    <select name="aaa" id="target_select">
    </select>
    <input type="button" value="Load" id="button_load"/>
  </form>
</body>

we click on the button "Load", then will load file option.html with next html:


<option value=""></option>
<optgroup label="147-3">
  <option value="14579"> 1.6 i 16V (105 Hp)</option>
  <option value="14581"> 1.9 JTD (115 Hp)</option>
  <option value="14582"> 2.0 i 16V T.Spark (150 Hp)</option>
</optgroup>
<optgroup label="147-5">
  <option value="14584"> 1.6 i 16V (105 Hp)</option>
  <option value="14585"> 1.6 i 16V T.Spark (120 Hp)</option>
  <option value="14595"> 1.9 16V JTD (150 Hp)</option>
</optgroup>

But the Opera 9.63 will rendering only first level tree:


<option value=""></option>
<optgroup label="147-3">
</optgroup>
<optgroup label="147-5">
</optgroup>

and don't will rendering second level tree:


  ...
  <option value="14579"> 1.6 i 16V (105 Hp)</option>
  <option value="14581"> 1.9 JTD (115 Hp)</option>
  <option value="14582"> 2.0 i 16V T.Spark (150 Hp)</option>
  ...
  <option value="14584"> 1.6 i 16V (105 Hp)</option>
  <option value="14585"> 1.6 i 16V T.Spark (120 Hp)</option>
  <option value="14595"> 1.9 16V JTD (150 Hp)</option>

In other browsers (IE7, FF3, Chrome) all works fine.

Comments and changes to this ticket

  • fakedarren

    fakedarren February 8th, 2010 @ 05:09 PM

    • Milestone changed from 2.0 to 1.3.0 rc2
    • Tag changed from 1.2.1, element.load, opera, optgroup, request.html to 1.2.1, element.load, opera, optgroup, request.html
    • State changed from “new” to “open”
    • Assigned user changed from “Valerio” to “fakedarren”

    Need to write a test case. Avorobiev - if you can take your .rar and put it as an example in http://mootools.net/shell, it would be appreciated.

  • fakedarren

    fakedarren February 14th, 2010 @ 03:16 PM

    • State changed from “open” to “wontfix”
    • Assigned user changed from “fakedarren” to “Christoph Pojer”

    http://mootools.net/shell/yACrC/

    Confirmed as issue for Opera 9.64 (latest Opera 9) still. Works fine in Opera 10.

    Assigned to Christoph to be taken into consideration for 1.3 - however this is unlikely to be fixed for Opera 9. Marking as won't fix.

Create your profile

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

Shared Ticket Bins

Attachments

Pages