<?xml version="1.0" encoding="UTF-8"?>
<ticket>
  <assigned-user-id type="integer">123</assigned-user-id>
  <attachments-count type="integer">0</attachments-count>
  <closed type="boolean">false</closed>
  <created-at type="datetime">2008-07-07T23:14:39+01:00</created-at>
  <creator-id type="integer">25555</creator-id>
  <milestone-due-on type="datetime">2009-10-31T00:00:00+00:00</milestone-due-on>
  <milestone-id type="integer">1634</milestone-id>
  <number type="integer">203</number>
  <permalink>element-getelementbyid-doesn-t-work-for-elements-not-in-document</permalink>
  <priority type="integer">325</priority>
  <project-id type="integer">2706</project-id>
  <raw-data type="binary" nil="true" encoding="base64"></raw-data>
  <state>open</state>
  <tag>defect regression selectors slick</tag>
  <title>Slick nodes with no parents</title>
  <updated-at type="datetime">2009-11-21T15:06:19+00:00</updated-at>
  <user-id type="integer">21395</user-id>
  <user-name>Jan Kassens</user-name>
  <creator-name>David</creator-name>
  <assigned-user-name>Thomas Aylott</assigned-user-name>
  <url>http://mootools.lighthouseapp.com/projects/2706/tickets/203</url>
  <milestone-title>2.0</milestone-title>
  <original-body>This appears to be by design. 

Element.getElementById calls this.ownerDocument.getElementById to find elements... but what if I'm trying to find an element in an object not in the document (say something returned from AJAX)?  It doesn't work.

Element.getElement doesn't work either, because it calls Element.getElementById.

In my mind at least this is a big usability bug.</original-body>
  <latest-body>This appears to be by design. 

Element.getElementById calls this.ownerDocument.getElementById to find elements... but what if I'm trying to find an element in an object not in the document (say something returned from AJAX)?  It doesn't work.

Element.getElement doesn't work either, because it calls Element.getElementById.

In my mind at least this is a big usability bug.</latest-body>
  <original-body-html>&lt;div&gt;&lt;p&gt;
This appears to be by design.
&lt;/p&gt;&lt;p&gt;
Element.getElementById calls this.ownerDocument.getElementById to find elements... but what if I'm trying to find an element in an object not in the document (say something returned from AJAX)?  It doesn't work.
&lt;/p&gt;&lt;p&gt;
Element.getElement doesn't work either, because it calls Element.getElementById.
&lt;/p&gt;&lt;p&gt;
In my mind at least this is a big usability bug.
&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>This appears to be by design. 

Element.getElementById calls this.ownerDocument.getElementById to find elements... but what if I'm trying to find an element in an object not in the document (say something returned from AJAX)?  It doesn't work.

Element.getElement doesn't work either, because it calls Element.getElementById.  Element.getElement at least used to work in this case in Mootools 1.1.

In my mind at least this is a big usability bug.</body>
      <body-html>&lt;div&gt;&lt;p&gt;
This appears to be by design.
&lt;/p&gt;&lt;p&gt;
Element.getElementById calls this.ownerDocument.getElementById to find elements... but what if I'm trying to find an element in an object not in the document (say something returned from AJAX)?  It doesn't work.
&lt;/p&gt;&lt;p&gt;
Element.getElement doesn't work either, because it calls Element.getElementById.  Element.getElement at least used to work in this case in Mootools 1.1.
&lt;/p&gt;&lt;p&gt;
In my mind at least this is a big usability bug.
&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2008-07-07T23:17:50+01:00</created-at>
      <creator-id type="integer">25555</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">1634</milestone-id>
      <number type="integer">203</number>
      <permalink>element-getelementbyid-doesn-t-work-for-elements-not-in-document</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">2706</project-id>
      <state>new</state>
      <tag>defect</tag>
      <title>Element.getElementById doesn't work for elements not in document</title>
      <updated-at type="datetime">2008-07-07T23:17:50+01:00</updated-at>
      <user-id type="integer">25555</user-id>
      <user-name>David</user-name>
      <creator-name>David</creator-name>
      <assigned-user-name>Valerio</assigned-user-name>
      <url>http://mootools.lighthouseapp.com/projects/2706/tickets/203</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>i think it didnt work in the old version in IE.

i'm not sure if this one should be patched because of speed reasons. could be useful for ajax results though.</body>
      <body-html>&lt;div&gt;&lt;p&gt;
i think it didnt work in the old version in IE.
&lt;/p&gt;&lt;p&gt;
i'm not sure if this one should be patched because of speed reasons. could be useful for ajax results though.
&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2008-07-14T00:33:38+01:00</created-at>
      <creator-id type="integer">25555</creator-id>
      <diffable-attributes type="yaml">--- 
:tag: defect
:state: new
</diffable-attributes>
      <milestone-id type="integer">1634</milestone-id>
      <number type="integer">203</number>
      <permalink>element-getelementbyid-doesn-t-work-for-elements-not-in-document</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">2706</project-id>
      <state>hold</state>
      <tag>defect regression</tag>
      <title>Element.getElementById doesn't work for elements not in document</title>
      <updated-at type="datetime">2008-07-14T00:33:38+01:00</updated-at>
      <user-id type="integer">21395</user-id>
      <user-name>Jan Kassens</user-name>
      <creator-name>David</creator-name>
      <assigned-user-name>Valerio</assigned-user-name>
      <url>http://mootools.lighthouseapp.com/projects/2706/tickets/203</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>Maybe there could be a different method for doing this if the element isn't in the document?  That way speed could be preserved for the &quot;typical&quot; use of searching for elements in document.</body>
      <body-html>&lt;div&gt;&lt;p&gt;
Maybe there could be a different method for doing this if the element isn't in the document?  That way speed could be preserved for the &quot;typical&quot; use of searching for elements in document.
&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2008-07-14T08:30:49+01:00</created-at>
      <creator-id type="integer">25555</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">1634</milestone-id>
      <number type="integer">203</number>
      <permalink>element-getelementbyid-doesn-t-work-for-elements-not-in-document</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">2706</project-id>
      <state>hold</state>
      <tag>defect regression</tag>
      <title>Element.getElementById doesn't work for elements not in document</title>
      <updated-at type="datetime">2008-07-14T08:30:49+01:00</updated-at>
      <user-id type="integer">25555</user-id>
      <user-name>David</user-name>
      <creator-name>David</creator-name>
      <assigned-user-name>Valerio</assigned-user-name>
      <url>http://mootools.lighthouseapp.com/projects/2706/tickets/203</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>I was bitten by this too as I was trying to mess around with an html ajax response.  The workaround I am using is to put the ajax response into a hidden div in the document, and ask the document for the element by id.</body>
      <body-html>&lt;div&gt;&lt;p&gt;I was bitten by this too as I was trying to mess around with an
html ajax response. The workaround I am using is to put the ajax
response into a hidden div in the document, and ask the document
for the element by id.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2008-11-12T18:23:01+00:00</created-at>
      <creator-id type="integer">25555</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">1634</milestone-id>
      <number type="integer">203</number>
      <permalink>element-getelementbyid-doesn-t-work-for-elements-not-in-document</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">2706</project-id>
      <state>hold</state>
      <tag>defect regression</tag>
      <title>Element.getElementById doesn't work for elements not in document</title>
      <updated-at type="datetime">2008-11-12T18:23:06+00:00</updated-at>
      <user-id type="integer">37263</user-id>
      <user-name>MikeC</user-name>
      <creator-name>David</creator-name>
      <assigned-user-name>Valerio</assigned-user-name>
      <url>http://mootools.lighthouseapp.com/projects/2706/tickets/203</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>not sure if this currently works in slick or not, but it should.

I should add some specs to test for this.</body>
      <body-html>&lt;div&gt;&lt;p&gt;not sure if this currently works in slick or not, but it
should.&lt;/p&gt;
&lt;p&gt;I should add some specs to test for this.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-03-17T01:26:55+00:00</created-at>
      <creator-id type="integer">25555</creator-id>
      <diffable-attributes type="yaml">--- 
:state: hold
:tag: defect regression
:title: Element.getElementById doesn't work for elements not in document
</diffable-attributes>
      <milestone-id type="integer">1634</milestone-id>
      <number type="integer">203</number>
      <permalink>element-getelementbyid-doesn-t-work-for-elements-not-in-document</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">2706</project-id>
      <state>open</state>
      <tag>defect regression selectors slick</tag>
      <title>Slick nodes with no parents</title>
      <updated-at type="datetime">2009-03-17T01:26:59+00:00</updated-at>
      <user-id type="integer">123</user-id>
      <user-name>Thomas Aylott</user-name>
      <creator-name>David</creator-name>
      <assigned-user-name>Valerio</assigned-user-name>
      <url>http://mootools.lighthouseapp.com/projects/2706/tickets/203</url>
      <milestone-title>2.0</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">123</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Are there specs for this now with the mocks?</body>
      <body-html>&lt;div&gt;&lt;p&gt;Are there specs for this now with the mocks?&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-11-21T15:06:17+00:00</created-at>
      <creator-id type="integer">25555</creator-id>
      <diffable-attributes type="yaml">--- 
:assigned_user: 4325
</diffable-attributes>
      <milestone-id type="integer">1634</milestone-id>
      <number type="integer">203</number>
      <permalink>element-getelementbyid-doesn-t-work-for-elements-not-in-document</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">2706</project-id>
      <state>open</state>
      <tag>defect regression selectors slick</tag>
      <title>Slick nodes with no parents</title>
      <updated-at type="datetime">2009-11-21T15:06:19+00:00</updated-at>
      <user-id type="integer">21395</user-id>
      <user-name>Jan Kassens</user-name>
      <creator-name>David</creator-name>
      <assigned-user-name>Thomas Aylott</assigned-user-name>
      <url>http://mootools.lighthouseapp.com/projects/2706/tickets/203</url>
      <milestone-title>2.0</milestone-title>
    </version>
  </versions>
</ticket>
