| 1 | = 0.6 |
|---|
| 2 | === 15th June, 2007 |
|---|
| 3 | * Hpricot for JRuby -- nice work Ola Bini! |
|---|
| 4 | * Inline Markaby for Hpricot documents. |
|---|
| 5 | * XML tags and attributes are no longer downcased like HTML is. |
|---|
| 6 | * new syntax for grabbing everything between two elements using a Range in the search method: (doc/("font".."font/br")) or in nodes_at like so: (doc/"font").nodes_at("*".."br"). Only works with either a pair of siblings or a set of a parent and a sibling. |
|---|
| 7 | * Ignore self-closing endings on tags (such as form) which are containers. Treat them like open parent tags. Reported by Jonathan Nichols on the hpricot list. |
|---|
| 8 | * Escaping of attributes, yanked from Jim Weirich and Sam Ruby's work in Builder. |
|---|
| 9 | * Element#raw_attributes gives unescaped data. Element#attributes gives escaped. |
|---|
| 10 | * Added: Elements#attr, Elements#remove_attr, Elements#remove_class. |
|---|
| 11 | * Added: Traverse#preceding, Traverse#following, Traverse#previous, Traverse#next. |
|---|
| 12 | |
|---|
| 13 | = 0.5 |
|---|
| 14 | === 31rd January, 2007 |
|---|
| 15 | |
|---|
| 16 | * support for a[text()="Click Me!"] and h3[text()*="space"] and the like. |
|---|
| 17 | * Hpricot.buffer_size accessor for increasing Hpricot's buffer if you're encountering huge ASP.NET viewstate attribs. |
|---|
| 18 | * some support for colons in tag names (not full namespace support yet.) |
|---|
| 19 | * Element.to_original_html will attempt to preserve the original HTML while merging your changes. |
|---|
| 20 | * Element.to_plain_text converts an element's contents to a simple text format. |
|---|
| 21 | * Element.inner_text removes all tags and returns text nodes concatenated into a single string. |
|---|
| 22 | * no @raw_string variable kept for comments, text, and cdata -- as it's redundant. |
|---|
| 23 | * xpath-style indices (//p/a[1]) but keep in mind that they aren't zero-based. |
|---|
| 24 | * node_position is the index among all sibling nodes, while position is the position among children of identical type. |
|---|
| 25 | * comment() and text() search criteria, like: //p/text(), which selects all text inside paragraph tags. |
|---|
| 26 | * every element has css_path and xpath methods which return respective absolute paths. |
|---|
| 27 | * more flexibility all around: in parsing attributes, tags, comments and cdata. |
|---|
| 28 | |
|---|
| 29 | = 0.4 |
|---|
| 30 | === 11th August, 2006 |
|---|
| 31 | |
|---|
| 32 | * The :fixup_tags option will try to sort out the hierarchy so elements end up with the right parents. |
|---|
| 33 | * Elements such as *script* and *style* (identified as having CDATA contents) receive a single text node as their children now. Previously, Hpricot was parsing out tags found in scripts. |
|---|
| 34 | * Better scanning of partially quoted attributes (found by Brent Beardsly on http://uswebgen.com/) |
|---|
| 35 | * Better scanning of unquoted attributes -- thanks to Aaron Patterson for the test cases! |
|---|
| 36 | * Some tags were being output in the empty tag style, although browsers hated that. FIXED! |
|---|
| 37 | * Added Elements#at for finding single elements. |
|---|
| 38 | * Added Elem::Trav#[] and Elem::Trav#[]= for reading and writing attributes. |
|---|
| 39 | |
|---|
| 40 | = 0.3 |
|---|
| 41 | === 7th July, 2006 |
|---|
| 42 | |
|---|
| 43 | * Fixed negative string size error on empty tokens. (news.bbc.co.uk) |
|---|
| 44 | * Allow the parser to accept just text nodes. (such as: <tt>Hpricot.parse('TEXT')</tt>) |
|---|
| 45 | * from JQuery to Hpricot::Elements: remove, empty, append, prepend, before, after, wrap, set, |
|---|
| 46 | html(...), to_html, to_s. |
|---|
| 47 | * on containers: to_html, replace_child, insert_before, insert_after, innerHTML=. |
|---|
| 48 | * Hpricot(...) is an alias for parse. |
|---|
| 49 | * open up all properties to setters, let people do as they may. |
|---|
| 50 | * use to_html for the full html of a node or set of elements. |
|---|
| 51 | * doctypes were messed. |
|---|
| 52 | |
|---|
| 53 | = 0.2 |
|---|
| 54 | === 4th July, 2006 |
|---|
| 55 | |
|---|
| 56 | * Rewrote the HTree parser to be simpler, more adequate for the common man. Will add encoding back in later. |
|---|
| 57 | |
|---|
| 58 | = 0.1 |
|---|
| 59 | === 3rd July, 2006 |
|---|
| 60 | |
|---|
| 61 | * For whatever reason, wrote this HTML parser in C. |
|---|
| 62 | I guess Ragel is addictive and I want to improve HTree. |
|---|