Say "Element" instead of "Tag"

This commit is contained in:
Ian Gulliver
2014-07-02 09:26:16 -07:00
parent ccc13f7a20
commit 987defe93e
2 changed files with 9 additions and 9 deletions

View File

@@ -753,7 +753,7 @@ rr.GroupSiblings = function(parentName, childNames) {
* @param {string} newName
* @return {rr.typeFilter}
*/
rr.RenameTag = function(oldName, newName) {
rr.RenameElement = function(oldName, newName) {
return function(node) {
if (node.nodeName.toLowerCase() != oldName) {
return;
@@ -772,7 +772,7 @@ rr.RenameTag = function(oldName, newName) {
* @param {Array.<string>} newNames
* @return {rr.typeFilter}
*/
rr.SplitTagAndNest = function(originalName, newNames) {
rr.SplitElementAndNest = function(originalName, newNames) {
return function(node) {
if (node.nodeName.toLowerCase() != originalName) {
return;