Skip to content

Commit

Permalink
envjs#23: Support href '#' and 'javascript:void(0);'
Browse files Browse the repository at this point in the history
  • Loading branch information
orslumen committed Apr 8, 2011
1 parent d548e1e commit 80c79e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion envjs/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -1802,7 +1802,7 @@ __extend__(HTMLAnchorElement.prototype, {
},
get href() {
var link = this.getAttribute('href');
if (!link) {
if (!link || link === '#' || link === 'javascript:void(0);') {
return '';
}
return Envjs.uri(link, this.ownerDocument.location.toString());
Expand Down

0 comments on commit 80c79e3

Please sign in to comment.