-
-
Notifications
You must be signed in to change notification settings - Fork 903
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
XML::DocumentFragment#dup should return an instance of the same class #1846
Comments
flavorjones
changed the title
DocumentFragment#dup does not preserve decorators
XML::DocumentFragment#dup should return an instance of the same class
Dec 18, 2018
This bug was introduced in f2f3a3b first appearing in v1.9.0. |
Cutting a new release v1.9.1 with this fix. Should be in the next 30 minutes. |
v1.9.1 is out. |
This was referenced Mar 14, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In v1.9.0,
DocumentFragment#dup
started always returning anXML::DocumentFragment
which not only breaksHTML::DocumentFragment#dup
but also any other subclasses ofXML::DocumentFragment
, such as the Loofah gem'sLoofah::HTML::DocumentFragment
(see flavorjones/loofah#161).Working on this now.
The text was updated successfully, but these errors were encountered: