镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

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

Open

Description

@Eccenux
  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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions