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

[Issue]End-Tag Always Omitted

description

Hi,

I am not sure, if this was already raised. ( If it is, I'm very sorry ).

I'm having an issue with the HTML Agility Pack, every time I try to save the document, it always omits the end-tag whenever the said element does not have an inner value.

Example:
Before: <meta name="metaName" content="metaContent"/>
After Saving: <meta name=metaName" content="metaContent">

I believe this is a huge problem not only for design, but also on checking HTML standards.

If this can be answered, I will be very grateful.

Thank you very much.

Respectfully

comments

johnelliotsigua wrote Dec 22, 2014 at 3:29 AM

Oh, sorry.

I found out a work-around for this issue, though I think it should be already set by default.
( Set OptionWriteEmptyNodes to true )

Anyways, sorry for the disturbance.

Thanks!