author Boris Zbarsky <>
Fri, 14 Dec 2012 14:10:49 -0500
changeset 125205 3e0b4ce62d6dd8c24c23b531ffb7ac8974ba2c3e
child 125713 c94c3ad9317dcfd21357463835d07395da5ba2e2
permissions -rw-r--r--
Bug 816380. Convert XPathEvaluator to WebIDL. r=peterv

/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
 * You can obtain one at

interface nsISupports;
interface XPathExpression;
interface XPathNSResolver;
interface XPathResult;

interface XPathEvaluator {
  // Based on nsIDOMXPathEvaluator
  [Creator, Throws]
  XPathExpression createExpression(DOMString expression,
                                   XPathNSResolver? resolver);
  [Creator, Throws]
  XPathNSResolver createNSResolver(Node? nodeResolver);
  XPathResult evaluate(DOMString expression, Node? contextNode,
                       XPathNSResolver? resolver, unsigned short type,
                       XPathResult? result);