Skip to content

Obsolete html tag attributes cause issues #297

@rtonsing

Description

@rtonsing

Some submission have an old-style tag referring to xhtml:

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  1. This can cause errors with the <audio> tag:
ERROR(RSC-005): /htdocs/ebookmaker/cache/20251106024440/10001-images-epub3.epub/10001/5157771731363747136_catskittens_bad-111.htm.xhtml(51,58): Error while parsing file: text not allowed here; expected the element end-tag

Changing to <html lang="en"> fixes the issue.

  1. Note that the error refers to ".htm.xhtml", I wonder if ebookmaker is being tricked by the tag to not generate HTML5.

I suggest ignoring the attributes in an HTML5 file.

Example here: https://www.dropbox.com/scl/fi/ph61ataqrn89mumev6ei5/catskittens_epubtest.zip?rlkey=ppwrdv64etsyllnomklnxa70l&st=h0nucti8&dl=0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions