Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: devanoxltd/php-html-parser
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.1.0
Choose a base ref
...
head repository: devanoxltd/php-html-parser
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1.2.0
Choose a head ref
  • 14 commits
  • 21 files changed
  • 10 contributors

Commits on Aug 24, 2025

  1. Add setName method to Tag and type to offsetGet

    Introduces a setName method to the Tag class for setting the tag name and returning a cloned instance. Also adds a return type to the offsetGet method in Collection for improved type safety.
    
    https: //github.com/paquettg/pull/250
    Co-Authored-By: max cohen <1487955+sowiso@users.noreply.github.com>
    mr-chetan and xma81 committed Aug 24, 2025
    Configuration menu
    Copy the full SHA
    3be62da View commit details
    Browse the repository at this point in the history
  2. Update option names in README for consistency

    Renamed option headings and references to use 'set' prefix (e.g., 'setStrict', 'setWhitespaceTextNode') for consistency with method naming conventions. Improves clarity for users configuring parser options.
    
    https: //github.com/paquettg/pull/253
    Co-Authored-By: Pete Medina <2043459+petermedina@users.noreply.github.com>
    mr-chetan and PeterMedina committed Aug 24, 2025
    Configuration menu
    Copy the full SHA
    f735979 View commit details
    Browse the repository at this point in the history
  3. Add object check for tag in parser

    Added an is_object check before accessing tag methods in the parser to prevent potential errors when tag is not an object.
    
    https: //github.com/paquettg/pull/257
    Co-Authored-By: Mark <7759964+mark-8@users.noreply.github.com>
    mr-chetan and mark-8 committed Aug 24, 2025
    Configuration menu
    Copy the full SHA
    61f29d2 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b95e0da View commit details
    Browse the repository at this point in the history
  5. Handle null return from mb_ereg_replace in TextNode

    Adds a check for null return value from mb_ereg_replace to throw a LogicalException when invalid encoding is encountered, improving error handling in text cleaning.
    
    https: //github.com/paquettg/pull/260
    Co-Authored-By: Gemini_13 <6113770+gemini1389@users.noreply.github.com>
    mr-chetan and gemini1389 committed Aug 24, 2025
    Configuration menu
    Copy the full SHA
    0098825 View commit details
    Browse the repository at this point in the history
  6. Add ReturnTypeWillChange attribute to offsetGet

    Added the #[ReturnTypeWillChange] attribute to the offsetGet method in Collection to ensure compatibility with future PHP versions and suppress deprecation warnings.
    
    https: //github.com/paquettg/pull/291
    https: //github.com/paquettg/issues/290
    Co-Authored-By: David Young <6652430+davidbyoung@users.noreply.github.com>
    mr-chetan and davidbyoung committed Aug 24, 2025
    Configuration menu
    Copy the full SHA
    f83929a View commit details
    Browse the repository at this point in the history
  7. Fix typo in README example file name

    Corrected 'big.hmtl' to 'big.html' in the usage example to ensure accurate documentation and prevent confusion.
    
    https: //github.com/paquettg/pull/295
    Co-Authored-By: Levi Durfee <10798199+levidurfee@users.noreply.github.com>
    mr-chetan and levidurfee committed Aug 24, 2025
    Configuration menu
    Copy the full SHA
    0f10a58 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    2abf8f4 View commit details
    Browse the repository at this point in the history
  9. Use getTag() method for tag access in Parser

    Replaces direct tag property access with getTag() method in the Parser class to improve encapsulation and consistency when checking for 'script' tags.
    
    https: //github.com/paquettg/pull/311
    Co-Authored-By: Vladyslav Shut <vladyslav.shut@gmail.com>
    mr-chetan and vladshut committed Aug 24, 2025
    Configuration menu
    Copy the full SHA
    23d53b1 View commit details
    Browse the repository at this point in the history
  10. Fix typo and clear innerText in HtmlNode

    Corrected a typo in the circular reference exception message in InnerNode. Added clearing of innerText property in HtmlNode's clear method to ensure all relevant cached properties are reset.
    
    https: //github.com/paquettg/pull/324
    Co-Authored-By: Alexandr Popov <38440005+popov654@users.noreply.github.com>
    mr-chetan and popov654 committed Aug 24, 2025
    Configuration menu
    Copy the full SHA
    4877615 View commit details
    Browse the repository at this point in the history
  11. Refactor encoding to use EncoderInterface

    Replaces usage of the concrete Encoder class with EncoderInterface throughout the codebase for improved abstraction and flexibility. Updates type hints, exception handling, and relevant docblocks to reflect the new interface usage.
    
    https: //github.com/paquettg/pull/321
    Co-Authored-By: dakur <dev@kurowsti.cz>
    mr-chetan and dakur committed Aug 24, 2025
    Configuration menu
    Copy the full SHA
    df29314 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    7dc22d9 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    026611c View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    f856f50 View commit details
    Browse the repository at this point in the history
Loading