'use strict';
function getParents(element) {
var parents = [];
while (element) {
element = element.parent;
if (element) {
parents.push(element);
}
return parents;
module.exports.getParents = getParents;