Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CQ.Create dosent include comment text, only the start <!-- and end --> comment tags. #59

Closed
privjacinta opened this issue Nov 18, 2012 · 6 comments

Comments

@privjacinta
Copy link

We are using 1.3.1 from NuGet.

var doc = CQ.Create(content, HtmlParsingMode.Document, HtmlParsingOptions.None);

The causes the comment tags to be included, but the not the actual comments. Our use case requires that we include the comments, as we are using this for inline Styling for emails.

Have confirmed the when IgnoreComments is set, not even the comment tags are included.

@jamietre
Copy link
Owner

Will look into this today or tomorrow - thanks for the bug report. This appears straightforward.

@privjacinta
Copy link
Author

A small test that reproduces the issue

var intext = "";
var doc = CsQuery.CQ.Create(intext, HtmlParsingMode.Document, HtmlParsingOptions.None);
var outtext = doc.Render(DomRenderingOptions.None);``

outtext =

Seems to be somewhere in the HTMLParserSharp code....

@jamietre
Copy link
Owner

You mean it is altering whitespace outside of comments?

@privjacinta
Copy link
Author

Sorry GIT, because the intext and outtext in my example is in HTML github is formatting it rather than displaying :(

jamietre added a commit that referenced this issue Nov 28, 2012
@jamietre
Copy link
Owner

Fixed in latest push. Nuget is not updated yet, but you can use the builds from ehre. Sorry about the time to get this corrected - busy time!

@privjacinta
Copy link
Author

Confirmed Working.. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants