Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
a few more attribute examples
  • Loading branch information
kraih committed Oct 24, 2015
1 parent 0f169b6 commit 74b60ae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

6.26 2015-10-23
6.26 2015-10-24

6.25 2015-10-21
- Deprecated Mojo::Message::Request::proxy with boolean and string arguments
Expand Down
6 changes: 6 additions & 0 deletions lib/Mojo/DOM.pm
Expand Up @@ -548,6 +548,12 @@ All selectors from L<Mojo::DOM::CSS/"SELECTORS"> are supported.
This element's attributes.
# Remove an attribute
delete $dom->attr->{id};
# Attribute without value
$dom->attr(selected => undef);
# List id attributes
say $dom->find('*')->map(attr => 'id')->compact->join("\n");
Expand Down

0 comments on commit 74b60ae

Please sign in to comment.