mirror of
https://github.com/svg/svgo.git
synced 2025-07-29 20:21:14 +03:00
Convert element children to xast
Ref https://github.com/syntax-tree/xast Renamed content to children to match xast spec.
This commit is contained in:
@ -27,7 +27,7 @@ var container = require('./_collections').elemsGroups.container;
|
||||
exports.fn = function (item) {
|
||||
return (
|
||||
item.isElem(container) === false ||
|
||||
item.isEmpty() === false ||
|
||||
(item.type === 'element' && item.children.length !== 0) ||
|
||||
item.isElem('svg') ||
|
||||
// empty patterns may contain reusable configuration
|
||||
(item.isElem('pattern') && Object.keys(item.attrs).length !== 0) ||
|
||||
|
Reference in New Issue
Block a user