All Versions
Latest Version
Avg Release Cycle
78 days
Latest Release
1458 days ago

Changelog History
Page 2

  • v2.11 Changes

    September 07, 2017

    ๐Ÿ‘€ Various Ruby warnings have been resolved by Loic Nageleisen. See pull request for more information.

  • v2.10 Changes

    April 18, 2017

    ๐Ÿ›  Fix Element#attribute for HTML documents when using Symbol arguments

    You can now pass a Symbol to Oga::XML::Element#attribute for both XML and HTML ๐Ÿ‘€ documents, previously this only worked for XML documents. See PR #174 for more information.

  • v2.9 Changes

    February 10, 2017

    Closing tags for HTML void elements

    Certain HTML elements such as <img> and <link> (called "void elements" in Oga) are now closed using a > tag instead of />. In other words, instead of outputting <img src="..." /> Oga now outputs <img src="...">.

    Doctypes are now Nodes

    ๐Ÿ“œ Each Doctype now inherits from Oga::XML::Node. This makes it possible to parse documents where a doctype is located in a child node. However, in these cases Oga will not populate Oga::XML::Document#doctype as this can not be done in an efficient way.

  • v2.8 Changes

    January 04, 2017

    ๐Ÿ—„ Ruby 2.4 deprecates Fixnum in favour of Integer, producing warnings whenever ๐Ÿ›  Fixnum is used. Oga 2.8 contains a fix contributed by Po Shan Cheah to remove ๐Ÿ‘€ these deprecation warnings. See commit c75ca96d229a50b369e16057622255a674f2cabc for more information.

  • v2.7 Changes

    September 27, 2016

    Closing Elements When Generating XML

    When generating XML Oga now properly closes elements with siblings but without ๐Ÿ‘€ children. See commit e0e0687dc29427c854c9fa6d3c19cee1c04f92c7 for more information.

    ๐Ÿ†• Newlines After Doctypes

    When generating XML a newline would be inserted after a doctype. If another ๐Ÿ†• newline would follow in a text node this would lead to multiple newlines being ๐Ÿ‘€ present. Oga now ensures there is only 1 newline following a doctype. See commit e0e0687dc29427c854c9fa6d3c19cee1c04f92c7 for more information.

    ๐Ÿ›  Processing Instructions With Namespace Prefixes

    ๐Ÿ›  The XML lexer now supports processing instructions containing namespace prefixes ๐Ÿ‘€ such as <?xml:foo ?>. See commit 01fa1513f4bd6f194bf6d1ca17e510003fa23312 for more information.

    XML Declarations Are Now Processing Instructions

    The class Oga::XML::XmlDeclaration now extends Oga::XML::ProcessingInstruction. This allows documents to contain XML declarations in nested elements, instead of only allowing this at the root of ๐Ÿ‘€ the document. See commit 116b9b0ceb6feab4daa0bb417302590fba948bef for more information.

    Aliases For Getting & Setting Attributes

    The methods Oga::XML::Element#get and Oga::XML::Element#set are now aliased ๐Ÿ‘€ as #[] and #[]= respectively. See d40baf0c724a3874f43100fbefa775cfb8dcacda for more information and thanks to Scott Wheeler for contributing the patch.

  • v2.6 Changes

    September 10, 2016

    ๐Ÿš€ This release fixes a bug in the XML generation code that would cause it to get ๐Ÿ‘€ stuck in the generation loop. See issue and commit 38284278d542640c3d8300ef15890af93b6df779 for more information.

  • v2.5 Changes

    September 06, 2016

    ๐Ÿš€ This release fixes a bug in the XML parser that would prevent it from parsing doctypes that contain a mixture of public/system IDs, a name, and inline rules.

    ๐Ÿ‘€ See issue and commit 68f1f9f660b90a43d22c8514e8cbf53f7ca0097d for more information.

  • v2.4 Changes

    September 04, 2016

    Serialising Large Documents

    Oga can now serialise large documents without causing the call stack to overflow thanks to the new Oga::XML::Generator class. This class can generate XML without using a stack at all.

    ๐Ÿ‘€ See issue and commit dd138981f68a606eff5d5a01e990f04398087dc4 for more information.

    Faster retrieval of previous/next nodes

    The methods Oga::XML::Node#previous and Oga::XML::Node#next now simply return the value of an instance variable instead of calculating the ๐ŸŽ previous/next node on the fly. This greatly improves the performance of these methods at the cost of a bit of extra work when adding or removing nodes from a NodeSet.

    ๐Ÿ‘€ See commit 5a58b1413767fed4518e8a67c4eb432a31592660 for more information.

  • v2.3 Changes

    July 13, 2016

    Thanks to various changes provided by Erik Michaels-Ober Oga can now be used to ๐Ÿ‘€ parse XML input from a pipe (as returned by for example IO.pipe). See the following pull request for more information:

  • v2.2 Changes

    February 23, 2016

    ๐Ÿ‘ XPath support for nested pipe operators

    ๐Ÿ‘ Nested pipe operators such as a | b | c are now supported as XPath ๐Ÿ‘€ expressions. See issue and commit 6d3c5c2ce93cbce337338bdc1a4971da72517038 for more information.