Skip to content

Commit

Permalink
Merge pull request #58 from Hexanet/fix-manipulating-pages-guide
Browse files Browse the repository at this point in the history
Fix code example in manipulating-pages guide
  • Loading branch information
stof committed Sep 28, 2015
2 parents bf54dee + ac05004 commit e7f9322
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/manipulating-pages.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ The ``NodeElement`` class gives you access to HTML attributes of the element.
$el = $page->find('css', '.something');
if ($el->hasAttribute('href') {
if ($el->hasAttribute('href')) {
echo $el->getAttribute('href');
} else {
echo 'This anchor is not a link. It does not have an href.';
Expand Down

0 comments on commit e7f9322

Please sign in to comment.