Changeset 154877 in webkit for trunk/Source/WebCore/xml/XMLSerializer.cpp
- Timestamp:
- Aug 30, 2013, 7:30:12 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/xml/XMLSerializer.cpp
r152685 r154877 28 28 namespace WebCore { 29 29 30 String XMLSerializer::serializeToString(Node* node, ExceptionCode& ec)30 String XMLSerializer::serializeToString(Node* node, ExceptionCode&) 31 31 { 32 32 if (!node) 33 33 return String(); 34 35 if (!node->document()) {36 // Due to the fact that DocumentType nodes are created by the DOMImplementation37 // and not the Document, it is possible for it to not have a Document associated38 // 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 45 34 return createMarkup(node, IncludeNode, 0, DoNotResolveURLs, 0, XMLFragmentSerialization); 46 35 }
Note:
See TracChangeset
for help on using the changeset viewer.