CsQuery
CsQuery copied to clipboard
Invalid DocType when using HTML4Strict
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
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).
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.
Ty.
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.