- Fix: Avoid errors occurring in Chrome now for supportsGoodTextCharPos
- Linting: Avoid Jamilih file in doc linting - Testing: Add testcafe (ESLint plugin/rules, accessibility test (failing), ui test beginnings (passing)) - Docs: Add "Testing" prefix to contributing file - npm: Bump to 3.0.0-rc.3
This commit is contained in:
15
dist/index-es.js
vendored
15
dist/index-es.js
vendored
@@ -2666,7 +2666,7 @@ var supportsPathInsertItemBefore_ = function () {
|
||||
} catch (err) {}
|
||||
|
||||
return false;
|
||||
}(); // text character positioning (for IE9)
|
||||
}(); // text character positioning (for IE9 and now Chrome)
|
||||
|
||||
|
||||
var supportsGoodTextCharPos_ = function () {
|
||||
@@ -2678,9 +2678,16 @@ var supportsGoodTextCharPos_ = function () {
|
||||
var text = document.createElementNS(NS.SVG, 'text');
|
||||
text.textContent = 'a';
|
||||
svgcontent.append(text);
|
||||
var pos = text.getStartPositionOfChar(0).x;
|
||||
svgroot.remove();
|
||||
return pos === 0;
|
||||
|
||||
try {
|
||||
// Chrome now fails here
|
||||
var pos = text.getStartPositionOfChar(0).x;
|
||||
return pos === 0;
|
||||
} catch (err) {
|
||||
return false;
|
||||
} finally {
|
||||
svgroot.remove();
|
||||
}
|
||||
}();
|
||||
|
||||
var supportsPathBBox_ = function () {
|
||||
|
||||
2
dist/index-es.min.js
vendored
2
dist/index-es.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/index-es.min.js.map
vendored
2
dist/index-es.min.js.map
vendored
File diff suppressed because one or more lines are too long
15
dist/index-umd.js
vendored
15
dist/index-umd.js
vendored
@@ -2672,7 +2672,7 @@
|
||||
} catch (err) {}
|
||||
|
||||
return false;
|
||||
}(); // text character positioning (for IE9)
|
||||
}(); // text character positioning (for IE9 and now Chrome)
|
||||
|
||||
|
||||
var supportsGoodTextCharPos_ = function () {
|
||||
@@ -2684,9 +2684,16 @@
|
||||
var text = document.createElementNS(NS.SVG, 'text');
|
||||
text.textContent = 'a';
|
||||
svgcontent.append(text);
|
||||
var pos = text.getStartPositionOfChar(0).x;
|
||||
svgroot.remove();
|
||||
return pos === 0;
|
||||
|
||||
try {
|
||||
// Chrome now fails here
|
||||
var pos = text.getStartPositionOfChar(0).x;
|
||||
return pos === 0;
|
||||
} catch (err) {
|
||||
return false;
|
||||
} finally {
|
||||
svgroot.remove();
|
||||
}
|
||||
}();
|
||||
|
||||
var supportsPathBBox_ = function () {
|
||||
|
||||
2
dist/index-umd.min.js
vendored
2
dist/index-umd.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/index-umd.min.js.map
vendored
2
dist/index-umd.min.js.map
vendored
File diff suppressed because one or more lines are too long
15
dist/redirect-on-lacking-support.js
vendored
15
dist/redirect-on-lacking-support.js
vendored
@@ -2474,7 +2474,7 @@
|
||||
} catch (err) {}
|
||||
|
||||
return false;
|
||||
}(); // text character positioning (for IE9)
|
||||
}(); // text character positioning (for IE9 and now Chrome)
|
||||
|
||||
|
||||
var supportsGoodTextCharPos_ = function () {
|
||||
@@ -2486,9 +2486,16 @@
|
||||
var text = document.createElementNS(NS.SVG, 'text');
|
||||
text.textContent = 'a';
|
||||
svgcontent.append(text);
|
||||
var pos = text.getStartPositionOfChar(0).x;
|
||||
svgroot.remove();
|
||||
return pos === 0;
|
||||
|
||||
try {
|
||||
// Chrome now fails here
|
||||
var pos = text.getStartPositionOfChar(0).x;
|
||||
return pos === 0;
|
||||
} catch (err) {
|
||||
return false;
|
||||
} finally {
|
||||
svgroot.remove();
|
||||
}
|
||||
}();
|
||||
|
||||
var supportsPathBBox_ = function () {
|
||||
|
||||
Reference in New Issue
Block a user