Skip to content

Invalid DocType when using HTML4Strict #102

Open
@benjamingr

Description

Hi Jamie,

CsQuery seems to produce this when outputting HTML4 strict <!DOCTYPE html "-//w3c//dtd html 4.01//en" "http://www.w3.org/tr/html4/strict.dtd">

I read with var dom = CQ.Create(text, HtmlParsingMode.Document, HtmlParsingOptions.Default, DocType.HTML4Strict);

I expected <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

Thanks,
Benjamin

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