From c7095e630d1da8e3d25905ababea0808ad3d8f12 Mon Sep 17 00:00:00 2001 From: Matt Farina Date: Wed, 6 Nov 2013 07:56:35 -0500 Subject: Improving the documentation coverage. --- src/HTML5.php | 25 ++++++++++++++++++++++--- src/HTML5/Elements.php | 11 +++++++++-- src/HTML5/Parser/StringInputStream.php | 3 +++ 3 files changed, 34 insertions(+), 5 deletions(-) diff --git a/src/HTML5.php b/src/HTML5.php index ce0927f..7295fb4 100644 --- a/src/HTML5.php +++ b/src/HTML5.php @@ -1,5 +1,7 @@ document(); } + /** + * Parse an input stream where the stream is a fragment. + * + * Lower-level loading function. This requires an input stream instead + * of a string, file, or resource. + */ public static function parseFragment(\HTML5\Parser\InputStream $input) { $events = new DOMTreeBuilder(TRUE); $scanner = new Scanner($input); diff --git a/src/HTML5/Elements.php b/src/HTML5/Elements.php index 0dabc3a..69d3882 100644 --- a/src/HTML5/Elements.php +++ b/src/HTML5/Elements.php @@ -1,9 +1,10 @@