Skip to content

Commit ac05004

Browse files
author
Floran Brutel
committed
Fix code example in manipulating-pages guide
1 parent bf54dee commit ac05004

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

guides/manipulating-pages.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ The ``NodeElement`` class gives you access to HTML attributes of the element.
3737
3838
$el = $page->find('css', '.something');
3939
40-
if ($el->hasAttribute('href') {
40+
if ($el->hasAttribute('href')) {
4141
echo $el->getAttribute('href');
4242
} else {
4343
echo 'This anchor is not a link. It does not have an href.';

0 commit comments

Comments
 (0)