jonkemp / jonkemp/gulp-inline-css

applyTableAttributes altering html width and height attributes

Open
#47 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
271
Forks
28
PR merge metrics
No merged PRs in 30d

Description

Hi,

Although the description of options.applyTableAttributes reads:
"Whether to apply the border, cellpadding and cellspacing attributes to table elements.",

It seems to have an effect on the width and height html values of tables, in that it adds 'px' to the numbers contained.
example:

```







```

outputs:
```







```

This appears to mess with (my) table rendering D:

If it helps, my gulp task is as follows:
```
gulp.task('inline', function(){
var stylesheet = fs.readFileSync('app/css/styles.css', 'utf8');
return gulp.src('app/html/*.html')
.pipe(inlineCss({
applyStyleTags: false,
removeStyleTags: false,
applyTableAttributes: true,
applyWidthAttributes:false,
preserveMediaQueries: true,
extraCss: stylesheet
}))
.pipe(gulp.dest('dist'));
});
```

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.