# XHP Upgraded to HTML5

DevFeed: [XHP Upgraded to HTML5](<https://devfeed.tech/articles/xhp-upgraded-to-html5-22030.md>)

Original publisher: [Read original article](<https://codebeforethehorse.tumblr.com/post/35320693712>)

Author: Codebeforethehorse

Published: 2012-11-09T04:30:09Z

Content type: release

Language: en

Sources: [Stefan Parker](<https://devfeed.tech/sources/stefan-parker.md>)

Topics: [HTML5](<https://devfeed.tech/topics/html5.md>), [PHP](<https://devfeed.tech/topics/php.md>)

Tags: [compatibility](<https://devfeed.tech/tags/compatibility.md>), [download](<https://devfeed.tech/tags/download.md>), [html5](<https://devfeed.tech/tags/html5.md>), [php](<https://devfeed.tech/tags/php.md>), [source](<https://devfeed.tech/tags/source.md>), [standards](<https://devfeed.tech/tags/standards.md>), [validation](<https://devfeed.tech/tags/validation.md>), [xhp](<https://devfeed.tech/tags/xhp.md>)

## AI overview

The article announces an update to XHP's default HTML classes to conform to the latest HTML5 working draft. It warns of possible backward-compatibility issues, adds the forceAttribute() method to bypass attribute validation, includes PHP 5.4 compatibility fixes, and links to the latest XHP source.

## Source excerpt

I just checked in an upgraded list of the default HTML classes in XHP that conform to the latest working draft of HTML5. This might cause some backwards compatibility issues, so I've also included a new public method available to all XHP elements called forceAttribute(). The method allows you to set attributes on an element and skip validation checks. I've also checked in a few fixes and changes to conform to the new strict standards of PHP 5.4. Please let me know if you find any issues. You can download the latest XHP source here.