Perry Rylance

Personal & Professional blog

Announcing DOMDocument 4.0

Sixteen years after the release of HTML5, PHP is finally adding first-party support for the HTML5 spec to their DOMDocument class.

You can read more about it here.

It has already been announced that the updated version will be fully backwards compatible, however I am mindful that this may bring breaking changes to my own DOMDocument library, and potentially to projects that use it. With that in mind, I will be releasing version 4.0 in the near future.

I will be dropping masterminds/html5 from my library and switching over to PHP’s internal libraries, and integrating with the new PHP classes instead. I’ve not benchmarked yet but I do imagine this will give a not-insignificant performance increase.

Give the repository a star if you would like to follow!