Bug fix for XPath query of attributes in FireFox

To reproduce the bug in FireFox:
 
qC is the client
tid = the table ID
 
Field Data
 
var tableSchema = qC.GetSchema(tid);
var fds = qC.selectNodes(tableSchema, "/*/table/fields/field");
var fieldData = new Array();
for(var i=0; i<fds.length; i++){
                fieldData.push(qC.text(qC.selectSingleNode(fds[i], "@id")));
}
 
OR Report Data
 
var reports = qC.selectNodes(tableSchema, "/*/table/queries/query");
var reportData = new Array();
for(var i=0;i<reports.length;i++){
                reportData.push(qC.text(qC.selectSingleNode(reports[i], "@id")));
}
 
The “@id”, before the update, would return the field or report id now it returns nothing.
Merge pull request #2 from cvonroesgen/patch-1

Bug fix for XPath query of attributes in FireFox