Releases: PerryRylance/DOMDocument
Releases · PerryRylance/DOMDocument
2.0.2
- 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
- Updated type hinting
- Many methods now accept DOMNode
- Fixed syntax error (b8c)
2.0.0
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
- Relaxed DOCTYPE check to be case insensitive, preventing DOCTYPE warnings when DTD is lowercase
1.0.13
- Compatibility fixes with newer builds of native DOMDocument
1.0.12
- Bumped version number
1.0.11
- 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
- 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
Fixed fatal error in DOMElement::html when setting
Bug fixes
- Fixed issue with HTML/PHP being directly outputted
- Fixed issue with empty document when loading with executePHP