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

Ojan Vafai ojan at chromium.org
Mon Oct 29 18:34:24 PDT 2012


On Mon, Oct 29, 2012 at 6:17 PM, Boris Zbarsky <bzbarsky at 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.



More information about the whatwg mailing list