Bug 839279 - Code cleanup in /editor/: Follow-up with forgotton trim(). r=mconley
authorSebastian Hengst <archaeopteryx@coole-files.de>
Mon, 20 May 2013 21:04:20 +0200
changeset 15640 bc3dd8a55dd239985a4c6384fd076f34462354c1
parent 15639 0b43c4940181e2ba977202c10a10d250d1f57135
child 15641 4ce23522bc4172bb5e9c4cb8a5656dd96ac5494b
push id942
push userbugzilla@standard8.plus.com
push dateMon, 05 Aug 2013 19:15:38 +0000
treeherdercomm-beta@0e1a1c4a9f0c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmconley
bugs839279
Bug 839279 - Code cleanup in /editor/: Follow-up with forgotton trim(). r=mconley
editor/ui/dialogs/content/EdAEHTMLAttributes.js
--- a/editor/ui/dialogs/content/EdAEHTMLAttributes.js
+++ b/editor/ui/dialogs/content/EdAEHTMLAttributes.js
@@ -90,17 +90,17 @@ function BuildHTMLAttributeTable()
 {
   var nodeMap = gElement.attributes;
   var i;
   if (nodeMap.length > 0) 
   {
     var added = false;
     for(i = 0; i < nodeMap.length; i++)
     {
-      let name = nodeMap[i].name.toLowerCase();
+      let name = nodeMap[i].name.trim().toLowerCase();
       if ( CheckAttributeNameSimilarity( nodeMap[i].nodeName, HTMLAttrs ) ||
            name.startsWith("on") || name == "style" ) {
         continue;   // repeated or non-HTML attribute, ignore this one and go to next
       }
       if (!name.startsWith("_moz") &&
           AddTreeItem(name, nodeMap[i].value, "HTMLAList", HTMLAttrs))
       {
         added = true;