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 12483 bc3dd8a55dd239985a4c6384fd076f34462354c1
parent 12482 0b43c4940181e2ba977202c10a10d250d1f57135
child 12484 4ce23522bc4172bb5e9c4cb8a5656dd96ac5494b
push id9194
push userryanvm@gmail.com
push dateMon, 20 May 2013 20:56:01 +0000
treeherdercomm-central@4ce23522bc41 [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;