summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMatt Farina <[email protected]>2015-03-08 13:39:01 -0400
committerMatt Farina <[email protected]>2015-03-08 13:39:01 -0400
commit63a502782449994fd59f108d6dd38adcae5db9d4 (patch)
treef883c6982ce9c91eeb82f3ef6ae85e4017686e04 /test
parent8dce780fb24ff7178ead7fcf88146ed069cacb8b (diff)
Closes #78: Fixes bug where unmatched entity like string drops everything after &.
Diffstat (limited to 'test')
-rw-r--r--test/HTML5/Html5Test.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/HTML5/Html5Test.php b/test/HTML5/Html5Test.php
index a1a6c9c..cce58b7 100644
--- a/test/HTML5/Html5Test.php
+++ b/test/HTML5/Html5Test.php
@@ -376,6 +376,9 @@ class Html5Test extends TestCase
$res = $this->cycleFragment('<a>Apples &amp; bananas.</a>');
$this->assertRegExp('|Apples &amp; bananas.|', $res);
+
+ $res = $this->cycleFragment('<p>R&D</p>');
+ $this->assertRegExp('|R&amp;D|', $res);
}
public function testComment()