html-agility-pack icon indicating copy to clipboard operation
html-agility-pack copied to clipboard

The behavior of CreateTextNode is nonstandard

Open gliljas opened this issue 6 years ago • 1 comments

In both XML(Document) and in the Javascript HTML DOM, CreateTextNode(value) creates a node where the value is encoded as text.

document.body.appendChild(document.createTextNode("Hello <b>World</b>"));

will append

Hello &lt;b&gt;World&lt;/b&gt;

to the body.

Not so in HAP.

I would say that HAP's behavior is wrong. Fixing it would be quite a breaking change, but for 2.x I think it should be corrected.

gliljas avatar May 06 '19 08:05 gliljas

Hello @gliljas ,

Thank you for the pull and the information.

We will look at it if that's too much a breaking change. If that's the case, as you said, we will move it to when we will be ready to make the v2.x.

Best Regards,

Jonathan


Performance Libraries context.BulkInsert(list, options => options.BatchSize = 1000); Entity Framework ExtensionsEntity Framework ClassicBulk OperationsDapper Plus

Runtime Evaluation Eval.Execute("x + y", new {x = 1, y = 2}); // return 3 C# Eval FunctionSQL Eval Function

JonathanMagnan avatar May 06 '19 14:05 JonathanMagnan