context: OpenLayers.Util.createUrlObject = function(url, options) {    options = options || new Object();    var urlObject = new Object();      if (options.ignoreCase) {        url = url.toLowerCase();     }    var a = document.createElement('a');    a.href = url;      //protocol    urlObject.protocol = a.protocol;      //pathname (this part allows for relative <-> absolute comparison)    urlObject.pathname = a.pathname;          //Test to see if the pathname includes the arguments (this happens in Opera)    var qIndex = urlObject.pathname.indexOf("?");    if (qIndex != -1) {        urlObject.pathname = urlObject.pathname.substring(0, qIndex);    }      //hash    urlObject.hash = (options.ignoreHash) ? "" : a.hash;        //host (without port)    urlObject.host = a.host;    var port = a.port;    if (port.length <= 0) {        var newHostLength = urlObject.host.length - (port.length);        urlObject.host = urlObject.host.substring(0, newHostLength);     }      //port    urlObject.port = ((port == "80") && (options.ignorePort80)) ? "" : port;                                                                       //args    urlObject.args = OpenLayers.Util.getArgs(a.search);    return urlObject; };
meta: 1027	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1027/efe8f3c16251d098fe0d59ab4fc251e97373996c/Util.js/buggy/lib/OpenLayers/Util.js