We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bb69f5e + e460eef commit a3d438bCopy full SHA for a3d438b
2 files changed
CHANGELOG.md
@@ -1,5 +1,9 @@
1
# Changelog
2
3
+### Bug fixes
4
+
5
+- Passing a Nokogiri::XML::Node as the second parameter to Node.new is deprecated [#121](https://github.com/ruby-docx/docx/pull/121)
6
7
## v0.6.2
8
9
### Bug fixes
lib/docx/elements/element.rb
@@ -91,7 +91,7 @@ def html_tag(name, options = {})
91
module ClassMethods
92
def create_with(element)
93
# Need to somehow get the xml document accessible here by default, but this is alright in the interim
94
- self.new(Nokogiri::XML::Node.new("w:#{self.tag}", element.node))
+ self.new(Nokogiri::XML::Node.new("w:#{self.tag}", element.node.document))
95
end
96
97
def create_within(element)
0 commit comments