8000 Update src/Symfony/Component/DomCrawler/Form.php · symfony/symfony@b0e468f · GitHub
[go: up one dir, main page]

Skip to content

Commit b0e468f

Browse files
bierdokfabpot
authored andcommitted
Update src/Symfony/Component/DomCrawler/Form.php
1 parent cb00411 commit b0e468f

File tree

1 file changed

+1
-1
lines changed
  • src/Symfony/Component/DomCrawler

1 file changed

+1
-1
lines changed

src/Symfony/Component/DomCrawler/Form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ private function initialize()
294294
$xpath = new \DOMXPath($document);
295295

296296
foreach ($xpath->query('descendant::input | descendant::button | descendant::textarea | descendant::select', $root) as $node) {
297-
if (!$node->hasAttribute('name')) {
297+
if (!$node->hasAttribute('name') || !$node->getAttribute('name')) {
298298
continue;
299299
}
300300

0 commit comments

Comments
 (0)
0