Bug Tracker

Modify

Ticket #8520 (closed feature: wontfix)

Opened 2 years ago

Last modified 2 years ago

.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

comment:1 Changed 2 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to wontfix

This doesn't seem that useful.

comment:2 Changed 2 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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.