Re: [whatwg] Proposal for window.DocumentType.prototype.toString

On Mon, Oct 29, 2012 at 6:17 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:

> On 10/29/12 8:58 PM, Johan Sundström wrote:
>
>> Serializing a complete HTML document DOM to a string is surprisingly
>> hard in javascript.
>>
>
> I thought there were plans to put innerHTML on Document.  Did that go
> nowhere?


There were plans to put in on DocumentFragment. But IIRC no other browser
vendors voiced an interest and Hixie was opposed because he thought it
would encourage people to do more string-based DOM building. The WebKit
patch for this floundered as a result. I still think it's a good idea.

Received on Tuesday, 30 October 2012 01:35:11 UTC