Skip to main content

Bug Tracker

Side navigation

#8520 closed feature (wontfix)

Opened March 14, 2011 08:00AM UTC

Closed March 30, 2011 06:32PM UTC

Last modified March 30, 2011 06:38PM UTC

.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);
Attachments (0)
Change History (2)

Changed March 30, 2011 06:32PM UTC by dmethvin comment:1

resolution: → wontfix
status: newclosed

This doesn't seem that useful.

Changed March 30, 2011 06:38PM UTC by nilton comment:2

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