Opened 8 years ago

Closed 7 years ago

#1435 closed defect (fixed)

TransformInnerHTML "Object expected" error in IE

Reported by: guest Owned by: gogo
Priority: normal Milestone: 0.96
Component: Xinha Core Version: trunk
Severity: normal Keywords: ie transforminnerhtml
Cc: lethek@…

Description

In IE7 and 8RC1 (have not tested other versions of IE, but works in FF3), I get a javascript exception "Object expected" when flipping back and forth between HTML and WYSIWYG editing modes if getHtmlMethod is set to "TransformInnerHTML" and the document contains a src or href attribute.

Error is occurring on line 96 of /modules/GetHtml/TransformInnerHTML.js:
sHtml = sHtml.replace(c[13],'$1'+Xinha._escapeDollars(stripBaseURL(RegExp?.$3))+'"');

Fixed it on my dev environment by changing it to:
sHtml = sHtml.replace(c[13],'$1'+Xinha._escapeDollars(this.stripBaseURL(RegExp?.$3))+'"');

Change History (1)

comment:1 Changed 7 years ago by gogo

  • Resolution set to fixed
  • Status changed from new to closed

committed changeset:1213

Note: See TracTickets for help on using tickets.