Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#1040 closed defect (fixed)

htmlRemoveTags doesn't work in IE

Reported by: samuel@… Owned by: wymsy
Priority: normal Milestone:
Component: Plugin_GetHtml Version: trunk
Severity: normal Keywords:
Cc: samuel@…


When I use htmlRemoveTags (both with "normal" and compiled regexps) i get an "Object doesn't support this property or method" error when leaving the page (onunload) or viewing the HTML code, in Internet Explorer. Because of some bug in my IE setup it doesn't tell what file the error occurs in, just that it occurs on line 122, but I will try to track this down.

I've tried with very simple regexps but IE always fails on "line 122":

xinha_config.htmlRemoveTags = new RegExp().compile(/aaaa/);
xinha_config.htmlRemoveTags = /bbbb/;

This happens both with TransformInnerHTML and DOMWalk with Xinha version 0.931 rev 819.

Change History (5)

comment:1 Changed 13 years ago by guest

  • Cc samuel@… added

comment:2 Changed 13 years ago by samuel@…

  • Component changed from Xinha Core to Plugin_GetHtml
  • Owner changed from gogo to wymsy

I forgot to mention that when using DOMWalk it shows the "Your document is not well formed. Check JavaScript? console for details" error message (not the IE script error dialog), but it seems to be the same error.

The error when using TransformInnerHTML occurs at line 122 in TransformInnerHTML.js.

comment:3 Changed 13 years ago by ray

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

rev [946]

comment:4 Changed 13 years ago by ray

no, fixed in rev [947]

comment:5 Changed 13 years ago by ray

but now: rev [949]

Note: See TracTickets for help on using tickets.