From b20af2764cef243f8ca7a8d85190746aacc8885e Mon Sep 17 00:00:00 2001 From: cyberalien Date: Fri, 14 Apr 2017 11:02:23 +0300 Subject: [PATCH] Fix case in preserveAspectRatio attribute --- src/browser/renderer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/browser/renderer.js b/src/browser/renderer.js index 8577276..6686f42 100644 --- a/src/browser/renderer.js +++ b/src/browser/renderer.js @@ -40,8 +40,8 @@ html = html.slice(pos + 1); } - // Fix viewBox attribute - html = html.replace('viewbox=', 'viewBox='); + // Fix lower case attributes + html = html.replace('viewbox=', 'viewBox=').replace('preserveaspectratio=', 'preserveAspectRatio='); // Add body pos = html.indexOf('