Skip to content

Invalid DocType when using HTML4Strict #102

Open

Description

@benjamingr

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

Activity

  1. jamietre commented on May 28, 2013

    @jamietre
    Owner

    I think this is the same as #100 - should be an easy fix. I'm going to push the next version this week sometime and I'll make sure this gets in there. I've been holding out on a release because I was hoping to find some time to dig into the XML problems you'd been having before I did that, but that will probably have to wait for a couple more weeks (have a web site release @ work looming so not much free time).

  2. added a commit that references this issue on Jun 4, 2013
  3. jamietre commented on Jun 4, 2013

    @jamietre
    Owner

    On nuget as 1.3.5-beta5 now. Sorry taking so long to get a new release out - been slammed at work and don't want to do it until i can have time to write more tests for the new code.

  4. benjamingr commented on Jun 8, 2013

    @benjamingr
    Author

    Ty.

  5. jamietre commented on Jun 8, 2013

    @jamietre
    Owner

    Btw there are still a couple holes in this, it treats Transitonal and Frameset the same. Not that big a deal but I am going to make sure the set of known doctypes is comprehensive before the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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