You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ca...@apache.org on 2020/01/22 23:33:42 UTC
[royale-asjs] branch develop updated: html-a: default anchor tag
should not define href, sometimes we need anchor without href
This is an automated email from the ASF dual-hosted git repository.
carlosrovira pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/develop by this push:
new 197282f html-a: default anchor tag should not define href, sometimes we need anchor without href
197282f is described below
commit 197282f0d15fc44869961c5e534ad1c3f74ec4f6
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Thu Jan 23 00:33:32 2020 +0100
html-a: default anchor tag should not define href, sometimes we need anchor without href
---
.../HTML/src/main/royale/org/apache/royale/html/elements/A.as | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/frameworks/projects/HTML/src/main/royale/org/apache/royale/html/elements/A.as b/frameworks/projects/HTML/src/main/royale/org/apache/royale/html/elements/A.as
index 1af7bb7..8b187d0 100644
--- a/frameworks/projects/HTML/src/main/royale/org/apache/royale/html/elements/A.as
+++ b/frameworks/projects/HTML/src/main/royale/org/apache/royale/html/elements/A.as
@@ -50,7 +50,7 @@ package org.apache.royale.html.elements
super();
}
- private var _href:String = "#";
+ private var _href:String;
/**
* the link url
*
@@ -112,7 +112,7 @@ package org.apache.royale.html.elements
override protected function createElement():WrappedHTMLElement
{
addElementToWrapper(this,'a');
- element.setAttribute('href', _href);
+ // element.setAttribute('href', _href);
return element;
}
}