| @@ -2,8 +2,13 @@ | ||
| 2 | 2 | All notable changes to this project will be documented in this file. |
| 3 | 3 | |
| 4 | 4 | The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). |
| 5 | 5 | |
| 6 | + | |
| 7 | +## [Unreleased] | |
| 8 | +### Changed | |
| 9 | +- Comments that start with `>` or `->` are now considered malformed in accordance with [section 12.1.6](https://html.spec.whatwg.org/multipage/syntax.html#comments) of the [HTML specification](https://html.spec.whatwg.org/multipage/). Comments may still contain the strings `<!--` or `--!>` and they may still end with `<!-` contrary to the specification. | |
| 10 | + | |
| 6 | 11 | ## [2.0-RC2] - 2019-11-09 |
| 7 | 12 | |
| 8 | 13 | **Important**: This is a release **candidate**, which means some features might not yet be stable or emit unexpected behavior. Please don't hesitate to report broken or unstable features. |
| 9 | 14 | |
| @@ -81,9 +86,9 @@ | ||
| 81 | 86 | - Now only exists if needed (defaults to `HDOM_QUOTE_DOUBLE`). |
| 82 | 87 | - `simple_html_dom_node::text()` now supports all block and inline level elements. |
| 83 | 88 | - `simple_html_dom_node::text()` now skips empty block elements. |
| 84 | 89 | - `simple_html_dom_node::text()` now properly handles ` ` characters. |
| 85 | -- `simple_html_dom_node::removeChild()` now removes all types of childs. | |
| 90 | +- `simple_html_dom_node::removeChild()` now removes all types of children. | |
| 86 | 91 | - Increased `MAX_FILE_SIZE` from 0.6 MB (600000 Bytes) to 2.5 MiB (2621440 Bytes) |
| 87 | 92 | - `HDOM_INFO_INNER` (innertext) is now stored as part of the owning element. |
| 88 | 93 | - Moved and renamed `simple_html_dom` to `HtmlDocument`. |
| 89 | 94 | - Moved and renamed `simple_html_dom_node` to `HtmlNode`. |
| @@ -158,9 +163,9 @@ | ||
| 158 | 163 | - Added support for Child Combinator (`>`) |
| 159 | 164 | - Added support for Next Sibling Combinator (`+`) |
| 160 | 165 | - Added support for Subsequent Sibling Combinator (`~`) |
| 161 | 166 | - Added support for multiclass selectors (`.class.class.class`) |
| 162 | -- Added support for multiattribute selectors (`[attr1][attr2][attribute3]`) | |
| 167 | +- Added support for multi-attribute selectors (`[attr1][attr2][attribute3]`) | |
| 163 | 168 | - Added support for attribute selectors |
| 164 | 169 | - Added support for pipe selectors (`|=`) |
| 165 | 170 | - Added support for tilde selectors (`~=`) |
| 166 | 171 | - Added support for case sensitivity selectors (`i` and `s`) |
| @@ -208,9 +213,9 @@ | ||
| 208 | 213 | - Added 'source' |
| 209 | 214 | - Added 'track' |
| 210 | 215 | - Added 'wbr' |
| 211 | 216 | - Updated list of `simple_html_dom::$optional_closing_tags` |
| 212 | - - Removed "nobr" (obsolete) | |
| 217 | + - Removed `nobr` (obsolete) | |
| 213 | 218 | - Added 'th' as closable element to 'td' |
| 214 | 219 | - Added 'td' as closable element to 'th' |
| 215 | 220 | - Added 'optgroup' with 'optgroup' and 'option' as closable elements |
| 216 | 221 | - Added 'optgroup' as closable element to 'option' |
| @@ -232,9 +237,9 @@ | ||
| 232 | 237 | - Fixed compatibility issues with PHP 7.3 |
| 233 | 238 | - Fixed typo (#147) |
| 234 | 239 | - Fixed handling of incorrectly escaped text (#160) |
| 235 | 240 | - Restore functionality of `$maxLen` in `file_get_html()` |
| 236 | -- Fixed load_file breaks if an error ocurred in another script | |
| 241 | +- Fixed load_file breaks if an error occurred in another script | |
| 237 | 242 | |
| 238 | 243 | ## [1.6] - 2014-05-28 |
| 239 | 244 | ### Added |
| 240 | 245 | - Added some ability to insert and create nodes |
| @@ -280,9 +285,9 @@ | ||
| 280 | 285 | ### Added |
| 281 | 286 | - New method "getAllAttributes" of "simple_html_dom_node" |
| 282 | 287 | - Supports full javascript string in selector: `$e->find("a[onclick=alert('hello')]")` |
| 283 | 288 | ### Changed |
| 284 | -- Changed selector "*=" to case-insentive | |
| 289 | +- Changed selector "*=" to case-insensitive | |
| 285 | 290 | ### Fixed |
| 286 | 291 | - Fixed the bug of selector in some critical conditions |
| 287 | 292 | - Fixed the bug of striping php tags |
| 288 | 293 | - Fixed the bug of remove_noise() |
| @@ -313,9 +318,9 @@ | ||
| 313 | 318 | ### Fixed |
| 314 | 319 | - Fixed the bug of $dom->clear() |
| 315 | 320 | - Fixed the bug of text nodes' innertext |
| 316 | 321 | - Fixed the bug of comment nodes' innertext |
| 317 | -- Fixed the bug of decendent selector with optional tags | |
| 322 | +- Fixed the bug of descendant selector with optional tags | |
| 318 | 323 | |
| 319 | 324 | ## [0.97] - 2008-05-09 |
| 320 | 325 | ### Added |
| 321 | 326 | - New node type "comment" (eg. $dom->find('comment')) |
| @@ -359,6 +364,6 @@ | ||
| 359 | 364 | ### Added |
| 360 | 365 | - Add FAQ section in manual |
| 361 | 366 | ### Fixed |
| 362 | 367 | - Fixed infinity loop while the source content is BAD HTML |
| 363 | -- Fixed the bug of adding new attributes to self closing tags | |
| 368 | +- Fixed the bug of adding new attributes to self-closing tags | |
| 364 | 369 | - Fixed the bug of customize parser without $dom->remove_noise() |