Skip to content

Element.down() (without parameters) returns "null" #317

Closed
@leonardfischer

Description

@leonardfischer

Hi,

I'm experiencing a problem in Prototype 1.7.3 with the .down() method, when called without any parameter.

Given this simple HTML for example:

<div id="test">
   <ul>
      <li>
   </ul>
</div>

And this Javascript:

$('test').down();  // Returns: null
$('test').down(0); // Returns: <ul>

This does break a lot of code (including the Scriptaculous Autocompleter for example)... Is this the desired behaviour?

Best regards,
Leo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions