Changeset 18085 in webkit for trunk/WebCore/xml/XMLSerializer.cpp
- Timestamp:
- Dec 8, 2006, 1:12:48 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/xml/XMLSerializer.cpp
r16245 r18085 2 2 * This file is part of the KDE libraries 3 3 * Copyright (C) 2003, 2006 Apple Computer, Inc. 4 * Copyright (C) 2006 Samuel Weinig ([email protected]) 4 5 * 5 6 * This library is free software; you can redistribute it and/or … … 22 23 23 24 #include "Document.h" 25 #include "ExceptionCode.h" 24 26 #include "markup.h" 25 27 26 28 namespace WebCore { 27 29 28 String XMLSerializer::serializeToString(Node* node )30 String XMLSerializer::serializeToString(Node* node, ExceptionCode& ec) 29 31 { 30 32 if (!node) 31 33 return String(); 32 34 35 if (!node->document()) { 36 // Due to the fact that DocumentType nodes are created by the DOMImplementation 37 // and not the Document, it is possible for it to not have a Document associated 38 // with it. It should be the only type of node where this is possible. 39 ASSERT(node->nodeType() == Node::DOCUMENT_TYPE_NODE); 40 41 ec = INVALID_ACCESS_ERR; 42 return String(); 43 } 44 33 45 return createMarkup(node); 34 46 } 35 47 36 } 48 } // namespace WebCore
Note:
See TracChangeset
for help on using the changeset viewer.