@@ -69,7 +69,7 @@ public function data_single_tag_of_supported_elements() {
6969 * Ensures that no new HTML elements are accidentally partially-supported.
7070 *
7171 * When introducing support for new HTML elements, there are multiple places
72- * in the HTML Process that need to be updated, until the time that the class
72+ * in the HTML Processor that need to be updated, until the time that the class
7373 * has full HTML5 support. Because of this, these tests lock down the interface
7474 * to ensure that support isn't accidentally updated in one place for a new
7575 * element while overlooked in another.
@@ -254,7 +254,7 @@ public function test_fails_when_encountering_unsupported_markup( $html, $descrip
254254 public function data_unsupported_markup () {
255255 return array (
256256 'A with formatting following unclosed A ' => array (
257- '<a><strong>Click <a supported><big unsupported>Here</big></a></strongu ></a> ' ,
257+ '<a><strong>Click <a supported><big unsupported>Here</big></a></strong ></a> ' ,
258258 'Unclosed formatting requires complicated reconstruction. ' ,
259259 ),
260260
@@ -343,6 +343,7 @@ public function data_html_target_with_breadcrumbs() {
343343 'P after closed P ' => array ( '<p><i>something</i></p><p target>This one</p> ' , array ( 'HTML ' , 'BODY ' , 'P ' ), 2 ),
344344 'A after unclosed A ' => array ( '<a><a target> ' , array ( 'HTML ' , 'BODY ' , 'A ' ), 2 ),
345345 'A after unclosed A, after a P ' => array ( '<p><a><a target> ' , array ( 'HTML ' , 'BODY ' , 'P ' , 'A ' ), 2 ),
346+ // This one adds a test at a deep stack depth to ensure things work for situations beyond short test docs.
346347 'Large HTML document with deep P ' => array (
347348 '<div><div><div><div><div><div><div><div><p></p><p></p><p><div><strong><em><code></code></em></strong></div></p></div></div></div></div></div></div></div></div><div><div><div><div><div><div><div><div><p></p><p></p><p><div><strong><em><code target></code></em></strong></div></p></div></div></div></div></div></div></div></div> ' ,
348349 array ( 'HTML ' , 'BODY ' , 'DIV ' , 'DIV ' , 'DIV ' , 'DIV ' , 'DIV ' , 'DIV ' , 'DIV ' , 'DIV ' , 'DIV ' , 'STRONG ' , 'EM ' , 'CODE ' ),
0 commit comments