Skip to content
This repository has been archived by the owner on Jun 20, 2019. It is now read-only.

Releases: Canteen/CanteenHTML5

1.1.4

26 Dec 14:11
Compare
Choose a tag to compare

Bug Fixes

  • Added missing <iframe> element from the specification

1.1.3

12 Nov 15:23
Compare
Choose a tag to compare

Bug Fixes

  • Fix NodeContainer::addChildAt method

1.1.2

11 Nov 14:45
Compare
Choose a tag to compare

Fixed html() autoloading with Composer

1.1.1

10 Nov 22:47
Compare
Choose a tag to compare

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

31 Oct 16:37
Compare
Choose a tag to compare

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 global html() function
  • Added HTML5 event attributes (e.g., "onload", "onclick", etc)

Changes

  • Remove the validAttrs parameter from Node and NodeContainer constructors