зеркало из https://github.com/mozilla/gecko-dev.git
Bug 693154 - Remove Document.xmlStandalone; r=sicking
This commit is contained in:
Родитель
c4eed5bf6c
Коммит
25d2251ba7
|
@ -77,5 +77,4 @@ DEPRECATED_OPERATION(IsSameNode)
|
|||
DEPRECATED_OPERATION(GlobalStorage)
|
||||
DEPRECATED_OPERATION(XmlVersion)
|
||||
DEPRECATED_OPERATION(InputEncoding)
|
||||
DEPRECATED_OPERATION(XmlStandalone)
|
||||
DEPRECATED_OPERATION(IsElementContentWhitespace)
|
||||
|
|
|
@ -5903,25 +5903,6 @@ nsDocument::GetInputEncoding(nsAString& aInputEncoding)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDocument::GetXmlStandalone(bool *aXmlStandalone)
|
||||
{
|
||||
WarnOnceAbout(eXmlStandalone);
|
||||
*aXmlStandalone =
|
||||
!IsHTML() &&
|
||||
mXMLDeclarationBits & XML_DECLARATION_BITS_DECLARATION_EXISTS &&
|
||||
mXMLDeclarationBits & XML_DECLARATION_BITS_STANDALONE_EXISTS &&
|
||||
mXMLDeclarationBits & XML_DECLARATION_BITS_STANDALONE_YES;
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDocument::SetXmlStandalone(bool aXmlStandalone)
|
||||
{
|
||||
return IsHTML() ? NS_ERROR_DOM_NOT_SUPPORTED_ERR : NS_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDocument::GetMozSyntheticDocument(bool *aSyntheticDocument)
|
||||
{
|
||||
|
|
|
@ -66,7 +66,7 @@ interface nsIDOMLocation;
|
|||
* http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html
|
||||
*/
|
||||
|
||||
[scriptable, uuid(2008bf7d-3232-4fc2-b904-8728847d458f)]
|
||||
[scriptable, uuid(3e44540f-9d35-43a5-995c-38a17c9837e3)]
|
||||
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 boolean xmlStandalone;
|
||||
// raises(DOMException) on setting
|
||||
// Introduced in DOM Level 3:
|
||||
attribute DOMString xmlVersion;
|
||||
// raises(DOMException) on setting
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
|
||||
#include "nsIDOMDocument.idl"
|
||||
|
||||
[scriptable, uuid(93c58275-d73c-4d97-9713-11b6885e0dc8)]
|
||||
[scriptable, uuid(d7b494f1-edc2-467a-8256-fa5ceeebda3c)]
|
||||
interface nsIDOMXMLDocument : nsIDOMDocument
|
||||
{
|
||||
// DOM Level 3 Load & Save, DocumentLS
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
*/
|
||||
interface nsISelection;
|
||||
|
||||
[scriptable, uuid(689890ab-9190-4acc-bf69-035a468dd9da)]
|
||||
[scriptable, uuid(8d3dfd39-7c1c-43a7-9b85-29179f8e9e2e)]
|
||||
interface nsIDOMHTMLDocument : nsIDOMDocument
|
||||
{
|
||||
readonly attribute DOMString URL;
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
|
||||
interface nsIDOMSVGSVGElement;
|
||||
|
||||
[scriptable, uuid(d3277c06-db27-4c96-b320-f1fc766fc8d5)]
|
||||
[scriptable, uuid(69175e70-4ea6-4ede-9085-5b9d1a9dce2f)]
|
||||
interface nsIDOMSVGDocument : nsIDOMDocument
|
||||
{
|
||||
readonly attribute DOMString domain;
|
||||
|
|
|
@ -116,6 +116,5 @@ nsIDOMWindowInternalWarning=Use of nsIDOMWindowInternal is deprecated. Use nsIDO
|
|||
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.
|
||||
XmlStandaloneWarning=Use of xmlStandalone is deprecated.
|
||||
IsElementContentWhitespaceWarning=Use of isElementContentWhitespaceWarning is deprecated.
|
||||
GlobalStorageWarning=Use of globalStorage is deprecated. Please use localStorage instead.
|
||||
|
|
|
@ -36,9 +36,6 @@ function runTest() {
|
|||
// doc.contentType
|
||||
ok(doc.contentType == clonefalse.contentType, "contentType not preserved correctly; " + iframes[i].id);
|
||||
|
||||
// doc.xmlStandalone
|
||||
ok(doc.xmlStandalone == clonefalse.xmlStandalone, "xmlStandalone not preserved correctly; " + iframes[i].id);
|
||||
|
||||
// doc.characterSet
|
||||
ok(doc.characterSet == clonefalse.characterSet, "charset not preserved correctly; " + iframes[i].id);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче