From 1c8f501203b60ef5aa3cb4fac84d0fe6e2d657e1 Mon Sep 17 00:00:00 2001 From: Matt Farina Date: Wed, 10 Apr 2013 10:33:21 -0400 Subject: Started unit tests on the scanner. --- src/HTML5/Parser/Scanner.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/HTML5') diff --git a/src/HTML5/Parser/Scanner.php b/src/HTML5/Parser/Scanner.php index 33621fd..0260391 100644 --- a/src/HTML5/Parser/Scanner.php +++ b/src/HTML5/Parser/Scanner.php @@ -36,7 +36,10 @@ class Scanner { } /** - * Take a peek at the next character in the data. + * Take a peek at the character after the next character in the data. + * + * For example, you start scanning the string abc. The pointer is before a. + * When you start peek() will return b while next() will return a. * * @return string * The next character. -- cgit v1.2.3