title: Is it possible to support document.all() in Rhino?
body: <p>I am creating my own custom DOM for Rhino.</p>
  
  <p>As you know, legacy IE supports 'nice' document.all() feature to perform a selection of nodes.</p>
  
  <p>it can be called as following way</p>
  
  <pre><code>X) document.all(1).tagName
  
  Y) document.all.[object id].tagName
  </code></pre>
  
  <p>if i declare functions on my DOM as </p>
  
  <pre><code>public object all(object ___param)
  {
     return ....;
  }
  </code></pre>
  
  <p>query X can be processed, but query Y will throw an error (because rhino thinks it is a property.</p>
  
  <p>Instead, if i put property as</p>
  
  <pre><code>public object all
  {
       get
          {
                  returns ...;
          }
  }
  </code></pre>
  
  <p>Now query Y can processed, but query X ends up with error because it is property!</p>
  
  <p>(It seems to be that i have to give up one of the choice within Rhino javascript interpreter.)</p>
  
  <p>is it possible to create a function object to process both query X and query Y?</p>
  
  <p>Thanks in advance!</p>