250245 - spec changed, its now Document.inputEncoding

r+sr=jst
This commit is contained in:
caillon%redhat.com 2005-02-28 22:35:02 +00:00
Родитель fd3cee92f8
Коммит 4f7f2461ff
2 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -3586,9 +3586,9 @@ nsDocument::LookupNamespaceURI(const nsAString& aNamespacePrefix,
} }
NS_IMETHODIMP NS_IMETHODIMP
nsDocument::GetActualEncoding(nsAString& aActualEncoding) nsDocument::GetInputEncoding(nsAString& aInputEncoding)
{ {
return GetCharacterSet(aActualEncoding); return GetCharacterSet(aInputEncoding);
} }
NS_IMETHODIMP NS_IMETHODIMP
@ -3597,8 +3597,8 @@ nsDocument::GetXmlEncoding(nsAString& aXmlEncoding)
if (mXMLDeclarationBits & XML_DECLARATION_BITS_DECLARATION_EXISTS && if (mXMLDeclarationBits & XML_DECLARATION_BITS_DECLARATION_EXISTS &&
mXMLDeclarationBits & XML_DECLARATION_BITS_ENCODING_EXISTS) { mXMLDeclarationBits & XML_DECLARATION_BITS_ENCODING_EXISTS) {
// XXX We don't store the encoding given in the xml declaration. // XXX We don't store the encoding given in the xml declaration.
// For now, just output the actualEncoding which we do store. // For now, just output the inputEncoding which we do store.
GetActualEncoding(aXmlEncoding); GetInputEncoding(aXmlEncoding);
} else { } else {
SetDOMStringToNull(aXmlEncoding); SetDOMStringToNull(aXmlEncoding);
} }

Просмотреть файл

@ -48,7 +48,7 @@ interface nsIDOMDOMConfiguration;
interface nsIDOM3Document : nsIDOM3Node interface nsIDOM3Document : nsIDOM3Node
{ {
// Introduced in DOM Level 3: // Introduced in DOM Level 3:
readonly attribute DOMString actualEncoding; readonly attribute DOMString inputEncoding;
// Introduced in DOM Level 3: // Introduced in DOM Level 3:
readonly attribute DOMString xmlEncoding; readonly attribute DOMString xmlEncoding;
// Introduced in DOM Level 3: // Introduced in DOM Level 3: