| | 1 | = 0.5 |
| | 2 | === 31rd January, 2006 |
| | 3 | |
| | 4 | * support for a[text()="Click Me!"] and h3[text()*="space"] and the like. |
| | 5 | * Hpricot.buffer_size accessor for increasing Hpricot's buffer if you're encountering huge ASP.NET viewstate attribs. |
| | 6 | * some support for colons in tag names (not full namespace support yet.) |
| | 7 | * Element.to_original_html will attempt to preserve the original HTML while merging your changes. |
| | 8 | * Element.to_plain_text converts an element's contents to a simple text format. |
| | 9 | * Element.inner_text removes all tags and returns text nodes concatenated into a single string. |
| | 10 | * no @raw_string variable kept for comments, text, and cdata -- as it's redundant. |
| | 11 | * xpath-style indices (//p/a[1]) but keep in mind that they aren't zero-based. |
| | 12 | * node_position is the index among all sibling nodes, while position is the position among children of identical type. |
| | 13 | * comment() and text() search criteria, like: //p/text(), which selects all text inside paragraph tags. |
| | 14 | * every element has css_path and xpath methods which return respective absolute paths. |
| | 15 | * more flexibility all around: in parsing attributes, tags, comments and cdata. |
| | 16 | |