aboutsummaryrefslogtreecommitdiff
path: root/lib/html
diff options
context:
space:
mode:
Diffstat (limited to 'lib/html')
-rw-r--r--lib/html/ast.js4
-rw-r--r--lib/html/index.js2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/html/ast.js b/lib/html/ast.js
index 6056f5c..30e65c7 100644
--- a/lib/html/ast.js
+++ b/lib/html/ast.js
@@ -16,7 +16,7 @@ function nonFreshElement(tagName, attributes, children) {
children);
}
-function element(tagName, attributes, children) {
+function freshElement(tagName, attributes, children) {
return elementWithTag(
htmlPaths.element(tagName, attributes, {fresh: true}),
children);
@@ -67,7 +67,7 @@ function collapseFragments(elements) {
}
exports.fragment = fragment;
-exports.element = element;
+exports.freshElement = freshElement;
exports.nonFreshElement = nonFreshElement;
exports.elementWithTag = elementWithTag;
exports.selfClosingElement = selfClosingElement;
diff --git a/lib/html/index.js b/lib/html/index.js
index 6de2a6e..8fa1fcf 100644
--- a/lib/html/index.js
+++ b/lib/html/index.js
@@ -1,7 +1,7 @@
var ast = require("./ast");
exports.fragment = ast.fragment;
-exports.element = ast.element;
+exports.freshElement = ast.freshElement;
exports.nonFreshElement = ast.nonFreshElement;
exports.elementWithTag = ast.elementWithTag;
exports.selfClosingElement = ast.selfClosingElement;