Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError for unknown encoding (like windows-1250) #32

Open
Eccenux opened this issue May 26, 2020 · 0 comments
Open

TypeError for unknown encoding (like windows-1250) #32

Eccenux opened this issue May 26, 2020 · 0 comments

Comments

@Eccenux
Copy link

Eccenux commented May 26, 2020

  1. Go to http://syssgx.github.io/xml.js/.
  2. Paste xml and xsd with unknow encoding (examples below).
  3. Push the Validate button. -> fails with TypeError.

Micro XML file:

<?xml version="1.0" encoding="windows-1250"?>
<czytelnicy xsi:noNamespaceSchemaLocation="ImpCz.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
</czytelnicy>

Micro XSD file:

<?xml version="1.0" encoding="windows-1250"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xs:element name="czytelnicy"></xs:element>
</xs:schema>

Current behaviour:

Uncaught TypeError: Gt is not a function
    at xn (xmllint.js:2)
    at Up (xmllint.js:2)
    at ns (xmllint.js:2)
    at pi (xmllint.js:2)
    at cj (xmllint.js:2)
    at Wi (xmllint.js:2)
    at eE (xmllint.js:2)
    at ig (xmllint.js:2)
    at nd (xmllint.js:2)
    at Object.Hga (xmllint.js:2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant