[Pale-Moon] Remove excess whitespace.

This commit is contained in:
athenian200 2020-02-06 09:46:16 -06:00 • committed by Roy Tam
commit b6b33a6b2a
73 changed files with 1883 additions and 1883 deletions

View file

@ -12,7 +12,7 @@ this.XPathGenerator = {
/**
* Generates an approximate XPath query to an (X)HTML node
*/
generate: function (aNode) {
generate: function(aNode) {
// have we reached the document node already?
if (!aNode.parentNode)
return "";
@ -46,7 +46,7 @@ this.XPathGenerator = {
/**
* Resolves an XPath query generated by XPathGenerator.generate
*/
resolve: function (aDocument, aQuery) {
resolve: function(aDocument, aQuery) {
let xptype = Components.interfaces.nsIDOMXPathResult.FIRST_ORDERED_NODE_TYPE;
return aDocument.evaluate(aQuery, aDocument, this.resolveNS, xptype, null).singleNodeValue;
},
@ -54,14 +54,14 @@ this.XPathGenerator = {
/**
* Namespace resolver for the above XPath resolver
*/
resolveNS: function (aPrefix) {
resolveNS: function(aPrefix) {
return XPathGenerator.namespaceURIs[aPrefix] || null;
},
/**
* @returns valid XPath for the given node (usually just the local name itself)
*/
escapeName: function (aName) {
escapeName: function(aName) {
// we can't just use the node's local name, if it contains
// special characters (cf. bug 485482)
return /^\w+$/.test(aName) ? aName :
@ -71,7 +71,7 @@ this.XPathGenerator = {
/**
* @returns a properly quoted string to insert into an XPath query
*/
quoteArgument: function (aArg) {
quoteArgument: function(aArg) {
return !/'/.test(aArg) ? "'" + aArg + "'" :
!/"/.test(aArg) ? '"' + aArg + '"' :
"concat('" + aArg.replace(/'+/g, "',\"$&\",'") + "')";