Ticket #1040 (closed defect: fixed)

Opened 1 year ago

Last modified 10 months ago

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@…

Description

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

Changed 1 year ago by guest

  • cc samuel@… added

Changed 1 year ago by samuel@…

  • owner changed from gogo to wymsy
  • component changed from Xinha Core to Plugin_GetHtml

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.

Changed 10 months ago by ray

  • status changed from new to closed
  • resolution set to fixed

rev [946]

Changed 10 months ago by ray

no, fixed in rev [947]

Changed 10 months ago by ray

but now: rev [949]

Note: See TracTickets for help on using tickets.