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

setPrefix(NULL) doesn't set fPrefix to NULL

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Fixed
    • 2.3.0
    • 2.4.0
    • DOM
    • None
    • Operating System: All
      Platform: All
    • 21692

    Description

      In DOMElementNSImpl::setPrefix(const XMLCh *prefix), the following code: if (prefix == 0 || *prefix == 0)

      { fName = fLocalName; return; }

      seems like it should also set fPrefix to NULL. The following sequence: curnode->setPrefix(NULL); pref = curnode->getPrefix(); does not necessarily result in pref == NULL. Thanks!

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            gadde@biac.duke.edu Syam Gadde
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment