Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ThomasLandauer opened this issue Apr 16, 2024 · 0 comments

Comments

@ThomasLandauer
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant