This project has moved and is read-only. For the latest updates, please go here.
1
Vote

Not case correct, how to pull case correct

description

Hello
When i go to view the node all the aspx controls are in lowercase. is there a way to get it in propercase?

Example:
var doc = new HtmlAgilityPack.HtmlDocument();
doc.OptionOutputOriginalCase = true;
doc.LoadHtml("<html><asp:Content ID='Content1' ContentPlaceHolderID='head' runat='Server'/></html>");
var html = doc.DocumentNode.InnerHtml;

comments

Radioman21 wrote Aug 19, 2016 at 10:05 PM

HTML is case insensitive for tag names.

https://www.w3.org/TR/html-markup/documents.html#case-insensitivity

Not sure what you are trying to do generating server side controls, but it is almost certainly not what this library was designed for.