-
Notifications
You must be signed in to change notification settings - Fork 40
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
embed destroys document nodes #25
Comments
Updated test cases, to zero-in on the specific problem. Also, confirmed that this is occurring on both CRuby and JRuby. Stepping through this with a debugger, I've found that this issue occurs when |
...also meant to mention specifically what's happening on this line. Nokogiri is making a few direct modifications to
This can be seen in a debugger session on CRuby:
And afterwards:
|
When
ssml_doc.embed(original_doc)
is used to embed one document within another, the original document is left modified unexpectedly. This is exhibited in the following tests: sfgeorge/ruby_speech@539d2cc...bug;destructive-embedHere's an example using ruby_speech 2.3.1...
The text was updated successfully, but these errors were encountered: