Opened 11 years ago
Closed 11 years ago
#11199 closed bug (invalid)
document.write in ready()
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.7.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Hi,
A write in ready() leaves Firefox (9.0.1) in a wait state (the current tab display a wait cursor).
This occurs both in Windows and Linux with the latest JQuery.
Under Linux (Fedora 16), the string does not appear in the browser.
Here is the test:
<html>
<body>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.js"></script> <script type="text/javascript">
$(document).ready (
function() {
document.write("test");
}
);
</script> <div>
</body>
</html>
Cheers,
Marc
Change History (3)
comment:1 Changed 11 years ago by
Owner: | set to [email protected]… |
---|---|
Status: | new → pending |
comment:3 Changed 11 years ago by
Resolution: | → invalid |
---|---|
Status: | pending → closed |
Please read https://developer.mozilla.org/en/document.write
Note: See
TracTickets for help on using
tickets.
Thanks for taking the time to contribute to the jQuery project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket!
Additionally, be sure to test against the "jQuery (edge)" version to ensure the issue still exists. To get you started, use this boilerplate: http://jsfiddle.net/FrKyN/ Open the link and click to "Fork" (in the top menu) to begin.