Skip to main content

Bug Tracker

Side navigation

#9677 closed bug (invalid)

Opened June 27, 2011 02:34PM UTC

Closed June 27, 2011 02:55PM UTC

Bug with replaceWith and document.write

Reported by: abonec@gmail.com Owned by:
Priority: low Milestone: 1.next
Component: manipulation Version: 1.6.1
Keywords: Cc:
Blocked by: Blocking:
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.

Attachments (0)
Change History (1)

Changed June 27, 2011 02:55PM UTC by timmywil comment:1

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.