<!-- Please make sure the checklist boxes are all checked before submitting the PR. The checklist is intended as a quick reference, for complete details please see our Contributor Guidelines:
http://cordova.apache.org/contribute/contribute_guidelines.html Thanks! --> ### Platforms affected common ### What does this PR do? This PR is very simple. Fix xml-helpers graftXML function to create parent element with 'closed tag'. (i.e. `'<' + tag_name + '>'` is changed to `'<' + tag_name+ '/>'`) Because the current cordova-common uses [email protected] which depends on [email protected], and the [email protected] checks 'closed tag' strictly and does not accept 'unclosed tag'. The old version of cordova-common uses [email protected] which depends on [email protected], and the [email protected] checks 'closed tag' loosely. ### What testing has been done on this change? We tests this by cordova-ios tests in which pluginHandler.spec.js Test 028 encounters this issue. Further I added new tests TEST 20-1 in xml-helpers.spec.js in this PR. ### Checklist - [ ] [Reported an issue](http://cordova.apache.org/contribute/issues.html) in the JIRA database - [ ] Commit message follows the format: "CB-3232: (android) Fix bug with resolving file paths", where CB-xxxx is the JIRA ID & "android" is the platform affected. - [ ] Added automated test coverage as appropriate for this change. [ Full content available at: https://github.com/apache/cordova-common/pull/43 ] This message was relayed via gitbox.apache.org for [email protected]
