summaryrefslogtreecommitdiff
path: root/src/HTML5/Parser/StringInputStream.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/HTML5/Parser/StringInputStream.php')
-rw-r--r--src/HTML5/Parser/StringInputStream.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/HTML5/Parser/StringInputStream.php b/src/HTML5/Parser/StringInputStream.php
index 9aa0b73..0d2a7f3 100644
--- a/src/HTML5/Parser/StringInputStream.php
+++ b/src/HTML5/Parser/StringInputStream.php
@@ -295,6 +295,9 @@ class StringInputStream implements InputStream {
}
}
+ /**
+ * Look ahead without moving cursor.
+ */
public function peek() {
if (($this->char + 1) <= $this->EOF) {
return $this->data[$this->char + 1];