Skip to content

Commit

Permalink
Document issue #91
Browse files Browse the repository at this point in the history
  • Loading branch information
cburgmer committed Feb 15, 2015
1 parent 505b575 commit 8e65041
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion test/specs/DocumentUtilSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,16 @@ describe("HTML Document Utility functions", function () {
done();
});
});

// Chrome and WebKit don't seem to care about tag name selector case sensitivity for XML documents.
// https://github.com/cburgmer/rasterizeHTML.js/issues/91
ifNotInWebkitOrBlinkIt("should keep letter case", function () {
setHtml('<style>foreignObject:hover { color: blue; }</style>');

documentUtil.rewriteCssSelectorWith(doc, ':hover', '.myfakehover');

expect(doc.querySelector('style').textContent).toMatch(/foreignObject.myfakehover/);
});
});

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

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

Expand Down

0 comments on commit 8e65041

Please sign in to comment.