Skip to content
This repository was archived by the owner on May 6, 2025. It is now read-only.
This repository was archived by the owner on May 6, 2025. It is now read-only.

WebView with "application/xhtml+xml" content type fails to render HTML (i.e. malformed XML / XHTML) #24

@danielweck

Description

@danielweck

...whereas readium-js-viewer succeeds (undesirable discrepancy).

Suggestion: use "text/html" content type in HTTP header response when XHTML is not well formed. Even though this might break namespace-aware CSS selectors (e.g. epub:type attribute matching), it is an acceptable fallback (rather than the WebView just showing a large red error message).

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