Changeset 478
- Timestamp:
- 03/22/06 17:27:37 (7 years ago)
- Files:
-
- 1 modified
-
trunk/plugins/GetHtml/get-html.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/GetHtml/get-html.js
r468 r478 78 78 replace(c[8], '<').//strip tagstart whitespace 79 79 replace(c[10], ' ');//trim extra whitespace 80 if(HTMLArea.is_ie && c[13].test(sHtml)) { //80 if(HTMLArea.is_ie && c[13].test(sHtml)) { 81 81 sHtml = sHtml.replace(c[13],'$1'+this.stripBaseURL(RegExp.$3)+'"'); 82 82 } … … 195 195 }; 196 196 197 //fix obscure case; stripSelfNamedAnchors fails in IE if location.href includes a query string with '&' in it 198 HTMLArea.prototype._origFixRelativeLinks = HTMLArea.prototype.fixRelativeLinks; 199 HTMLArea.prototype.fixRelativeLinks = function(html) 200 { 201 if(typeof this.config.stripSelfNamedAnchors != 'undefined' && this.config.stripSelfNamedAnchors) 202 { 203 var stripRe = new RegExp(document.location.href.replace(/&/g,'&').replace(HTMLArea.RE_Specials, '\\$1') + '(#[^\'" ]*)', 'g'); 204 html = html.replace(stripRe, '$1'); 205 } 206 html = this._origFixRelativeLinks(html); 207 return html; 208 }; 209 197 210 //override (hack) outwardHtml() to handle onclick suppression 198 211 HTMLArea.prototype._origOutwardHtml = HTMLArea.prototype.outwardHtml;
