250245 - spec changed, its now Document.inputEncoding
r+sr=jst
This commit is contained in:
Родитель
fd3cee92f8
Коммит
4f7f2461ff
|
@ -3586,9 +3586,9 @@ nsDocument::LookupNamespaceURI(const nsAString& aNamespacePrefix,
|
|||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDocument::GetActualEncoding(nsAString& aActualEncoding)
|
||||
nsDocument::GetInputEncoding(nsAString& aInputEncoding)
|
||||
{
|
||||
return GetCharacterSet(aActualEncoding);
|
||||
return GetCharacterSet(aInputEncoding);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
@ -3597,8 +3597,8 @@ nsDocument::GetXmlEncoding(nsAString& aXmlEncoding)
|
|||
if (mXMLDeclarationBits & XML_DECLARATION_BITS_DECLARATION_EXISTS &&
|
||||
mXMLDeclarationBits & XML_DECLARATION_BITS_ENCODING_EXISTS) {
|
||||
// XXX We don't store the encoding given in the xml declaration.
|
||||
// For now, just output the actualEncoding which we do store.
|
||||
GetActualEncoding(aXmlEncoding);
|
||||
// For now, just output the inputEncoding which we do store.
|
||||
GetInputEncoding(aXmlEncoding);
|
||||
} else {
|
||||
SetDOMStringToNull(aXmlEncoding);
|
||||
}
|
||||
|
|
|
@ -48,7 +48,7 @@ interface nsIDOMDOMConfiguration;
|
|||
interface nsIDOM3Document : nsIDOM3Node
|
||||
{
|
||||
// Introduced in DOM Level 3:
|
||||
readonly attribute DOMString actualEncoding;
|
||||
readonly attribute DOMString inputEncoding;
|
||||
// Introduced in DOM Level 3:
|
||||
readonly attribute DOMString xmlEncoding;
|
||||
// Introduced in DOM Level 3:
|
||||
|
|
Загрузка…
Ссылка в новой задаче