File tree 1 file changed +12
-1
lines changed
1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,16 @@ describe("HTML Document Utility functions", function () {
107
107
done ( ) ;
108
108
} ) ;
109
109
} ) ;
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 ( / f o r e i g n O b j e c t .m y f a k e h o v e r / ) ;
119
+ } ) ;
110
120
} ) ;
111
121
112
122
describe ( "lowercaseCssTypeSelectors" , function ( ) {
@@ -174,7 +184,8 @@ describe("HTML Document Utility functions", function () {
174
184
expect ( doc . querySelector ( 'style' ) . textContent ) . toMatch ( / l i .C O M P L E X : a c t i v e \{ / ) ;
175
185
} ) ;
176
186
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
178
189
ifNotInWebkitOrBlinkIt ( "should only convert mentioned tag names" , function ( ) {
179
190
setHtml ( '<style>BODY LI { color: blue; }</style>' ) ;
180
191
You can’t perform that action at this time.
0 commit comments