mirror of
https://github.com/svg/svgo.git
synced 2025-08-09 02:22:08 +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:
@@ -60,10 +60,10 @@ exports.fn = function (data) {
|
||||
}
|
||||
|
||||
function monkeys(items, fn) {
|
||||
items.content.forEach(function (item) {
|
||||
items.children.forEach(function (item) {
|
||||
fn(item);
|
||||
|
||||
if (item.content) {
|
||||
if (item.children) {
|
||||
monkeys(item, fn);
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user