Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #11333 (closed defect: duplicate)

Opened 6 months ago

Last modified 5 months ago

IE-specific unescapeHTML fails when dealing with escaped HTML tags

Reported by: drankye Assigned to: sam
Priority: normal Milestone: 2.x
Component: Prototype Version: edge
Severity: normal Keywords:
Cc:

Description

Here's a failure case:

      var str = '"&lt;" means "<" in HTML';
      assertEqual(str, str.escapeHTML().unescapeHTML());

Attachments

unescape.diff (1.0 kB) - added by drankye on 03/12/08 10:42:32.
Here's the fix proposed

Change History

03/12/08 10:42:32 changed by drankye

  • attachment unescape.diff added.

Here's the fix proposed

03/19/08 17:34:41 changed by kangax

I can't reproduce your failing case. Could you please try a trunk version of prototype?

03/19/08 17:45:01 changed by kangax

Nevermind, tried with another browser :/

03/20/08 15:32:21 changed by jdalton

this is a duplication ticket of http://dev.rubyonrails.org/ticket/8851 Except ticket 8851 also addresses a memory leak in IE assoc with this method.

03/20/08 15:32:50 changed by jdalton

  • status changed from new to closed.
  • resolution set to duplicate.