diff --git a/lib/index.js b/lib/index.js index 3f48db9..4bb587b 100644 --- a/lib/index.js +++ b/lib/index.js @@ -236,7 +236,7 @@ function main() { // if we spot some SVG elements in the source, // then we'll parse as XML to correctly get the SVG - if (body.indexOf(' xml detection
diff --git a/test/fixtures/xml-detection.src.html b/test/fixtures/xml-detection.src.html new file mode 100644 index 0000000..02c4abf --- /dev/null +++ b/test/fixtures/xml-detection.src.html @@ -0,0 +1,11 @@ + + + + + xml detection + + + +
+ +