code: function(oForm){
              var attrs = {
                  method : null,
                  action : null
              };
  
              if (oForm) {
                  if (oForm.getAttributeNode) {
                      var action = oForm.getAttributeNode("action");
                      var method = oForm.getAttributeNode("method");
  
                      if (action) {
                          attrs.action = action.value;
                      }
  
                      if (method) {
                          attrs.method = method.value;
                      }
  
                  } else {
                      attrs.action = oForm.getAttribute("action");
                      attrs.method = oForm.getAttribute("method");
                  }
              }
  
              attrs.method = (Lang.isString(attrs.method) ? attrs.method : "POST").toUpperCase();
              attrs.action = Lang.isString(attrs.action) ? attrs.action : "";
  
              return attrs;
          }
docs: Retrieves important attributes (currently method and action) from
  the form element, accounting for any elements which may have the same name
  as the attributes. Defaults to "POST" and "" for method and action respectively
  if the attribute cannot be retrieved.
  
  @method _getFormAttributes
  @protected
  @param {HTMLFormElement} oForm The HTML Form element from which to retrieve the attributes
  @return {Object} Object literal, with method and action String properties.