- // Handle the common XPath // expression
- if ( !t.indexOf("//") ) {
- //context = context.documentElement;
- t = t.substr(2,t.length);
-
- // And the / root expression
- } else if ( !t.indexOf("/") && !context.ownerDocument ) {
- context = context.documentElement;
- t = t.substr(1,t.length);
- if ( t.indexOf("/") >= 1 )
- t = t.substr(t.indexOf("/"),t.length);
- }
-