"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Opt = require("../Opt");
function childrenOf(elm) {
    for (var i = 0, xs = elm.children, ret = []; i < xs.length; i++)
        ret.push(xs.item(i));
    return ret;
}
exports.childrenOf = childrenOf;
function buildHamlStyleTag(tag, classes, id) {
    if (classes === void 0) { classes = []; }
    if (id === void 0) { id = Opt.empty(); }
    if (tag === 'div' && (id.isDefined() || classes.length > 0))
        tag = '';
    return tag + id.map(function (x) { return '#' + x; }).getOrElse('') + classes.map(function (x) { return '.' + x; }).join('');
}
exports.buildHamlStyleTag = buildHamlStyleTag;
//# sourceMappingURL=domutil.js.map