Bug Tracker

Opened 12 years ago

Closed 12 years ago

#9677 closed bug (invalid)

Bug with replaceWith and document.write

Reported by: [email protected] Owned by:
Priority: low Milestone: 1.next
Component: manipulation Version: 1.6.1
Keywords: Cc:
Blocked by: Blocking:


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 (1)

comment:1 Changed 12 years ago by timmywil

Component: unfiledmanipulation
Priority: undecidedlow
Resolution: invalid
Status: newclosed

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

Note: See TracTickets for help on using tickets.