CHANGELOG 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. [PHP Simple HTML Dom v4.7.x]
  2. 1: add "findMultiOrFalse()" + "findOneOrFalse()"
  3. 2: fix -> usage of e.g. "textContent"
  4. 3: fix -> usage of special js template tags in the dom
  5. 4: merge improvements from "ivopetkov/html5-dom-document-php -> length attribute
  6. 5: merge improvements from "ivopetkov/html5-dom-document-php -> classList support
  7. 6: add "nextNonWhitespaceSibling()"
  8. 7: fix -> usage of "outerhtml"
  9. 8: add support for "symfony/css-selector": ~5.0
  10. 9: fix -> "save()" -> will use html() insteadof of innerHtml() now
  11. 13: fix -> "val()" -> will now support hidden fields
  12. 14: fix -> keep html comments, also at the beginning of the html input
  13. 15: add "HtmlDomParser->overwriteTemplateLogicSyntaxInSpecialScriptTags()"
  14. 16: add support for "text/x-handlebars-template"
  15. 17: fix -> problem with auto-completion in e.g. PhpStorm
  16. 18: small optimizations + fix phpstan reported errors
  17. 19: add support for different special script-tags
  18. 20: fix -> invalid html (move html that is after "</html>" before "</html>")
  19. 21: fix -> internal invalid self-closing tags (e.g. <wbr>)
  20. 22: fix -> invalid html (remove content before "<!doctype.*>")
  21. 23: fix -> invalid html (remove content before "<!doctype.*>") + try to repair broken html
  22. 24: fix -> normalize the html after replacing the node
  23. 25: add support for PHP 8
  24. 26: fix -> fix "setAttribute()" -> for e.g. urls
  25. 27: fix -> "XmlDomParser" -> add option for "auto-remove-xpath-namespace"
  26. 28: fix -> allow CSS and xPath syntax for XmlDomParser
  27. 29: use github actions
  28. [PHP Simple HTML Dom v4.6.x]
  29. 1: add an XmlDomParser Class + simple tests
  30. 2: add support for text/x-custom-template type
  31. 3: fix -> check result of "html5FallbackForScriptTags()"
  32. [PHP Simple HTML Dom v4.5.x]
  33. 1: fix -> return types
  34. 2: add abstract class and interface for "Dom Elements" (SimpleHtmlDom*)
  35. 3: and abstract class and interface for "Dom Nodes" (SimpleHtmlDomNode*)
  36. 4: fix -> errors reported by phpstan (level 7)
  37. 5: fix -> error with Google AMP (<html ⚡>) & Php DomDocument
  38. [PHP Simple HTML Dom v4.4.x]
  39. 1: add "findMulti()" method for "SimpleDomParser"
  40. 2: fix -> phpdoc improvements via phpstan
  41. [PHP Simple HTML Dom v4.3.x]
  42. 1: add "isRemoved()" method for "SimpleHtmlDom"
  43. 2: fix -> do not remove newlines from the output
  44. 3: fix -> keep HTML closing tags in <script> tags
  45. [PHP Simple HTML Dom v4.2.x]
  46. 1: add "val()" method for form elements
  47. 2: add simple access to DOMElement via "SimpleHtmlDom"
  48. 3: fix -> for special script tags with type="text/html"
  49. [PHP Simple HTML Dom v4.1.x]
  50. 1: "HtmlDomParser" -> fix clone method for "document"
  51. 2: add "findOne($selector)" === "find($selector, 0)"
  52. 3: update "symfony/css-selector" (optional)
  53. 4: use LIBXML options for every html-loading task
  54. 5: fix -> for vuejs (attributes beginning with "@")
  55. 6: fix -> plaintext output
  56. 7: fix -> document.write issue from DomDocument
  57. 8: fix -> remove (auto-added) head element
  58. [PHP Simple HTML Dom v4.0.x]
  59. 1: drop support for PHP < 7.0
  60. 2: use "strict_types"
  61. 3: "Portable UTF-8" is now optional
  62. [PHP Simple HTML Dom v3.1.x]
  63. 1: optimize performance (use the "UTF8"-Class only if needed)
  64. 2: fix html-handling of "meta"-tags [tags in the <head>-tag]
  65. [PHP Simple HTML Dom v3.0.x]
  66. 1: use output from "SimpleHtmlDomNode" as array instead of string
  67. [PHP Simple HTML Dom v2.0.x]
  68. 1: Complete Re-Write (based on https://github.com/dimabdc/PHP-Fast-Simple-HTML-DOM-Parser)
  69. 2: bug-fixing / performance improvements
  70. [PHP Simple HTML Dom v1.7.x]
  71. 1: removed old parameter: maxLen / lowercase / stripRN / defaultBRText / defaultSpanText
  72. 2: add good default settings
  73. 3: removed charset-parsing (use UTF-8)
  74. [PHP Simple HTML Dom v1.6.x]
  75. 1: fixed code-style
  76. 2: removed debugging
  77. 3: use Composer and PSR-0
  78. 4: added UTF-8 Support (need some testing)
  79. [PHP Simple HTML Dom version 1.5 released.]
  80. 1: Memory leak fixed!
  81. 2: Added support for detecting the source html character set. This is used to convert characters when plaintext is requested.
  82. 3: Other little fixes and features, too numerous to categorize.
  83. 4: add ability to search the "noise" array
  84. [PHP Simple HTML DOM Parser v1.11 is released]
  85. 1. Supports xpath generated from Firebug.
  86. 2. New method "dump" of "simple_html_dom_node".
  87. 3. New attribute "xmltext" of "simple_html_dom_node".
  88. 4. remove preg_quote on selector match function: [attribute*=value];
  89. 5. Element "Comment" will treat as children.
  90. 6. Fixed the problem with <pre>.
  91. 7. Fixed bug #2207477 (does not load some pages properly).
  92. 8. Fixed bug #2315853 (Error with character after < sign).
  93. [PHP Simple HTML DOM Parser v1.10 is released]
  94. 1. Negative indexes supports of "find" method, thanks for Vadim Voituk.
  95. 2. Constructor with automatically load contents either text or file/url, thanks for Antcs.
  96. 3. Fully supports wildcard in selectors.
  97. 4. Fixed bug of confusing by the < symbol inside the text.
  98. 5. Fixed bug of dash in selectors.
  99. 6. Fixed bug of <nobr>.
  100. 7. Fixed bug #2155883 (Nested List Parses Incorrectly).
  101. 8. Fixed bug #2155113 (error with unclosed html tags).
  102. [PHP Simple HTML DOM Parser v1.00 is released]
  103. 1. New method "getAllAttributes" of "simple_html_dom_node".
  104. 2. Fix the bug of selector in some critical conditions.
  105. 3. Fix the bug of striping php tags.
  106. 4. Fix the bug of remove_noise().
  107. 5. Fix the bug of noise in attributes.
  108. 6. Supports full javascript string in selector: $e->find("a[onclick=alert('hello')]").
  109. 7. Change selector "*=" to case-insentive.
  110. [PHP Simple HTML DOM Parser v0.99 is released]
  111. 1. Performance turning (boost 10%).
  112. 2. Memory requirement reduce 25%.
  113. 3. Change function name from "file_get_dom()" to "file_get_html()".
  114. 4. Change function name from "str_get_dom()" to "str_get_html()".
  115. 5. Fixed bug #2011286 (Error with unclosed html tags).
  116. 6. Fixed bug #2012551 (Error parsing divs).
  117. 7. Fixed bug #2020924 (Error for missed tag.).
  118. 8. Fixed bug (problem with <body> tag's innertext).
  119. [PHP Simple HTML DOM Parser v0.98 is released]
  120. 1. Performance turning (boost 20%).
  121. 2. Supports "multiple class" selector feature: <div class="a b c"></div>.
  122. 3. New "callback function" feature.
  123. 4. New "multiple selectors" feature: $dom->find('p,a,b');
  124. 5. New examples.
  125. 6. Supports extract contents from HTML features: $dom->plaintext;
  126. 7. Fix the bug of $dom->clear().
  127. 8. Fix the bug of text nodes' innertext.
  128. 9. Fix the bug of comment nodes' innertext.
  129. 10. Fix the bug of decendent selector with optional tags.
  130. 11. Change simple_html_dom_node method name from "text()" to "makeup()".
  131. [PHP Simple HTML DOM Parser v0.97 is released]
  132. 1. Important!! file and class name changed (html_dom_parser->simple_html_dom)!
  133. 2. Important!! ($dom->save_file) will not support anymore.
  134. 3. New node type "comment" (eg. $dom->find('comment')).
  135. 4. Add self-closing tags: 'base', 'spacer'.
  136. 5. Fix the bug of outertext (th).
  137. 6. Fix the bug of regular expression escaping chars ($dom->find).
  138. 7. Fix the bug while line-breaker and "\t" in tags.
  139. 8. Remove example "example_customize_parser.php".
  140. 9. New example "simple_html_dom_utility.php".
  141. [PHP Simple HTML DOM Parser v0.96 is released]
  142. 1. (Request #1936000) New DOM operations(first_child, last_child, next_sibling, previous_sibling).
  143. 2. New method to remove attribute.
  144. 3. Add the solution while server behind proxy in FAQ (Thanks to Yousuke Shaggy).
  145. 4. Add traverse section in manual.
  146. 5. Now file_get_dom supports full file_get_contents parameters.
  147. 6. Fix the bug of self-closing tags in the end of file.
  148. 7. Fix the bug of blanks in the end of tag.
  149. 8. Add Reference section in manual.
  150. #. Fix some typo of testcase.
  151. [PHP Simple HTML DOM Parser v0.95 is released]
  152. 1. New attribute filters (Thanks to Yousuke Kumakura).
  153. 2. Fix the bug of optional-closing tags.
  154. 3. Fix the bug of parsing the line break next to the tag's name.
  155. 4. Supports tag name with namespace.
  156. #. Refine structure of testcase.
  157. [PHP Simple HTML DOM Parser v0.94 is released]
  158. 1. Stop infinity loop while tthe source content is BAD HTML.
  159. 2. Fix the bug of adding new attributes to self closing tags.
  160. 3. Fix the bug of customize parser without $dom->remove_noise();
  161. 4. Add FAQ section in manual.