lib-innerbrowser icon indicating copy to clipboard operation
lib-innerbrowser copied to clipboard

If no formId, get cryptic Expected string or identifier, but \<delimiter "]" at 11> found."

Open bitwombat opened this issue 4 years ago • 2 comments

getFormFromCrawler in InnerBrowser.php throws:

"[Symfony\Component\CssSelector\Exception\SyntaxErrorException] Expected string or identifier, but \<delimiter "]" at 11> found."

if the $formId is ""

bitwombat avatar Feb 24 '21 18:02 bitwombat

Do you have a form without id and action attributes?

Please provide HTML and test code to reproduce this issue.

Naktibalda avatar Feb 28 '21 10:02 Naktibalda

Do you have a form without id and action attributes?

Yes, in error, but the message is unhelpful.

Please provide HTML and test code to reproduce this issue.

Totally reasonable, but you can see getFormFromCrawler relies on id being set.

bitwombat avatar Feb 28 '21 11:02 bitwombat