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:
@ -45,7 +45,7 @@ exports.fn = function (data, params) {
|
||||
}
|
||||
|
||||
var classNames = params.classNames || [params.className],
|
||||
svg = data.content[0];
|
||||
svg = data.children[0];
|
||||
|
||||
if (svg.isElem('svg')) {
|
||||
svg.class.add.apply(svg.class, classNames);
|
||||
|
Reference in New Issue
Block a user