rem: protocol = link.getAttributeNS("http: if ( protocol ) { protocol = protocol.substr( 0, linktype.length ); 
add: protocol = wrapper.getAttributeNS("http: if (protocol) { protocol = protocol.substr(0, linktype.length); 
context:     isLinkType : function ( linktype, link ) {                try {            // Test for missing protocol property.            if ( !link.protocol ) {                // We must resort to testing the URL string :-(.                var protocol;                if ( link.href ) {                    protocol = link.href.substr( 0, linktype.length );                } else {                    protocol = link.getAttributeNS("http://www.w3.org/1999/xlink","href");                    if ( protocol ) {                        protocol = protocol.substr( 0, linktype.length );                    }                }                return protocol.toLowerCase() === linktype;                    } else {                // Presume all but javascript: urls are saveable.                return link.protocol.toLowerCase() === linktype;            }        } catch (e) {            // something was wrong with the link,            // so we won't be able to save it anyway            return false;        }    },
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/8e43941de7aed68ab3600a0fc5e6335f445035b1/browser.js/buggy/browser/base/content/browser.js