Bug Tracker

Modify

Ticket #9677 (closed bug: invalid)

Opened 23 months ago

Last modified 23 months ago

Bug with replaceWith and document.write

Reported by: abonec@… Owned by:
Priority: low Milestone: 1.next
Component: manipulation Version: 1.6.1
Keywords: Cc:
Blocking: Blocked by:

Description

This piece of code replace all document. $('#jq-compression').replaceWith("<script>document.write('fsdfsdf')</script>")

But should only add 'fsdfsdfsdf' at the end of document.

Change History

comment:1 Changed 23 months ago by timmywil

  • Priority changed from undecided to low
  • Resolution set to invalid
  • Status changed from new to closed
  • Component changed from unfiled to manipulation

This is correct behavior as script tags created with jQuery will be evaluated. It is also recommended that document.write not be used.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.