Skip to content

Commit e7f9322

Browse files
committed
Merge pull request #58 from Hexanet/fix-manipulating-pages-guide
Fix code example in manipulating-pages guide
2 parents bf54dee + ac05004 commit e7f9322

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)