diff --git a/src/Fragment.php b/src/Fragment.php new file mode 100644 index 0000000..4953244 --- /dev/null +++ b/src/Fragment.php @@ -0,0 +1,44 @@ +getChildren() as $child) + { + $buffer .= $child->__toString(); + } + + return $buffer; + } + } +} + +?> \ No newline at end of file diff --git a/src/HTML5.php b/src/HTML5.php index 04b0128..090d10b 100644 --- a/src/HTML5.php +++ b/src/HTML5.php @@ -109,6 +109,11 @@ function html($tag, $childrenOrAttributes=null, $attributes=null) { return new Text($childrenOrAttributes); } + // Untagged container + else if ($tag == 'fragment') + { + return new Fragment($childrenOrAttributes); + } // Check for task specification else if (isset(Specification::$TAGS[$tag])) {