1 parent
739f885078
commit
746c8052dd
3 files changed
+16
-7
No files matched your search
@@ -212,11 +212,8 @@ module Oga
|
||||
# @param [String] text
|
||||
#
|
||||
def inner_text=(text)
|
||||
children.each do |child|
|
||||
child.remove if child.is_a?(Text)
|
||||
end
|
||||
|
||||
children << XML::Text.new(:text => text)
|
||||
text_node = XML::Text.new(:text => text)
|
||||
@children = NodeSet.new([text_node])
|
||||
end
|
||||
|
||||
##
|
||||
|
||||
Reference in new issue
Block a user