Giter Site home page Giter Site logo

Comments (6)

JonathanMagnan avatar JonathanMagnan commented on June 21, 2024 1

Hello @Glorfindel88 ,

There is currently no option, but we will look to see if we can add one. Everything looks to be already coded for this, so it should be very easy.

Best Regards,

Jon

from html-agility-pack.

JonathanMagnan avatar JonathanMagnan commented on June 21, 2024 1

Hello @Glorfindel88 ,

The v1.11.59 has been released.

In this version, we added the option DisableImplicitEnd that you can now set to true to have the expected behavior.

Let me know if everything is now working as expected on your side.

Best Regards,

Jon

from html-agility-pack.

JonathanMagnan avatar JonathanMagnan commented on June 21, 2024

Hello @Glorfindel88 ,

That is an expected behavior.

A p tag can be closed implicitly when followed by another p tag: https://www.w3.org/MarkUp/HTMLPlus/htmlplus_11.html#:~:text=The%20P%20element%20acts%20as%20a%20container%20for%20the%20text,tag%20as%20a%20paragraph%20separator.

See this line in the example on the page:

<P>The first piece of text<P>The second piece

Let me know if that answer correctly to your question.

Best Regards,

Jon

from html-agility-pack.

Glorfindel88 avatar Glorfindel88 commented on June 21, 2024

Hello @JonathanMagnan ,
thank you for your answer.
I know the tags can work that way and that works as far as the browser is concerned.
But i did not think the behavior was expected, given the options. And a previous version of HAP we used, can't remember which one, did close the double tag. And we need to close all tags for other operations we then do on the html.
Is there any option setting that allows to close everything, or only OptionOutputAsXml?

Thanx,

Best Regards.

from html-agility-pack.

Glorfindel88 avatar Glorfindel88 commented on June 21, 2024

Thank you very much.

Best Regards

from html-agility-pack.

Glorfindel88 avatar Glorfindel88 commented on June 21, 2024

Hello @JonathanMagnan
This works wonderfully, thank you very much.

Best Regards.

from html-agility-pack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.