[Solved] Uncaught TypeError: Cannot read property ‘ownerDocument’ of null

/*********************************************************************

 * Uncaught TypeError: Cannot read property 'ownerDocument' of null
 * Description.
 * Trying to load the SVG file content via JS Ajax and then dynamically insert it into the div, reporting this error.
 * Solution, directly change the svg suffix to html, it works.
 *
 ********************************************************************/

For this reported error, did not understand much, anyway, after changing the file suffix (.svg -> .html), it works.

Similar Posts: