Ticket #21352: 0001-Remove-disallowed-element-attributes.patch

File 0001-Remove-disallowed-element-attributes.patch, 1.4 KB (added by cypherpunks, 4 years ago)
  • js/views/details/main.js

    From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
    From: cypherpunks <cypherpunks@torproject.org>
    Date: Fri, 10 Feb 2017 09:25:15 +0000
    Subject: [PATCH] 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 4becdf9..6016cb5 100644
    a b define([ 
    138138
    139139            /* Add a legend. */
    140140            var legend = svg.append("g")
    141                 .attr("class", "legend")
    142                 .attr("x", width - 65)
    143                 .attr("y", 25);
     141                .attr("class", "legend");
    144142            legend.selectAll("g").data(data)
    145143                .enter().append("g")
    146144                .each(function(d, i) {
    define([ 
    155153                    g.append("svg:text")
    156154                        .attr("x", legendPos[i][0] - margin.left + 15)
    157155                        .attr("y", legendPos[i][1] - margin.top + 14)
    158                         .attr("height", 30)
    159                         .attr("width", 100)
    160156                        .style("fill", colors[i])
    161157                        .style("font-family", "Helvetica")
    162158                        .style("font-size", "12px")