diff --git a/tests/open-and-close-tag-tests.js b/tests/open-and-close-tag-tests.js index 326544a..879ccdf 100644 --- a/tests/open-and-close-tag-tests.js +++ b/tests/open-and-close-tag-tests.js @@ -106,6 +106,23 @@ describe('opening and closing tags', function() { closeCount.should.equal(1); }); + it('tag names with dots (ReactJS style)', function () { + var openCount = 0, closeCount = 0; + helpers.parseString('', { + openElement: function (name) { + name.should.equal('Module.Class'); + openCount++; + }, + closeElement: function (name) { + name.should.equal('Module.Class'); + closeCount++; + } + }); + + openCount.should.equal(1); + closeCount.should.equal(1); + }); + it('element with a closing tag that doesn\'t end', function() { var openCount = 0, closeCount = 0; helpers.parseString('