We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59405d8 commit 440ca0dCopy full SHA for 440ca0d
1 file changed
test/image/strict-d3.js
@@ -58,6 +58,10 @@ function checkAttrVal(sel, key, val) {
58
if(/--/.test(val) && isNumeric(val.split('--')[1].charAt(0))) {
59
throw new Error('d3 selection.attr called with value ' + val + ' which includes a double negative');
60
}
61
+
62
+ if(/transform/.test(key) && /NaN/.test(val)) {
63
+ throw new Error('d3 selection.attr called with ' + key + ' ' + val + ' containing a NaN');
64
+ }
65
66
67
function checkStyleVal(sel, key, val) {
0 commit comments