Skip to content

Releases: PerryRylance/DOMDocument

2.0.2

10 Jul 12:20
Compare
Choose a tag to compare
  • Standardised val() and added prop() for checkboxes and radios (with thanks to @warhuhn)
  • attr() now returns null instead of empty string when no attribute present, in line with jQuery
  • Fixed errors in select val() handling
  • Fixed html() returning outer HTML rather than inner html()
  • Added experimental feature DOMDocument::shorthand()
  • PHPStorm compatible
  • PSR-4 compatible

2.0.1

07 Jul 08:41
a0d90ff
Compare
Choose a tag to compare
  • Updated type hinting
  • Many methods now accept DOMNode
  • Fixed syntax error (b8c)

2.0.0

16 May 10:47
054368c
Compare
Choose a tag to compare

New major version

  • Improved error handling
  • Closer adhesion to jQuery's design pattern
  • Improved manipulation
  • New jQuery-like functions
  • New support for parsing HTML fragment strings on-the-fly
  • Bug fixes
  • Please review README.md for migration guide (from 1.0.*)

1.0.14

13 May 13:43
Compare
Choose a tag to compare
  • Relaxed DOCTYPE check to be case insensitive, preventing DOCTYPE warnings when DTD is lowercase

1.0.13

11 May 06:32
186b336
Compare
Choose a tag to compare
  • Compatibility fixes with newer builds of native DOMDocument

1.0.12

22 Feb 07:51
Compare
Choose a tag to compare
  • Bumped version number

1.0.11

22 Feb 07:45
bf2ee5d
Compare
Choose a tag to compare
  • Fixed attr() and data() rejecting numeric values as attribute values
  • Fixed html() not clearing before setting
  • Fixed attr() rejecting key value arrays for setting

1.0.10

26 Dec 12:02
Compare
Choose a tag to compare
  • Fixed broken tests
  • Added gitignore to allow dependencies to be loaded without committing them to packagist
  • Fixed incompatiblity with PHP >= 8.0 in DOMElement
  • Fixed document empty after trying to import invalid HTML using loadHTML, warnings are now issued and the input is treated as a plain string
  • Fixed fatal error when calling functions which do not return a result set on a result set

1.0.9

21 Dec 11:44
Compare
Choose a tag to compare

Fixed fatal error in DOMElement::html when setting

Bug fixes

01 Oct 13:52
0206587
Compare
Choose a tag to compare
  • Fixed issue with HTML/PHP being directly outputted
  • Fixed issue with empty document when loading with executePHP