FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Added tag closing when replacing the link tag href · sake92/node-htmlprocessor@fe1403f · GitHub

Commit fe1403f

Browse files
Tommasone, Mattia(AWF)
committed
Added tag closing when replacing the link tag href
1 parent dd42887 commit fe1403f

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎lib/blocktypes/css.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function css(content, block, blockLine, blockContent, filepath) {
1818
return content.split(blockLine).join(replacement);
1919
}
2020

21-
return content.replace(blockLine, block.indent + '<link rel="stylesheet" href="' + block.asset + '">');
21+
return content.replace(blockLine, block.indent + '<link rel="stylesheet" href="' + block.asset + '"/>');
2222
}
2323

2424
function obtainStyles(block, html, baseDir) {

‎test/expected/conditional_ie/conditional_ie.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<title>Conditional IE statement</title>
77
<!--[if lte IE 8]>
88
<script src="ie8script.js"></script>
9-
<link rel="stylesheet" href="ie8.min.css">
9+
<link rel="stylesheet" href="ie8.min.css"/>
1010
<![endif]-->
1111
</head>
1212
<body>

‎test/expected/inline/inline.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
66
<title>Inline CSS</title>
77

8-
<link rel="stylesheet" href="styles.css">
8+
<link rel="stylesheet" href="styles.css"/>
99

1010
<style>
1111
html {

‎test/expected/recursive/recursive.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
66
<title>Recursive process included files</title>
77

8-
<link rel="stylesheet" href="styles.min.css">
8+
<link rel="stylesheet" href="styles.min.css"/>
99

1010
<script src="script.min.js"></script>
1111
</head>

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL