We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 668660e commit 039ae86Copy full SHA for 039ae86
1 file changed
XS.xs
@@ -492,10 +492,14 @@ void JsCollapseNodes(Node* curr) {
492
JsCollapseNodeToWhitespace(curr);
493
break;
494
case NODE_BLOCKCOMMENT:
495
+ /* IE Conditional Compilation comments do not get collapsed */
496
+ if (nodeIsIECONDITIONALBLOCKCOMMENT(curr)) {
497
+ break;
498
+ }
499
/* block comments get collapsed to WS if that's a side-affect
500
* of their placement in the JS document.
501
*/
- if (!nodeIsIECONDITIONALBLOCKCOMMENT(curr)) {
502
+ {
503
bool convert_to_ws = 0;
504
/* find surrounding non-WS nodes */
505
Node* nonws_prev = curr->prev;
0 commit comments