<?xml version="1.0" encoding="UTF-8"?>
<ticket>
  <assigned-user-id type="integer">21273</assigned-user-id>
  <attachments-count type="integer">1</attachments-count>
  <closed type="boolean">true</closed>
  <created-at type="datetime">2008-07-08T13:04:58+01:00</created-at>
  <creator-id type="integer">25612</creator-id>
  <milestone-due-on type="datetime">2008-10-14T00:00:00+01:00</milestone-due-on>
  <milestone-id type="integer">12650</milestone-id>
  <number type="integer">205</number>
  <permalink>onclick-properties-are-dropped-unsing-request-html-in-ie</permalink>
  <priority type="integer">12</priority>
  <project-id type="integer">2706</project-id>
  <raw-data type="binary" nil="true" encoding="base64"></raw-data>
  <state>resolved</state>
  <tag>ie request</tag>
  <title>onclick properties are dropped unsing Request.HTML in IE</title>
  <updated-at type="datetime">2008-10-10T22:03:21+01:00</updated-at>
  <user-id type="integer">21273</user-id>
  <user-name>Tom Occhino</user-name>
  <creator-name>Boris</creator-name>
  <assigned-user-name>Tom Occhino</assigned-user-name>
  <url>http://mootools.lighthouseapp.com/projects/2706/tickets/205</url>
  <milestone-title>1.2.1</milestone-title>
  <original-body>When doing something like this :

::: JS :::

viewLogIn:function(){
	new Request.HTML({
		url:'ajax.php',
		data:'action=viewLogIn',
		update:$('content')
	}).send();
}

::: Returned HTML :::

&lt;input type=&quot;button&quot; onclick=&quot;alert('clicked');&quot; value=&quot;OK&quot; /&gt;


=&gt; The window alert is shown in Firefox, but not in IE.</original-body>
  <latest-body>When doing something like this :

::: JS :::

viewLogIn:function(){
	new Request.HTML({
		url:'ajax.php',
		data:'action=viewLogIn',
		update:$('content')
	}).send();
}

::: Returned HTML :::

&lt;input type=&quot;button&quot; onclick=&quot;alert('clicked');&quot; value=&quot;OK&quot; /&gt;


=&gt; The window alert is shown in Firefox, but not in IE.</latest-body>
  <original-body-html>&lt;div&gt;&lt;p&gt;
When doing something like this :
&lt;/p&gt;&lt;p&gt;
::: JS :::
&lt;/p&gt;&lt;p&gt;
viewLogIn:function(){
&lt;/p&gt;&lt;p&gt;
new Request.HTML({
&lt;/p&gt;&lt;p&gt;
url:'ajax.php',
&lt;/p&gt;&lt;p&gt;
data:'action=viewLogIn',
&lt;/p&gt;&lt;p&gt;
update:$('content')
&lt;/p&gt;&lt;p&gt;
}).send();
&lt;/p&gt;&lt;p&gt;
}
&lt;/p&gt;&lt;p&gt;
::: Returned HTML :::
&lt;/p&gt;&lt;p&gt;
=&gt; The window alert is shown in Firefox, but not in IE.
&lt;/p&gt;&lt;/div&gt;</original-body-html>
  <versions type="array">
    <version type="Ticket::Version">
      <assigned-user-id type="integer">4325</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>&lt;pre&gt;
When doing something like this :

::: JS :::

viewLogIn:function(){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;new Request.HTML({
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;url:'ajax.php',
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;data:'action=viewLogIn',
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;update:$('content')
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}).send();
}

::: Returned HTML :::

&amp;lt;input type=&quot;button&quot; onclick=&quot;alert('clicked');&quot; value=&quot;OK&quot; /&amp;gt;


=&amp;gt; The window alert is shown in Firefox, but not in IE.
&lt;/pre&gt;</body>
      <body-html>&lt;div&gt;&lt;p&gt;
&lt;pre&gt;
&lt;/p&gt;&lt;p&gt;
When doing something like this :
&lt;/p&gt;&lt;p&gt;
::: JS :::
&lt;/p&gt;&lt;p&gt;
viewLogIn:function(){
&lt;/p&gt;&lt;p&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;new Request.HTML({
&lt;/p&gt;&lt;p&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;url:'ajax.php',
&lt;/p&gt;&lt;p&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;data:'action=viewLogIn',
&lt;/p&gt;&lt;p&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;update:$('content')
&lt;/p&gt;&lt;p&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}).send();
&lt;/p&gt;&lt;p&gt;
}
&lt;/p&gt;&lt;p&gt;
::: Returned HTML :::
&lt;/p&gt;&lt;p&gt;
&amp;lt;input type=&quot;button&quot; onclick=&quot;alert('clicked');&quot; value=&quot;OK&quot; /&amp;gt;
&lt;/p&gt;&lt;p&gt;
=&amp;gt; The window alert is shown in Firefox, but not in IE.
&lt;/p&gt;&lt;p&gt;
&lt;/pre&gt;
&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2008-07-08T13:12:10+01:00</created-at>
      <creator-id type="integer">25612</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">1634</milestone-id>
      <number type="integer">205</number>
      <permalink>onclick-properties-are-dropped-unsing-request-html-in-ie</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">2706</project-id>
      <state>new</state>
      <tag>1.2 ie request</tag>
      <title>onclick properties are dropped unsing Request.HTML in IE</title>
      <updated-at type="datetime">2008-07-08T13:12:10+01:00</updated-at>
      <user-id type="integer">25612</user-id>
      <user-name>Boris</user-name>
      <creator-name>Boris</creator-name>
      <assigned-user-name>Valerio</assigned-user-name>
      <url>http://mootools.lighthouseapp.com/projects/2706/tickets/205</url>
      <milestone-title>2.0</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">4325</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Found a solution : 

Replaced line 3754 of mootools-1.2-core-nc.js :

//if (options.update) $(options.update).empty().adopt(response.tree);
if (options.update) $(options.update).empty().set('html',response.html);</body>
      <body-html>&lt;div&gt;&lt;p&gt;
Found a solution :
&lt;/p&gt;&lt;p&gt;
Replaced line 3754 of mootools-1.2-core-nc.js :
&lt;/p&gt;&lt;p&gt;
//if (options.update) $(options.update).empty().adopt(response.tree);
&lt;/p&gt;&lt;p&gt;
if (options.update) $(options.update).empty().set('html',response.html);
&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2008-07-09T09:47:08+01:00</created-at>
      <creator-id type="integer">25612</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">1634</milestone-id>
      <number type="integer">205</number>
      <permalink>onclick-properties-are-dropped-unsing-request-html-in-ie</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">2706</project-id>
      <state>new</state>
      <tag>1.2 ie request</tag>
      <title>onclick properties are dropped unsing Request.HTML in IE</title>
      <updated-at type="datetime">2008-07-09T09:47:08+01:00</updated-at>
      <user-id type="integer">25612</user-id>
      <user-name>Boris</user-name>
      <creator-name>Boris</creator-name>
      <assigned-user-name>Valerio</assigned-user-name>
      <url>http://mootools.lighthouseapp.com/projects/2706/tickets/205</url>
      <milestone-title>2.0</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">4325</assigned-user-id>
      <attachments-count type="integer">1</attachments-count>
      <body>request.HTML-fix.js</body>
      <body-html>&lt;div&gt;&lt;p&gt;
request.HTML-fix.js
&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2008-07-09T10:10:37+01:00</created-at>
      <creator-id type="integer">25612</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">1634</milestone-id>
      <number type="integer">205</number>
      <permalink>onclick-properties-are-dropped-unsing-request-html-in-ie</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">2706</project-id>
      <state>new</state>
      <tag>1.2 ie request</tag>
      <title>onclick properties are dropped unsing Request.HTML in IE</title>
      <updated-at type="datetime">2008-07-09T10:10:37+01:00</updated-at>
      <user-id type="integer">25612</user-id>
      <user-name>Boris</user-name>
      <creator-name>Boris</creator-name>
      <assigned-user-name>Valerio</assigned-user-name>
      <url>http://mootools.lighthouseapp.com/projects/2706/tickets/205</url>
      <milestone-title>2.0</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">4325</assigned-user-id>
      <attachments-count type="integer">1</attachments-count>
      <body>Example here : http://gueschla.com/test2/</body>
      <body-html>&lt;div&gt;&lt;p&gt;
Example here : &lt;a href=&quot;http://gueschla.com/test2/&quot;&gt;http://gueschla.com/test2/&lt;/a&gt;
&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2008-07-09T11:22:57+01:00</created-at>
      <creator-id type="integer">25612</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">1634</milestone-id>
      <number type="integer">205</number>
      <permalink>onclick-properties-are-dropped-unsing-request-html-in-ie</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">2706</project-id>
      <state>new</state>
      <tag>1.2 ie request</tag>
      <title>onclick properties are dropped unsing Request.HTML in IE</title>
      <updated-at type="datetime">2008-07-09T11:22:57+01:00</updated-at>
      <user-id type="integer">25612</user-id>
      <user-name>Boris</user-name>
      <creator-name>Boris</creator-name>
      <assigned-user-name>Valerio</assigned-user-name>
      <url>http://mootools.lighthouseapp.com/projects/2706/tickets/205</url>
      <milestone-title>2.0</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">4325</assigned-user-id>
      <attachments-count type="integer">1</attachments-count>
      <body>I can confirm this issue, and also that the fix is working well with Firefox and IE6 and IE7. Hopefully this will make it into 2.1.

Thanks Boris!</body>
      <body-html>&lt;div&gt;&lt;p&gt;I can confirm this issue, and also that the fix is working well
with Firefox and IE6 and IE7. Hopefully this will make it into
2.1.&lt;/p&gt;
&lt;p&gt;Thanks Boris!&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2008-10-04T14:50:41+01:00</created-at>
      <creator-id type="integer">25612</creator-id>
      <diffable-attributes type="yaml">--- 
:tag: 1.2 ie request
</diffable-attributes>
      <milestone-id type="integer">1634</milestone-id>
      <number type="integer">205</number>
      <permalink>onclick-properties-are-dropped-unsing-request-html-in-ie</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">2706</project-id>
      <state>new</state>
      <tag>ie request</tag>
      <title>onclick properties are dropped unsing Request.HTML in IE</title>
      <updated-at type="datetime">2008-10-04T14:50:42+01:00</updated-at>
      <user-id type="integer">32876</user-id>
      <user-name>BuggyBoy</user-name>
      <creator-name>Boris</creator-name>
      <assigned-user-name>Valerio</assigned-user-name>
      <url>http://mootools.lighthouseapp.com/projects/2706/tickets/205</url>
      <milestone-title>2.0</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">21273</assigned-user-id>
      <attachments-count type="integer">1</attachments-count>
      <body>you mean 1.2, im sure.

If you want us to include this fix for Request.HTML, we have to change the API, and people really, really hate when we change the API.  We will discuss and decide.</body>
      <body-html>&lt;div&gt;&lt;p&gt;you mean 1.2, im sure.&lt;/p&gt;
&lt;p&gt;If you want us to include this fix for Request.HTML, we have to
change the API, and people really, really hate when we change the
API. We will discuss and decide.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2008-10-05T02:15:21+01:00</created-at>
      <creator-id type="integer">25612</creator-id>
      <diffable-attributes type="yaml">--- 
:state: new
:assigned_user: 4325
:milestone: 1634
</diffable-attributes>
      <milestone-id type="integer">12650</milestone-id>
      <number type="integer">205</number>
      <permalink>onclick-properties-are-dropped-unsing-request-html-in-ie</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">2706</project-id>
      <state>open</state>
      <tag>ie request</tag>
      <title>onclick properties are dropped unsing Request.HTML in IE</title>
      <updated-at type="datetime">2008-10-05T02:15:24+01:00</updated-at>
      <user-id type="integer">21273</user-id>
      <user-name>Tom Occhino</user-name>
      <creator-name>Boris</creator-name>
      <assigned-user-name>Tom Occhino</assigned-user-name>
      <url>http://mootools.lighthouseapp.com/projects/2706/tickets/205</url>
      <milestone-title>1.2.1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">21273</assigned-user-id>
      <attachments-count type="integer">1</attachments-count>
      <body>yes, i meant 1.2.1. how would this be an API change? isn't adopt almost the same as to set the response html with &quot;set&quot;? the only change is that &quot;onclick&quot; will work where it didn't before, and surely anyone who has an &quot;onclick&quot; event in his response would like it to work.</body>
      <body-html>&lt;div&gt;&lt;p&gt;yes, i meant 1.2.1. how would this be an API change? isn't adopt
almost the same as to set the response html with &quot;set&quot;? the only
change is that &quot;onclick&quot; will work where it didn't before, and
surely anyone who has an &quot;onclick&quot; event in his response would like
it to work.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2008-10-06T17:38:33+01:00</created-at>
      <creator-id type="integer">25612</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">12650</milestone-id>
      <number type="integer">205</number>
      <permalink>onclick-properties-are-dropped-unsing-request-html-in-ie</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">2706</project-id>
      <state>open</state>
      <tag>ie request</tag>
      <title>onclick properties are dropped unsing Request.HTML in IE</title>
      <updated-at type="datetime">2008-10-06T17:38:35+01:00</updated-at>
      <user-id type="integer">32876</user-id>
      <user-name>BuggyBoy</user-name>
      <creator-name>Boris</creator-name>
      <assigned-user-name>Tom Occhino</assigned-user-name>
      <url>http://mootools.lighthouseapp.com/projects/2706/tickets/205</url>
      <milestone-title>1.2.1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">21273</assigned-user-id>
      <attachments-count type="integer">1</attachments-count>
      <body>@BuggyBoy,

The problem is that currently Request.HTML treats the response like an XML document instead of blindly setting the innerHTML of the div to be updated.  While we have a fix in for 1.3, it requires that we change the signature of the onSuccess Event for Request.HTML (since we will no longer have processHTML, or response.tree, or response.elements).  We want 1.2.1 to be a drop in replacement for 1.2.0, so we are hesitant to include the fix.</body>
      <body-html>&lt;div&gt;&lt;p&gt;@BuggyBoy,&lt;/p&gt;
&lt;p&gt;The problem is that currently Request.HTML treats the response
like an XML document instead of blindly setting the innerHTML of
the div to be updated. While we have a fix in for 1.3, it requires
that we change the signature of the onSuccess Event for
Request.HTML (since we will no longer have processHTML, or
response.tree, or response.elements). We want 1.2.1 to be a drop in
replacement for 1.2.0, so we are hesitant to include the fix.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2008-10-06T19:17:54+01:00</created-at>
      <creator-id type="integer">25612</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">12650</milestone-id>
      <number type="integer">205</number>
      <permalink>onclick-properties-are-dropped-unsing-request-html-in-ie</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">2706</project-id>
      <state>open</state>
      <tag>ie request</tag>
      <title>onclick properties are dropped unsing Request.HTML in IE</title>
      <updated-at type="datetime">2008-10-06T19:17:59+01:00</updated-at>
      <user-id type="integer">21273</user-id>
      <user-name>Tom Occhino</user-name>
      <creator-name>Boris</creator-name>
      <assigned-user-name>Tom Occhino</assigned-user-name>
      <url>http://mootools.lighthouseapp.com/projects/2706/tickets/205</url>
      <milestone-title>1.2.1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">21273</assigned-user-id>
      <attachments-count type="integer">1</attachments-count>
      <body>fixed for 1.2.1, though it is a band-aid...</body>
      <body-html>&lt;div&gt;&lt;p&gt;fixed for 1.2.1, though it is a band-aid...&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2008-10-10T22:03:16+01:00</created-at>
      <creator-id type="integer">25612</creator-id>
      <diffable-attributes type="yaml">--- 
:state: open
</diffable-attributes>
      <milestone-id type="integer">12650</milestone-id>
      <number type="integer">205</number>
      <permalink>onclick-properties-are-dropped-unsing-request-html-in-ie</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">2706</project-id>
      <state>resolved</state>
      <tag>ie request</tag>
      <title>onclick properties are dropped unsing Request.HTML in IE</title>
      <updated-at type="datetime">2008-10-10T22:03:21+01:00</updated-at>
      <user-id type="integer">21273</user-id>
      <user-name>Tom Occhino</user-name>
      <creator-name>Boris</creator-name>
      <assigned-user-name>Tom Occhino</assigned-user-name>
      <url>http://mootools.lighthouseapp.com/projects/2706/tickets/205</url>
      <milestone-title>1.2.1</milestone-title>
    </version>
  </versions>
  <attachments type="array">
    <attachment type="Attachment">
      <code>efdc51ef93950a309d69335a64faeea36650f9d9</code>
      <content-type>application/x-javascript</content-type>
      <created-at type="datetime">2008-07-09T10:10:37+01:00</created-at>
      <filename>request.HTML-fix.js</filename>
      <height type="integer" nil="true"></height>
      <id type="integer">31592</id>
      <size type="integer">1185</size>
      <uploader-id type="integer">25612</uploader-id>
      <width type="integer" nil="true"></width>
      <url>http://mootools.lighthouseapp.com/attachments/31592/request.HTML-fix.js</url>
    </attachment>
  </attachments>
</ticket>
