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
Unify HtmlSerializers #399
Comments
I made the tree out of the one because the handling of all the differences in one class was too complicated. |
Here's my use case: |
Ok, let me think about this, maybe there is some chance to work with a class hierarchy and some abstract methods. |
(Excluding |
Did you worked on this issue? Can I have a go? |
Yes you can, I can merge this at the start of the next week
Am 5. November 2021 23:02:54 MEZ schrieb cdalexndr ***@***.***>:
Did you worked on this issue? Can I have a go?
--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
#399 (comment)
--
Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.
|
Why are there two browser-like serialization?
Isn't the selenium representation sufficient? |
HtmlSerializer is gone |
HtmlSerializerNormalizedText implements HtmlUnits way of serialization (more or less backward compatible to the old asText() method. I like to have this to have our own way to serialize. HtmlSerializerVisibleText is there to try to implement the support needed to be in sync with the browsers (and all the strange things they do). |
But, isn't the browser serialization, the real world usage, so the only correct way of doing things? Why is the custom htmlunit impl needed? |
Currently there are multiple public HtmlSerializer-type classes:
HtmlSerializerInnerOuterText
,HtmlSerializerNormalizedText
,HtmlSerializerVisibleText
, the deprecatedHtmlSerializer
.They share some logic and it's confusing to have multiple classes.
They should be merged into a single class, with options.
The text was updated successfully, but these errors were encountered: