Commit 50a7f8d5 by Tomas Alabes

href parameter for Paper.text does NOT behave like hyperlink in 2.1.2

parent d18b7796
......@@ -322,13 +322,13 @@ window.Raphael && window.Raphael.svg && function(R) {
case "blur":
o.blur(value);
break;
case "href":
case "title":
var hl = $("title");
var val = R._g.doc.createTextNode(value);
hl.appendChild(val);
node.appendChild(hl);
break;
case "href":
case "target":
var pn = node.parentNode;
if (pn.tagName.toLowerCase() != "a") {
......
......@@ -23,6 +23,9 @@
// Initialize container when document is loaded
window.onload = function () {
paper = Raphael(0, 0, 640, 720, "container");
paper.text(200, 25 + 18, "Some Text that should be a link").attr({
'href': "https:www.google.com"
});
};
//Work here, in a separate script file or via command line
</script>
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -6108,13 +6108,13 @@
case "blur":
o.blur(value);
break;
case "href":
case "title":
var hl = $("title");
var val = R._g.doc.createTextNode(value);
hl.appendChild(val);
node.appendChild(hl);
break;
case "href":
case "target":
var pn = node.parentNode;
if (pn.tagName.toLowerCase() != "a") {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment