diff --git a/tests/HTMLPurifier/HTMLModule/HTML5/TextTest.php b/tests/HTMLPurifier/HTMLModule/HTML5/TextTest.php
index <HASH>..<HASH> 100644
--- a/tests/HTMLPurifier/HTMLModule/HTML5/TextTest.php
+++ b/tests/HTMLPurifier/HTMLModule/HTML5/TextTest.php
@@ -384,6 +384,10 @@ class HTMLPurifier_HTMLModule_HTML5_TextTest extends BaseTestCase
             'empty figure' => array(
                 '<figure></figure>',
             ),
+            'deep figcaption' => array(
+                '<figure><div><div><figcaption>Foo</figcaption></div></div></figure>',
+                '<figure><div><div></div></div><figcaption>Foo</figcaption></figure>',
+            ),
         );
     }
Add test for deep figcaption