diff --git a/CHANGELOG.md b/CHANGELOG.md index 71bf2f0..a093e13 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,28 @@ This document contains details of the various releases and their release dates. Dates are in the format `yyyy-mm-dd`. +## 1.1.0 - Unreleased + +### Support for replacing of DOM nodes + +The newly added method `Oga::XML::Node#replace` can be used to replace an +existing node with another node or with a String (which will result in it being +replaced with a Text node). For example: + + p = Oga::XML::Element.new(:name => 'p') + div = Oga::XML::Element.new(:name => 'div', :children => [p]) + + puts div.to_xml # => "