Uname: Linux webm016.cluster127.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
Software: Apache
PHP version: 7.4.33 [ PHP INFO ] PHP os: Linux
Server Ip: 54.36.31.145
Your Ip: 216.73.216.182
User: homesquasz (91404) | Group: users (100)
Safe Mode: OFF
Disable Function:
_dyuweyrj4,_dyuweyrj4r,dl

name : issues.js
var XmlDocument = require('../').XmlDocument
var t = require('tap')

t.test('parsing comments outside XML scope [#27]', function (t) {
  
  var xmlString = '<hello>world</hello>\n<!--Thank you for your business!-->';
  var parsed = new XmlDocument(xmlString);
  
  // verify that the trailing comment is ignored (no sensible place to put it)
  t.equal(parsed.toString(), '<hello>world</hello>');
  
  t.end();
})

t.test('validating escaping of &lt; &gt; [#29]', function (t) {
  
  var xmlString = '<root><command>&lt; &gt;</command></root>';
  var parsed = new XmlDocument(xmlString);
  var result = parsed.toString({compressed:true})
  t.equal(result, xmlString);
  t.end();
})
© 2026 GrazzMean