- 10 Şub, 2011 11 kayıt (commit)
-
-
Michael Stahl yazdı
-
Michael Stahl yazdı
-
Michael Stahl yazdı
-
Michael Stahl yazdı
-
Michael Stahl yazdı
-
Michael Stahl yazdı
-
Michael Stahl yazdı
also fix CElement::removeAttributeNode* to save the prefix.
-
Michael Stahl yazdı
CAttr::getSpecified() should return true. CAttr::getValue() and CElement::setAttributeNode() could crash if no children. CAttributesMap::*NS() methods ignored namespaceURI parameter. CDATASection::getNodeValue() forwarded to wrong base class. CDocument needs to override cloneNode(). CDocument::importNode(), CDocumentBuilder::parseURI() deref null argument. CElement::getAttributes() should return an empty map. CElementList could be created for null element. CNode::insertBefore() did not set parent/children pointers. CNode::setPrefix() should only work on element/attribute. CXPathAPI had inverted check for null argument (xmlfix3 regression).
-
Michael Stahl yazdı
-
Michael Stahl yazdı
-
Michael Stahl yazdı
new method CNode::IsChildTypeAllowed(NodeType). use it in appendChild(), insertBefore(), replaceChild().
-
- 19 Ock, 2011 29 kayıt (commit)
-
-
Michael Stahl yazdı
add namespace data member to CAttr. CAttr overrides getPrefix(), setPrefix(), getNamespaceURI(). CDocument::createAttributeNS() uses this new CAttr member instead of creating a dummy carrier element. CElement::setAttributeNode_Impl_Lock() and CNode::appendChild() do not free the no longer existing dummy carrier element. CNode::insertBefore() calls appendChild() for attributes instead of ignoring namespace. CNode::appendChild() does not invalidate attributes, because they are copied.
-
Michael Stahl yazdı
-
Michael Stahl yazdı
-
Michael Stahl yazdı
-
Michael Stahl yazdı
-
Michael Stahl yazdı
add some additional argument checks. return value of xmlGetProp was leaked. invalidate CAttr instances after calling xmlUnsetProp.
-
Michael Stahl yazdı
-
Michael Stahl yazdı
add some additional argument checks. fix mess in CNode::setPrefix().
-
Michael Stahl yazdı
-
Michael Stahl yazdı
-
Michael Stahl yazdı
also initialize member variables in constructors.
-
Michael Stahl yazdı
-
Michael Stahl yazdı
use CDocument mutex in results, and during evaluation. new CXPathAPI member mutex. also, fix lcl_collectNamespaces in case parent nodes declare same prefix.
-
Michael Stahl yazdı
-
Michael Stahl yazdı
use it to lock all CNode and derived classes' UNO methods.
-
Michael Stahl yazdı
instead now the CDocument contains a node map member.
-
Michael Stahl yazdı
(and in the next patch, an actual CDocument, not just 0 :)
-
Michael Stahl yazdı
-
Michael Stahl yazdı
replace Reference<XNode> with Reference<CDocument>. also remove all using namespace css::lang, due to conflicts.
-
Michael Stahl yazdı
-
Michael Stahl yazdı
-
Michael Stahl yazdı
-
Michael Stahl yazdı
member pointer does not keep document alive. also, if an attribute is unlinked, it is leaked.
-
Michael Stahl yazdı
-
Michael Stahl yazdı
the string buffer allocated in ctor missed null terminator. the xmlChar* members of ElementList are leaked. the CElement* pointer does not keep the document alive. CDocument::getElementsByTagNameNS calls CElementList ctor with wrong args.
-
Michael Stahl yazdı
capture listener was not called for first node in vector. (assuming that it was intended to be called)
-
Michael Stahl yazdı
instead CDocument now has a CEventDispatcher member.
-
Michael Stahl yazdı
-
Michael Stahl yazdı
-