Skip to content

Commit 8e65041

Browse files
committed
Document issue #91
1 parent 505b575 commit 8e65041

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

test/specs/DocumentUtilSpec.js

+12-1
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,16 @@ describe("HTML Document Utility functions", function () {
107107
done();
108108
});
109109
});
110+
111+
// Chrome and WebKit don't seem to care about tag name selector case sensitivity for XML documents.
112+
// https://github.com/cburgmer/rasterizeHTML.js/issues/91
113+
ifNotInWebkitOrBlinkIt("should keep letter case", function () {
114+
setHtml('<style>foreignObject:hover { color: blue; }</style>');
115+
116+
documentUtil.rewriteCssSelectorWith(doc, ':hover', '.myfakehover');
117+
118+
expect(doc.querySelector('style').textContent).toMatch(/foreignObject.myfakehover/);
119+
});
110120
});
111121

112122
describe("lowercaseCssTypeSelectors", function () {
@@ -174,7 +184,8 @@ describe("HTML Document Utility functions", function () {
174184
expect(doc.querySelector('style').textContent).toMatch(/li.COMPLEX:active \{/);
175185
});
176186

177-
// Chrome and WebKit don't seem to care about tag name selector case sensitivity for XML documents. Why should we?
187+
// Chrome and WebKit don't seem to care about tag name selector case sensitivity for XML documents.
188+
// https://github.com/cburgmer/rasterizeHTML.js/issues/91
178189
ifNotInWebkitOrBlinkIt("should only convert mentioned tag names", function () {
179190
setHtml('<style>BODY LI { color: blue; }</style>');
180191

0 commit comments

Comments
 (0)