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

Change to importNode to copy prefixes breaks when xmlns="" is present

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.0
    • 3.1.1, 3.2.0
    • DOM
    • None
    • Affects all platforms

    Description

      A change to importNode was made to copy over prefixes of nodes with non-empty namespaces, using setPrefix. This causes setPrefix to throw a DOMException if called on the default namespace declaration node (xmlns="") because it checks for that explicitly.

      The revised fix should check for that case in one of the two spots, probably in setPrefix by ignoring the issue when the prefix supplied is NULL.

      Mailing list thread here:
      http://marc.info/?t=126620794700001&r=1&w=2

      Attachments

        Activity

          People

            bsk Boris Kolpackov
            scantor Scott Cantor
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: