Permalink
Browse files

Make all nodeNames lowecase

  • Loading branch information...
1 parent b5a59ca commit d571f7d6898ac208f0a302f3178c087ba5e4acae @mrlundis mrlundis committed Mar 7, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 wymeditor/core/dom/structure_manager.js
@@ -49,14 +49,15 @@ Wymeditor.ns('dom').structureManager = function (ruleSet) {
// Merge all collection per node
for (i = 0; collection = collectionsByWeight[i]; i++) {
for (j = 0; nodeName = collection.members[j]; j++) {
+ nodeName = nodeName.toLowerCase();
nodes[nodeName] = $.extend(true, (nodes[nodeName] || {}), collection.properties);
}
}
// Add node specific overrides/extensions
for (nodeName in _rawRuleSet.nodes) {
if (_rawRuleSet.nodes.hasOwnProperty(nodeName)) {
- nodes[nodeName] = $.extend(true, (nodes[nodeName] || {}), _rawRuleSet.nodes[nodeName]);
+ nodes[nodeName.toLowerCase()] = $.extend(true, (nodes[nodeName.toLowerCase()] || {}), _rawRuleSet.nodes[nodeName]);
}
}

0 comments on commit d571f7d

Please sign in to comment.