Bug Tracker

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#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 8 years ago by dmethvin

Resolution: wontfix
Status: newclosed

This doesn't seem that useful.

comment:2 Changed 8 years ago by nilton

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.