Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-1223

Change importNode in DOMDocument to a const DOMNode*

    XMLWordPrintableJSON

    Details

    • Type: Wish
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.5.0
    • Fix Version/s: 2.6.0
    • Component/s: DOM
    • Labels:
      None
    • Environment:
      All implementations.

      Description

      The DOMDocument::importNode method takes a DOMNode*.

      To improve consistency it would be nice to have the pointer passed to the import be a const DOMNode*.

      The method currently looks like:

      DOMNode* DOMDocument::importNode (DOMNode *importedNode, bool deep);

      but seeing as the importedNode shouldn't change with the call, the method could be changed to:

      DOMNode* DOMDocument::importNode (const DOMNode *importedNode, bool deep);

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              nkomick Nicholas Komick
            • Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: