From 80c79e34a8fe96a9b1dd09647ac27e0e32f5a47e Mon Sep 17 00:00:00 2001 From: Orslumen Date: Fri, 8 Apr 2011 15:56:07 +0200 Subject: [PATCH] https://github.com/envjs/env-js/issues/23: Support href '#' and 'javascript:void(0);' --- envjs/html.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/envjs/html.js b/envjs/html.js index 1c1b2784..544c2c3b 100644 --- a/envjs/html.js +++ b/envjs/html.js @@ -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());