michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsISupports.idl" michael@0: michael@0: interface nsIDOMElement; michael@0: interface nsIDOMDocumentFragment; michael@0: interface nsIURI; michael@0: michael@0: /** michael@0: * Non-Web HTML parser functionality to Firefox extensions and XULRunner apps. michael@0: * Don't use this from within Gecko--use nsContentUtils, nsTreeSanitizer, etc. michael@0: * directly instead. michael@0: */ michael@0: [scriptable, uuid(a1101145-0025-411e-8873-fdf57bf28128)] michael@0: interface nsIParserUtils : nsISupports michael@0: { michael@0: michael@0: /** michael@0: * Flag for sanitizer: Allow comment nodes. michael@0: */ michael@0: const unsigned long SanitizerAllowComments = (1 << 0); michael@0: michael@0: /** michael@0: * Flag for sanitizer: Allow