Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

document.write cause document to clear #66

Open
congdo opened this issue Aug 10, 2012 · 2 comments
Open

document.write cause document to clear #66

congdo opened this issue Aug 10, 2012 · 2 comments

Comments

@congdo
Copy link

congdo commented Aug 10, 2012

Hi Guys,

Document.write in document load up should write the content inline, instead of replacing the body

Example
MYCONTENT
< script >
document.write('WOOT');
< /script >

Expected Output
MyCONTENTWOOT

Bug Output
WOOT

@theuiguru
Copy link

Maybe write it like:
document.write("MyCONTENTWOOT");

Although, it is preferred not to use document.write(); nor document.writeln(); Another option would probably stick the content within the body.

@aredridel
Copy link
Owner

Ah, good catch. I'll take a peek! I suspect it's a bug in the interaction with jsdom.

@ghost ghost assigned aredridel May 19, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants