diff options
-rw-r--r-- | src/HTML5/Parser/DOMTreeBuilder.php | 5 | ||||
-rw-r--r-- | test/HTML5/Html5Test.php | 4 |
2 files changed, 3 insertions, 6 deletions
diff --git a/src/HTML5/Parser/DOMTreeBuilder.php b/src/HTML5/Parser/DOMTreeBuilder.php index c28b436..6dbd25e 100644 --- a/src/HTML5/Parser/DOMTreeBuilder.php +++ b/src/HTML5/Parser/DOMTreeBuilder.php @@ -318,11 +318,6 @@ class DOMTreeBuilder implements EventHandler { $this->insertMode = static::IM_IN_BODY; break; } - - // 8.2.5.4.7 - if ($name == 'sarcasm') { - $this->text("Take a deep breath."); - } } public function comment($cdata) { diff --git a/test/HTML5/Html5Test.php b/test/HTML5/Html5Test.php index 1d3d7ab..4e7c300 100644 --- a/test/HTML5/Html5Test.php +++ b/test/HTML5/Html5Test.php @@ -201,11 +201,13 @@ class Html5Test extends TestCase { <f:name>Big rectangle thing</f:name> <f:width>40</f:width> <f:length>80</f:length> - </f:rug>"); + </f:rug> + <sarcasm>um, yeah</sarcasm>"); $this->assertEmpty($dom->errors); $markup = \HTML5::saveHTML($dom); $this->assertRegExp('|<f:name>Big rectangle thing</f:name>|',$markup); + $this->assertRegExp('|<sarcasm>um, yeah</sarcasm>|',$markup); } public function testElements() { |