1234567891011121314151617181920212223242526272829 |
- 'use strict';
- exports.type = 'perItem';
- exports.active = true;
- exports.description = 'removes empty attributes';
- exports.fn = function(item) {
- if (item.elem) {
- item.eachAttr(function(attr) {
- if (attr.value === '') {
- item.removeAttr(attr.name);
- }
- });
- }
- };
|