From 6554612c305bfd75116b00ed89d0f3b104b1a3ca Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 13 Nov 2016 21:07:32 +0000 Subject: Read CSS classes with escaped colon --- test/style-reader.tests.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/style-reader.tests.js') diff --git a/test/style-reader.tests.js b/test/style-reader.tests.js index ec17e3a..46c2ace 100644 --- a/test/style-reader.tests.js +++ b/test/style-reader.tests.js @@ -40,6 +40,13 @@ test('styleReader.readHtmlPath', { assertHtmlPath("p.tip", expected); }, + 'reads class with escaped colon': function() { + var expected = htmlPaths.elements([ + htmlPaths.element("p", {"class": "a:b"}) + ]); + assertHtmlPath("p.a\\:b", expected); + }, + 'reads multiple classes on element': function() { var expected = htmlPaths.elements([ htmlPaths.element("p", {"class": "tip help"}) -- cgit v1.2.3