/*! CSSelector.js - v0.1.0 - 2012-10-22 * https://github.com/stevoland/CSSelector.js * Copyright (c) 2012 stevo (Stephen Collings); Licensed MIT */ (function(e,t){typeof exports=="object"?module.exports=t():typeof define=="function"&&define.amd?define([],t):e.returnExports=t()})(this,function(){function e(e){var t=[];while(e.parentNode){if(e.id){t.unshift("#"+e.id);break}if(e===e.ownerDocument.documentElement||e===e.ownerDocument.body)t.unshift(e.tagName);else{for(var n=1,r=e;r.previousElementSibling;r=r.previousElementSibling,n++);t.unshift(e.tagName+":nth-child("+n+")")}e=e.parentNode}return t.join(" > ")}return e});