We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bf54dee + ac05004 commit e7f9322Copy full SHA for e7f9322
1 file changed
guides/manipulating-pages.rst
@@ -37,7 +37,7 @@ The ``NodeElement`` class gives you access to HTML attributes of the element.
37
38
$el = $page->find('css', '.something');
39
40
- if ($el->hasAttribute('href') {
+ if ($el->hasAttribute('href')) {
41
echo $el->getAttribute('href');
42
} else {
43
echo 'This anchor is not a link. It does not have an href.';
0 commit comments