-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Description
The parser accepts incorrect XML declarations as valid, without raising an error. This is despite enabling the validator option "-v".
Input
<?xml version="1.0" var ?> <a/>There is an unassigned attribute var, which I expected to raise an error. The input is saved in a file named example.xml.
Code
./src/cli/cli.js -v example.xmlOutput
{ '?xml': { '@_version': 1 }, a: '' }
My question is: Why the XML validator doesn't throw an error?
Please note that xmllint rejects the input example as invalid.
Kristinita
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working