-
-
Notifications
You must be signed in to change notification settings - Fork 380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After applying HAP1.11.57, InnerText cannot be obtained correctly. #531
Comments
FYI, it would be easier for anyone attempting to troubleshoot if you would put the HTML content as text inside a code block using triple back-ticks. By doing so, the HTML code will appear as (copy&paste-able) text like this:
|
Hello @104kazu , Could you provide the So we will make sure that we work on the right issue. If you could create a Fiddle with it, that will be even better: https://dotnetfiddle.net/25Vjsn Best Regards, Jon Sponsorship Performance Libraries Runtime Evaluation |
After reviewing your image, you currently have a Indeed starting with the v1.11.57, we automatically close the However I believe we did indeed the wrong fix on this version. Even if it doesn't make sense, a We will look at it. Best Regards, Jon |
Hello @104kazu , Just to let you know, it will take more time to fix this issue (well, more of the fix in v1.11.57). The primary reason is that we only explicitly end a tag depending on the direct parent. However, to make it work, we need to check parents recursively. The fix by itself is not hard (already coded); however due to HAP having only a few unit tests, it makes it more dangerous, so we need to take our time to make sure that's the direction we want to take for the Best Regards, Jon |
Hello, @jon |
As a start, this is the first time I've every had to revert a version of this package so I really can't complain. The result is that innerText is now totally different than the previous version. May I suggest, this is a setting that defaults to what it did before so no code changes required. As another option, you could at least count open and close tags and assume if net zero that you can assume things are correct. |
Hi, @Dagger55555 |
Hello @104kazu , @Dagger55555 , The v1.11.58 has been released (which reverted the change made in v1.11.57) The v1.11.57 is really a mistake on my part. We try to be very careful in changes we made for not break anything but unfortunately, I misread something that I thought was invalid but was instead valid Let me know if everything works on this new version. Best Regards, Jon |
Hello, @jon |
I wrote the following program
TestHtml.txt contains the following.
I ran the program and checked the InnerText variable, but it only has newlines and spaces, and I am not getting 96,000 yen.
If you retrieve from the parent node, as in the variable InnerText2, you will get 96,000 yen.
Also, if you revert the HAP to 1.11.56, you will get 96,000 yen.
Thank you in advance for your investigation.
The text was updated successfully, but these errors were encountered: