Modify ↓
Ticket #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: | ||
| Blocking: | Blocked by: |
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
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

This doesn't seem that useful.