[tor-commits] [atlas/master] Remove disallowed element attributes
irl at torproject.org
irl at torproject.org
Wed Mar 1 17:37:50 UTC 2017
commit dcc790ded38aacada05217ea7b2f9efca4ef92c1
Author: cypherpunks <cypherpunks at torproject.org>
Date: Fri Feb 10 09:25:15 2017 +0000
Remove disallowed element attributes
Removing these attributes shows no rendering differences.
Found using the W3C markup validator service bookmarklet.
Closes #21352.
---
js/views/details/main.js | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/js/views/details/main.js b/js/views/details/main.js
index 9006c94..f95e015 100644
--- a/js/views/details/main.js
+++ b/js/views/details/main.js
@@ -138,9 +138,7 @@ define([
/* Add a legend. */
var legend = svg.append("g")
- .attr("class", "legend")
- .attr("x", width - 65)
- .attr("y", 25);
+ .attr("class", "legend");
legend.selectAll("g").data(data)
.enter().append("g")
.each(function(d, i) {
@@ -155,8 +153,6 @@ define([
g.append("svg:text")
.attr("x", legendPos[i][0] - margin.left + 15)
.attr("y", legendPos[i][1] - margin.top + 14)
- .attr("height", 30)
- .attr("width", 100)
.style("fill", colors[i])
.style("font-family", "Helvetica")
.style("font-size", "12px")
More information about the tor-commits
mailing list