diff options
author | Asmir Mustafic <[email protected]> | 2014-11-29 01:01:45 +0100 |
---|---|---|
committer | Asmir Mustafic <[email protected]> | 2014-12-01 21:02:39 +0100 |
commit | c1581031d404574a32c4cb1aa72f59f0f5f74250 (patch) | |
tree | cbc6e371a1bd9efc53151b349c7ea6dd8b26bb94 /test/HTML5/Html5Test.php | |
parent | f50e87904ed0857ea2dead2ae4facf7d95c743fd (diff) |
Added support for dashes in element tag names (closes #65)
Diffstat (limited to 'test/HTML5/Html5Test.php')
-rw-r--r-- | test/HTML5/Html5Test.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/HTML5/Html5Test.php b/test/HTML5/Html5Test.php index 2b46b23..0ab367c 100644 --- a/test/HTML5/Html5Test.php +++ b/test/HTML5/Html5Test.php @@ -259,6 +259,12 @@ class Html5Test extends TestCase $res = $this->cycleFragment('<span></span>'); $this->assertRegExp('|<span></span>|', $res); + // Elements with dashes and underscores + $res = $this->cycleFragment('<sp-an></sp-an>'); + $this->assertRegExp('|<sp-an></sp-an>|', $res); + $res = $this->cycleFragment('<sp_an></sp_an>'); + $this->assertRegExp('|<sp_an></sp_an>|', $res); + // Should have no closing tag. $res = $this->cycle('<hr>'); $this->assertRegExp('|<hr></body>|', $res); |