diff options
Diffstat (limited to 'lib/html/ast.js')
| -rw-r--r-- | lib/html/ast.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/html/ast.js b/lib/html/ast.js index 96aa6c6..6056f5c 100644 --- a/lib/html/ast.js +++ b/lib/html/ast.js @@ -10,6 +10,12 @@ function fragment(children) { }; } +function nonFreshElement(tagName, attributes, children) { + return elementWithTag( + htmlPaths.element(tagName, attributes, {fresh: false}), + children); +} + function element(tagName, attributes, children) { return elementWithTag( htmlPaths.element(tagName, attributes, {fresh: true}), @@ -62,6 +68,7 @@ function collapseFragments(elements) { exports.fragment = fragment; exports.element = element; +exports.nonFreshElement = nonFreshElement; exports.elementWithTag = elementWithTag; exports.selfClosingElement = selfClosingElement; exports.text = text; |
