Bumping manifests a=b2g-bump
[gecko.git] / parser / htmlparser / nsIExtendedExpatSink.idl
blobd88f0d97402c4633dc79bbb0edb90bc40284e3f9
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #include "nsIExpatSink.idl"
8 /**
9 * This interface provides notification of syntax-level events.
11 [scriptable, uuid(5e3e4f0c-7b77-47ca-a7c5-a3d87f2a9c82)]
12 interface nsIExtendedExpatSink : nsIExpatSink
14 /**
15 * Called at the beginning of the DTD, before any entity or notation
16 * events.
17 * @param aDoctypeName The document type name.
18 * @param aSysid The declared system identifier for the external DTD subset,
19 * or null if none was declared.
20 * @param aPubid The declared public identifier for the external DTD subset,
21 * or null if none was declared.
23 void handleStartDTD(in wstring aDoctypeName,
24 in wstring aSysid,
25 in wstring aPubid);
27 /**
28 * Called when a prefix mapping starts to be in-scope, before any
29 * startElement events.
30 * @param aPrefix The Namespace prefix being declared. An empty string
31 * is used for the default element namespace, which has
32 * no prefix.
33 * @param aUri The Namespace URI the prefix is mapped to.
35 void handleStartNamespaceDecl(in wstring aPrefix,
36 in wstring aUri);
38 /**
39 * Called when a prefix mapping is no longer in-scope, after any
40 * endElement events.
41 * @param aPrefix The prefix that was being mapped. This is the empty string
42 * when a default mapping scope ends.
44 void handleEndNamespaceDecl(in wstring aPrefix);
46 /**
47 * This is called for a declaration of notation. The base argument is
48 * whatever was set by XML_SetBase. aNotationName will never be
49 * null. The other arguments can be.
50 * @param aNotationName The notation name.
51 * @param aSysId The notation's system identifier, or null if none was given.
52 * @param aPubId The notation's pubilc identifier, or null if none was given.
54 void handleNotationDecl(in wstring aNotationName,
55 in wstring aSysid,
56 in wstring aPubid);
58 /**
59 * This is called for a declaration of an unparsed (NDATA) entity.
60 * aName, aSysid and aNotationName arguments will never be
61 * null. The other arguments may be.
62 * @param aName The unparsed entity's name.
63 * @param aSysId The notation's system identifier.
64 * @param aPubId The notation's pubilc identifier, or null if none was given.
65 * @param aNotationName The name of the associated notation.
67 void handleUnparsedEntityDecl(in wstring aName,
68 in wstring aSysid,
69 in wstring aPubid,
70 in wstring aNotationName);