jonkemp / jonkemp/gulp-inline-css

Strips self-closing tags

Open
#6 5 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
271
Forks
28
PR merge metrics
No merged PRs in 30d

Description

Running the task on pages with self-closing tags and piping to another directory strips the "closing" part, i.e., `
` becomes `
`.

Using a modified version of the HTML page you have in the README:

```



p { color: red; }

Test
Is it still there?

```

Note that the `meta` tag and the `br` are self-closing. And run this configuration:

```
gulp.task('inline', function() {
return gulp.src('./tmp/*.html')
.pipe(inlineCss())
.pipe(gulp.dest('./dist'));;
});
```

The output is:

```

Test
Is it still there?

```

I played around with `removeStyleTags` and `removeLinkTags` but the problem didn't change.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.