Browser name & version:Chrome Version 74.0.3729.157 (Official Build) (64-bit)
Operating system & version: Windows 8.1
Loading an SVG (without HTML) I'm getting this error in the console:
Error in event handler: TypeError: Cannot read property 'scrollTop' of null
(Yes of course, document.body.scrollTop is meaningless because SVG has no body element. There's a viewbox, though.)
This error occurs in http, but not with file://
Perhaps... don't always assume HTML? Check the MIME type or something? SVG usage is growing, and there are dozens of other MIME types other than text/html that render directly in the browser. I assume there will be a similar error in these cases.
Loading an SVG (without HTML) I'm getting this error in the console:
Error in event handler: TypeError: Cannot read property 'scrollTop' of null
(Yes of course, document.body.scrollTop is meaningless because SVG has no body element. There's a viewbox, though.)
This error occurs in http, but not with file://
Perhaps... don't always assume HTML? Check the MIME type or something? SVG usage is growing, and there are dozens of other MIME types other than text/html that render directly in the browser. I assume there will be a similar error in these cases.