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 ae02676 commit bac33abCopy full SHA for bac33ab
test/image/strict-d3.js
@@ -55,7 +55,7 @@ function checkAttrVal(sel, key, val) {
55
56
// make sure no double-negative string get into the DOM,
57
// their handling differs from browsers to browsers
58
- if(/--/.test(val)) {
+ 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
0 commit comments