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:
@ -29,9 +29,9 @@ exports.fn = function (item, params) {
|
||||
!item.isElem('desc') ||
|
||||
!(
|
||||
params.removeAny ||
|
||||
item.isEmpty() ||
|
||||
(item.content[0].type === 'text' &&
|
||||
standardDescs.test(item.content[0].value))
|
||||
item.children.length === 0 ||
|
||||
(item.children[0].type === 'text' &&
|
||||
standardDescs.test(item.children[0].value))
|
||||
)
|
||||
);
|
||||
};
|
||||
|
Reference in New Issue
Block a user