Comments (6)
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.
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.
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.
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.
Thank you very much.
Best Regards
from html-agility-pack.
Hello @JonathanMagnan
This works wonderfully, thank you very much.
Best Regards.
from html-agility-pack.
Related Issues (20)
- Inconsistent comment rendering HOT 6
- update System.Net.Http to 4.3.4 HOT 2
- The html rendering result is different from the html output result HOT 5
- The html rendering result is different from the html output result when tbody is added inside unclosed th HOT 3
- After applying HAP1.11.57, InnerText cannot be obtained correctly. HOT 11
- (2) The html rendering result is different from the html output result HOT 4
- Can't find a node with a long id HOT 1
- it happened again after a Rolled back to version HtmlAgilityPack 1.11.50, then again to HtmlAgilityPack 1.11.57 and it worked. HOT 2
- Can't find a node used HtmlAgilityPack 1.11.57 HOT 2
- How to make the DocumentNode.SelectNodes(XPath) for both text and img content together in the correct sequence? HOT 3
- ??? HOT 2
- The html rendering result is different from the html output result when we have two unclosed tbody tags HOT 2
- When we have a closing tag before the current open tag is closed we have different results between HAP and Chrome rendering
- The formatting is a bit interesting HOT 1
- Set PackageLicenseExpression on nuget HOT 5
- page source code HOT 19
- [HtmlAgilityPack version 1.11.60] request: add HtmlWeb Load() exception HOT 5
- bug: SelectSingleNode not returning anything HOT 7
- Modify a `#text` node name causes a `StackOverflowException` HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
open tags leave one
open even with option setted
from html-agility-pack.