Skip to content

Self-closing title not reported as an error when validating EPUB 3.2 #1093

@JayPanoz

Description

@JayPanoz

Given

<?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/>
</head>
<body>
</body>
</html>

validator.nu (XHTML preset) reports an error:

Error: Element title must not be empty.
From line 6, column 1; to line 6, column 8
">↩<head>↩<title/>↩</hea

But epubcheck 4.2.2 doesn’t.

Reduced test case:
selfclosingtitle.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: mediumTo be processed and published in one of the upcoming releasesspec: EPUB 3.xImpacting the support of EPUB 3.x specificationsstatus: has PRThe issue is being processed in a pull requesttype: false-negativeThis issue is about invalid content being incorrectly accepted

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions