Sigil-Ebook / Sigil

Sigil is a multi-platform EPUB ebook editor
GNU General Public License v3.0
5.96k stars 578 forks source link

[Bug]: #688

Closed cmcknight closed 2 years ago

cmcknight commented 2 years ago

Bug Description

Sigil throwing parse error on '@' symbol.

Platform (OS)

macOS

OS Version / Specifics

12.4. (M1 iMac)

What version of Sigil are you using?

1.9.10

Any backtraces or crash reports

This page contains the following errors:
error on line 10 at column 50: error parsing attribute name
Below is a rendering of the page up to the first error.

Minimal Test Case:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops">
<head>
  <title></title>
</head>

<body>
  0: (SWANK::DEBUG-IN-EMACS #<UNDEFINED-FUNCTION @ #x716b082a>)
</body>
</html>
kevinhendricks commented 2 years ago

As far as I can tell, that is not a bug. Your xhtml is just not valid (what you have above is not valid xhtml).

Please post the original xhtml page you are actually trying to load. Zip it up and attach it to this issue.

cmcknight commented 2 years ago

Here you go.

sigil-issue-688.zip

I am confused though. What makes in invalid XHTML?

kevinhendricks commented 2 years ago

Closing thisa. See my response on your mobileread thread. You can not have bare "<" and ">" in text xhtml. They must be xml encoded.

This is not a bug.