#8520 closed feature (wontfix)
.html could work for document too
Reported by: | nilton | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | 1.next |
Component: | unfiled | Version: | 1.5.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
It would be nice if:
$(document).html(something)
was equivalent to:
document.open(); document.write(something); document.close();
This could also be used for replacing the contents of an iframe. Like so:
$('iframe.foo').contents().html(something);
Change History (2)
comment:1 Changed 12 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
comment:2 Changed 12 years ago by
It seems like the right thing for the "html()" method to do when applied to a document. It's clearly useful if you're changing the contents of an iframe. Can you please elaborate a bit more on the reasonings behind this decision?
Thanks, -- Nilton
Note: See
TracTickets for help on using
tickets.
This doesn't seem that useful.