Skip to content

Bug: MalformedLocatorException thrown for ids that don't start with a character (HTML 5) #128

@ThomasLandauer

Description

@ThomasLandauer

These both result in an MalformedLocatorException:

$I->seeElement(['id' =>'123']);
$I->seeElement(['css' =>'div#123']);

The reason is probably that up to HTML 4, ids were required to start with a character (a-z). However, in HTML 5, ids can begin with virtually anything: https://html.spec.whatwg.org/multipage/dom.html#the-id-attribute

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