-
-
Notifications
You must be signed in to change notification settings - Fork 905
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
[bug] Modification of children is not reflected in fragment #2916
Labels
topic/memory
Segfaults, memory leaks, valgrind testing, etc.
Comments
vcc-LG
added
the
state/needs-triage
Inbox for non-installation-related bug reports or help requests
label
Jun 28, 2023
@vcc-LG Thanks for the thorough bug report. I'll take a look! |
flavorjones
added
topic/memory
Segfaults, memory leaks, valgrind testing, etc.
and removed
state/needs-triage
Inbox for non-installation-related bug reports or help requests
labels
Jul 3, 2023
Oh wow thank you so much for getting a fix out so quickly! |
flavorjones
added a commit
that referenced
this issue
Jul 5, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please describe the bug
If I take a
Nokogiri::HTML4::DocumentFragment
with a child which has tags (e.g.<div>a</div>
) and which has a neighbour which is text only, e.g.:then on modification of the
inner_html
of the first child (<div>a</div>
) theobject_id
of its neighbour (b
) will change, and therefore if I update thecontent
of the neighbour it will not be reflected in theDocumentFragment
. For example:should output
"<div>A</div>B"
but instead outputs"<div>A</div>b"
Help us reproduce what you're seeing
Which outputs:
Environment
The text was updated successfully, but these errors were encountered: