Skip to content

find() defaults to find("") but findAll doesn't #143

Open
@XuluWarrior

Description

@XuluWarrior

The implementation of find (or getElement) has a default, "", value for the first argument. Meaning that find() is equivalent to find("").

However, findAll doesn't have this default value and so findAll() equates to findAll("undefined")

This seems inconsistent and caused me a bit of confusion debugging.

(findWithAssert also doesn't default the first argument)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions