summaryrefslogtreecommitdiff
path: root/src/HTML5
diff options
context:
space:
mode:
authorMatt Farina <[email protected]>2013-04-10 10:33:21 -0400
committerMatt Farina <[email protected]>2013-04-10 10:33:21 -0400
commit1c8f501203b60ef5aa3cb4fac84d0fe6e2d657e1 (patch)
tree58518042aa52f796f5bea75bfc83a51ca4dd9abd /src/HTML5
parent115ce6b633e14050f93049f96b14bf0b6f5f631f (diff)
Started unit tests on the scanner.
Diffstat (limited to 'src/HTML5')
-rw-r--r--src/HTML5/Parser/Scanner.php5
1 files changed, 4 insertions, 1 deletions
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.