get_status.js 345 B

12345678910
  1. logger.trace(locator(document.getSelection().baseNode));
  2. var baseNode = document.getSelection().baseNode;
  3. if (baseNode === null) ''; else {
  4. (f = function(node){
  5. var tag = node.tagName;
  6. if (tag === 'BODY') return '';
  7. if (tag === 'DIV') tag = node.getAttribute('CLASS');
  8. return f(node.parentNode) + '/' + tag;
  9. })(baseNode.parentNode);
  10. }