Skip to content

Releases: czwinzscher/myhtmlpp

v2.3.0

20 Dec 20:59
Compare
Choose a tag to compare

Tree

  • add find_by_attr_key which returns all nodes with a specific key
  • find_by_class now checks if the value is in the class list
  • add overloads to find_by_attr that accept a matcher function

v2.2.0

02 Dec 11:38
Compare
Choose a tag to compare

Tree

  • add operator bool which returns good()
  • fix potential bug in select, where a nullptr check was made too late

Node

  • add operator bool which returns good()

Attribute

  • add operator bool which returns good()

Misc

  • add Modest submodule
  • use Github Actions

v2.1.0

25 Nov 21:36
Compare
Choose a tag to compare

Tree

  • add scope(scope_node)
  • fix Iterator operator++

v2.0.0

14 Nov 21:33
Compare
Choose a tag to compare

Tree

  • add select(selector)
  • add filter(predicate)
  • add find_by_tag(tag_id)
  • add find_by_tag(tag_string)
  • add find_by_id(id)
  • add find_by_class(class)
  • add find_by_attr(key, value)
  • remove create_node

Node

  • at(key) returns optional with value of attribute
  • operator[] return value of attribute, does not do any error checking
  • is_text_node() returns true if tag is one one TEXT_, COMMENT_, STYLE
  • add inner_text()
  • rename tag_string() to tag_name()
  • remove set_namespace
  • remove add_child
  • remove insert_before
  • remove insert_after
  • remove remove
  • remove add_attribute
  • remove remove_attribute_by_key

Attribute

  • add operator<<, gives out key="value"
  • remove set_namespace

v1.1.0

10 Nov 13:43
Compare
Choose a tag to compare

parser

  • all thrown exceptions have a status_code() method to return the mystatus_t value

Tree

  • add find_all(tag_string) and find_all(tag_id) to filter nodes by tag

Node

  • add has_attribute(key)

v1.0.0

08 Nov 21:40
Compare
Choose a tag to compare

parser

  • remove parse_with_options and parse_fragment_with_options
  • add default parameters to parse and parse_fragment for options
  • set default queue_size to 4096
  • use custom exceptions to indicate errors

Tree

  • mark copy constructor and copy assignment operator as delete
  • invalidate Tree after moving (set pointers to nullptr)
  • remove pretty_html
  • add operator== for iterators

Node

  • remove pretty_html_deep
  • invalidate Node after moving (set pointer to nullptr)
  • add operator== for iterators
  • rename ns to get_namespace
  • rename set_ns to set_namespace
  • add siblings method
  • add has_attributes method
  • add is_text_node method

Attribute

  • invalidate Attribute after moving (set pointer to nullptr)
  • rename ns to get_namespace
  • rename set_ns to set_namespace

other

  • use an enum class wrapper for all tags, namespaces and options

v0.2.1

05 Nov 21:17
Compare
Choose a tag to compare
v0.2.1 Pre-release
Pre-release
  • fix the MYHTMLPP_LIBRARIES variable in CMakeLists.txt
  • add more infos to readme

v0.2.0

04 Nov 21:57
Compare
Choose a tag to compare
v0.2.0 Pre-release
Pre-release
  • add documentation, which can be generated with make doc
  • add good method for Tree
  • add good method for Attribute
  • add structured bindings [key, value] support for Attribute
  • The second parameter of Tree::create_node defaults to MyHTML_NAMESPACE_HTML

v0.1.0

03 Nov 23:44
Compare
Choose a tag to compare
v0.1.0 Pre-release
Pre-release

first Release