Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb00411 commit b0e468fCopy full SHA for b0e468f
1 file changed
src/Symfony/Component/DomCrawler/Form.php
@@ -294,7 +294,7 @@ private function initialize()
294
$xpath = new \DOMXPath($document);
295
296
foreach ($xpath->query('descendant::input | descendant::button | descendant::textarea | descendant::select', $root) as $node) {
297
- if (!$node->hasAttribute('name')) {
+ if (!$node->hasAttribute('name') || !$node->getAttribute('name')) {
298
continue;
299
}
300
0 commit comments