docs: function (collapse,mml) {
        var maction = MML.maction(collapse).With({
          id:this.getActionID(), actiontype:"toggle",
          complexity:collapse.getComplexity(), collapsible:true,
          attrNames:["id","actiontype","selection",COMPLEXATTR], attr:{}, selection:2
        });
        maction.attr[COMPLEXATTR] = maction.complexity;
        if (mml.type === "math") {
          var mrow = MML.mrow().With({
            data: mml.data,
            complexity: mml.complexity,
            attrNames: [], attr: {}
          });
          for (var i = mml.attrNames.length-1, name; name = mml.attrNames[i]; i--) {
            if (name.substr(0,14) === "data-semantic-") {
              mrow.attr[name] = mml.attr[name];
              mrow.attrNames.push(name);
              delete mml.attr[name];
              mml.attrNames.splice(i,1);
            }
          }
          mrow.complexity = mml.complexity;
          maction.Append(mrow); mml.data = []; mml.Append(maction);
          mml.complexity = maction.complexity; maction = mml;
        } else {
          maction.Append(mml);
        }
        return maction;
      }