diff options
| author | Michael Williamson <mike@zwobble.org> | 2015-10-14 19:17:07 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2015-10-14 19:17:07 +0100 |
| commit | e0397dcd7f650e86898ceab97eedc5753494d9f5 (patch) | |
| tree | e448fe8a0699e42756682d06a8b70e73a47c520e /lib/html | |
| parent | 46ad965f936563829a7c0549a5eb1af89155ee48 (diff) | |
Rename html.element to html.freshElement
Diffstat (limited to 'lib/html')
| -rw-r--r-- | lib/html/ast.js | 4 | ||||
| -rw-r--r-- | lib/html/index.js | 2 |
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; |
