demo/svgxuse.js
function getOrigin(loc) {
                var a;
                if (loc.protocol !== undefined) {
                    a = loc;
                } else {
                    a = document.createElement("a");
                    a.href = loc;
                }
                return a.protocol.replace(/:/g, "") + a.host;
            }
function getOrigin(loc) {
                var a;
                if (loc.protocol !== undefined) {
                    a = loc;
                } else {
                    a = document.createElement("a");
                    a.href = loc;
                }
                return a.protocol.replace(/:/g, "") + a.host;
            }
function getOrigin ( loc ) { var a ; if ( loc . protocol !== undefined ) { a = loc ; } else { a = document . createElement ( "a" ) ; a . href = loc ; } return a . protocol . replace ( / : / g , "" ) + a . host ; }
In IE 9, cross origin requests can only be sent using XDomainRequest. XDomainRequest would fail if CORS headers are not set. Therefore, XDomainRequest should only be used with cross origin requests.
In IE 9 cross origin requests can only be sent using XDomainRequest . XDomainRequest would fail if CORS headers are not set . Therefore XDomainRequest should only be used with cross origin requests .