[RFC] Deprecate Nokogiri::HTML4::ElementDescription
#3311
flavorjones
announced in
RFCs
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Proposed
Deprecate the class
Nokogiri::HTML4::ElementDescription
in a 1.x release, and remove it in a 2.x release.Reasoning
The two HTML4 parsing libraries that are used by Nokogiri -- nekohtml and libxml2 -- have always had different metadata about HTML elements.1 And this metadata has even changed over time. 2.
In an upcoming release of libxml2, much of the metadata reported by that library will be removed.3
All of this leads me to the conclusions that:
Short-term actions
I'm going to add deprecation warnings to the release of Nokogiri that packages libxml2 2.14.0 (not yet released as of this writing) for the particular facets that are already deprecated upstream:
implied_start_tag?
deprecated?
(how meta)sub_elements
default_sub_element
optional_attributes
deprecated_attributes
(how meta)required_attributes
Long-term actions
I'd like to mark the entire class and all its methods as deprecated in a pre-2.0 release, and remove it entirely in a 2.0 release.
Request
If you are a user of this API, I would really like to talk to you!!
The above is the plan unless I learn something from a real user of this API, so ping me if you care about these methods.
Footnotes
For example, 583f6f0 ↩
For example, 277db2e ↩
https://gitlab.gnome.org/GNOME/libxml2/-/issues/758#note_2232549 ↩
Beta Was this translation helpful? Give feedback.
All reactions