mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 693162 - Remove Document.xmlVersion; r=sicking
This commit is contained in:
parent
28324aa66d
commit
aaf97be2ff
@ -75,5 +75,4 @@ DEPRECATED_OPERATION(Position)
|
||||
DEPRECATED_OPERATION(TotalSize)
|
||||
DEPRECATED_OPERATION(IsSameNode)
|
||||
DEPRECATED_OPERATION(GlobalStorage)
|
||||
DEPRECATED_OPERATION(XmlVersion)
|
||||
DEPRECATED_OPERATION(InputEncoding)
|
||||
|
@ -5910,29 +5910,6 @@ nsDocument::GetMozSyntheticDocument(bool *aSyntheticDocument)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDocument::GetXmlVersion(nsAString& aXmlVersion)
|
||||
{
|
||||
WarnOnceAbout(eXmlVersion);
|
||||
if (IsHTML()) {
|
||||
SetDOMStringToNull(aXmlVersion);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
// If there is no declaration, the value is "1.0".
|
||||
|
||||
// XXX We only support "1.0", so always output "1.0" until that changes.
|
||||
aXmlVersion.AssignLiteral("1.0");
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDocument::SetXmlVersion(const nsAString& aXmlVersion)
|
||||
{
|
||||
return IsHTML() ? NS_ERROR_DOM_NOT_SUPPORTED_ERR : NS_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDocument::GetDocumentURI(nsAString& aDocumentURI)
|
||||
{
|
||||
|
@ -66,7 +66,7 @@ interface nsIDOMLocation;
|
||||
* http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html
|
||||
*/
|
||||
|
||||
[scriptable, uuid(3e44540f-9d35-43a5-995c-38a17c9837e3)]
|
||||
[scriptable, uuid(256a15f4-126f-48f9-90b6-7f5b2b1e30e6)]
|
||||
interface nsIDOMDocument : nsIDOMNode
|
||||
{
|
||||
readonly attribute nsIDOMDocumentType doctype;
|
||||
@ -105,9 +105,6 @@ interface nsIDOMDocument : nsIDOMNode
|
||||
nsIDOMElement getElementById(in DOMString elementId);
|
||||
// Introduced in DOM Level 3:
|
||||
readonly attribute DOMString inputEncoding;
|
||||
// Introduced in DOM Level 3:
|
||||
attribute DOMString xmlVersion;
|
||||
// raises(DOMException) on setting
|
||||
// Introduced in DOM Level 3:
|
||||
readonly attribute DOMString documentURI;
|
||||
// Introduced in DOM Level 3:
|
||||
|
@ -38,7 +38,7 @@
|
||||
|
||||
#include "nsIDOMDocument.idl"
|
||||
|
||||
[scriptable, uuid(d7b494f1-edc2-467a-8256-fa5ceeebda3c)]
|
||||
[scriptable, uuid(f349fb58-544d-4254-b1b9-902e459d7b5c)]
|
||||
interface nsIDOMXMLDocument : nsIDOMDocument
|
||||
{
|
||||
// DOM Level 3 Load & Save, DocumentLS
|
||||
|
@ -47,7 +47,7 @@
|
||||
*/
|
||||
interface nsISelection;
|
||||
|
||||
[scriptable, uuid(8d3dfd39-7c1c-43a7-9b85-29179f8e9e2e)]
|
||||
[scriptable, uuid(3d94491d-fd74-4710-bfa8-83724b674177)]
|
||||
interface nsIDOMHTMLDocument : nsIDOMDocument
|
||||
{
|
||||
readonly attribute DOMString URL;
|
||||
|
@ -39,7 +39,7 @@
|
||||
|
||||
interface nsIDOMSVGSVGElement;
|
||||
|
||||
[scriptable, uuid(69175e70-4ea6-4ede-9085-5b9d1a9dce2f)]
|
||||
[scriptable, uuid(872c2e8f-80cb-4405-981d-ba3474e7925e)]
|
||||
interface nsIDOMSVGDocument : nsIDOMDocument
|
||||
{
|
||||
readonly attribute DOMString domain;
|
||||
|
@ -114,6 +114,5 @@ nsIJSONDecodeDeprecatedWarning=nsIJSON.decode is deprecated. Please use JSON.pa
|
||||
nsIJSONEncodeDeprecatedWarning=nsIJSON.encode is deprecated. Please use JSON.stringify instead.
|
||||
nsIDOMWindowInternalWarning=Use of nsIDOMWindowInternal is deprecated. Use nsIDOMWindow instead.
|
||||
IsSameNodeWarning=Use of isSameNode is deprecated. Please use A == B to test for equality instead.
|
||||
XmlVersionWarning=Use of xmlVersion is deprecated.
|
||||
InputEncodingWarning=Use of inputEncoding is deprecated.
|
||||
GlobalStorageWarning=Use of globalStorage is deprecated. Please use localStorage instead.
|
||||
|
Loading…
Reference in New Issue
Block a user