Added :node_name method to all node objects such as
xmlua.Element and xmlua.Attribute.
Added xml.Document:canonicalize
xmlua/notation.lua isn't included.
xmlua.XMLStreamSAXParser.parse: Narrowed scope.
[GH-30][Reported by Aleksey Konovkin]xmlua.Element.namespaces(): Added.xmlua.Element.root(): Added.xmlua.Searchable.search():
xmlua.libxml2:
xmlua.libxml2.xmlUnlinkNode():
xmlua.Element:add_child():
xmlua.libxml2:
xmlua.serializable:
escape option to to_html() and to_xml().xmlua.xml:
parse_options options to XML.parse().xmlua.Node:
set_content() does not handle c-strings.
xmlNodeSetContentLen() instead of xmlNodeSetContent().
'\0'.xmlua.Searchable.xpath_search(): Added.
Searchable:search.xmlua.HTMLSAXParser:
xmlua.DocumentFragment: Fixed a bug that accidentally returned element node.
xmlua.libxml2:
Fix a bug that unintentionally set to jit.off in all modules.
Fix a bug that replaced nodes are not released.
xmlua.Document: Added below functions.
create_cdata_section()
create_comment()
create_processing_instruction()
create_namespace()
xmlua.Element: Added below functions.
add_child()
add_previous_sibling()
add_sibling()
add_next_sibling()
find_namespace()
xmlua.Node.replace_node() Added.
xmlua.Text.concat() Added.
xmlua.Text.merge() Added.
xmlua.Document: Fix bug that add_entity returns xmlEntity of libxml2.
xmlua.Document: Fix bug that add_dtd_entity returns xmlEntity of libxml2.
rockspec: Fix a bug that installation failed.xmlua.XMLSAXParser: Added supported events:
start_document
end_document
start_element
end_element
element declaration
attribute declaration
unparsed entity declaration
notation declaration
entity declaration
internal subset
external subset
comment
text
reference
ignorable_whitespace
cdata_block
processing_instruction
warning
error
xmlua.HTMLSAXParser: Added supported events:
start_document
end_document
start_element
end_element
comment
ignorable_whitespace
cdata_block
processing_instruction
error
rockspec: Fix a bug that installation failed.xmlua.HTML.build(): Added.xmlua.Element:insert_element(): Fixed a bug that
insert_element(1) with empty element raises an error.xmlua.NodeSet:insert(): Added.
xmlua.NodeSet:remove(): Added.
xmlua.NodeSet:merge(): Added.
xmlua.NodeSet:unlink(): Added.
xmlua.Element:append_element(): Added.
xmlua.Element:insert_element(): Added.
xmlua.Element:unlink(): Added.
xmlua.Element:set_attribute(): Added.
xmlua.Element:remove_attribute(): Added.
xmlua.XML.build(): Added.
xmlua.libxml2.VERSION: Added.
Experimental: xmlua.HTMLSAXParser: Added supported events:
start_document
end_document
comment
ignorable_whitespace
cdata_block
processing_instruction
Experimental: xmlua.HTMLSAXParser: Removed needless namespace information from the following events.
start_element
end_element
Experimental: xmlua.XMLSAXParser: Added.
xmlua.Node:path(): Added.
xmlua.NodeSet:paths(): Added.
xmlua.Searchable.css_select(): Added.
xmlua.HTMLSAXParser: Added.Fixed a memory leak for parsing XML.
Fixed a memory leak for parsed document.
xmlua.HTML.parse(): Changed to parse HTML rough.
xmlua.HTML.parse(): Added url option that specifies base URL.
xmlua.HTML.parse(): Added encoding option that specifies HTML encoding.
xmlua.Node:content(): Added.
xmlua.NodeSet:content(): Added.
xmlua.Element:text(): Added.
xmlua.NodeSet:text(): Added.
Added //text() XPath support.
xmlua.HTML.parse(): Added prefer_meta_charset option.
xmlua.Document:errors: Added.
The first release!!!