This repository has been archived by the owner on Jun 20, 2019. It is now read-only.
Releases: Canteen/CanteenHTML5
Releases · Canteen/CanteenHTML5
1.1.4
1.1.3
Bug Fixes
- Fix
NodeContainer::addChildAt
method
1.1.2
Fixed html()
autoloading with Composer
1.1.1
Merged pull request to add html('fragment')
which creates an empty container.
For instance:
$container = html('fragment');
$container->addChild(html('comment', 'The image'));
$container->addChild(html('img src="home.jpg"'));
$container->addChild(html('comment', 'End of the image'));
echo $container;
Generates:
<!-- The image -->
<img src="home.jpg" />
<!-- End of the image -->
1.1.0
Features
- Added new class called
Specification
which defines the HTML5 spec - Added new class called
HTML5
which contains the autoloading functionality (now optional) and the html function - New method
HTML5::useGlobal()
to allow the use of the globalhtml()
function - Added HTML5 event attributes (e.g., "onload", "onclick", etc)
Changes
- Remove the
validAttrs
parameter fromNode
andNodeContainer
constructors