[webkit-dev] Save Page - Ideas

Maciej Stachowiak mjs at apple.com
Wed Nov 5 07:04:56 PST 2008

On Oct 30, 2008, at 9:47 AM, Darin Fisher wrote:

> We have code to support this feature in the Chromium code base.  You  
> can find it here:
> http://src.chromium.org/viewvc/chrome/trunk/src/webkit/glue/dom_serializer.h?view=markup
> http://src.chromium.org/viewvc/chrome/trunk/src/webkit/glue/dom_serializer.cc?view=markup
> It is something we would love to one day see as part of WebKit.

WebKit already includes code to serialize the DOM, in WebCore/editing/ 
markup.cpp. This is used by innerHTML, XMLSerializer, the clipboard  
code, Web archives, and other things. I think a better approach to a  
"save as Web page, complete" style feature would be to use the  
existing DOM serialization code (fixing bugs, if necessary), instead  
of adding completely separate DOM serialization code. The only tricky  
part is fixing up URL references in the markup to point to the right  
place for saved subresources.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20081105/543ad491/attachment.html>

More information about the webkit-dev mailing list