[jira] [Created] (XERCESC-2124) Typo in XMLUni::fgDOMDisallowDoctype XMLCh array

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[jira] [Created] (XERCESC-2124) Typo in XMLUni::fgDOMDisallowDoctype XMLCh array

JIRA xerces-c-dev@xml.apache.org
David Schloss created XERCESC-2124:

             Summary: Typo in XMLUni::fgDOMDisallowDoctype XMLCh array
                 Key: XERCESC-2124
                 URL: https://issues.apache.org/jira/browse/XERCESC-2124
             Project: Xerces-C++
          Issue Type: Bug
          Components: Miscellaneous, Non-Validating Parser
    Affects Versions: 3.1.4, 3.2.0, 3.0.1
         Environment: CentOS 6.9
            Reporter: David Schloss
            Priority: Minor
         Attachments: fix.patch

While debugging an issue in my code, I happened to notice a small typo in the XMLUni::fgDOMDisallowDoctype XMLCh array.

In the other XMLCh arrays defined in the XMLUni.cpp file, they are all equivalent to their spelling on the https://xerces.apache.org/xerces-c/program-dom-3.html page.

In the case of XMLUni::fgDOMDisallowDoctype, the characters spell out "disallow-doctye" instead of "disallow-doctype". Thus it appears the array in all the versions mentions above are missing the XMLCh 'p' in the word "doctype".

This is a simple enough fix, and I marked this item Minor because the only way someone would notices is if they decided to establish their own XMLCh array to set the parser parameter instead of using the arrays defined in XMLUni.cpp

I've attached a patch file details the fix of the typo for the 3.2.0 version of Xerces-C

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]