Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #17227

Re: XML Serializer Object Method Error

From Five By Five <5x5@5x5.com.invalid>
Newsgroups comp.lang.javascript
Subject Re: XML Serializer Object Method Error
Date 2012-11-14 11:12 +0000
Organization A noiseless patient Spider
Message-ID <XnsA10B865F88845x55x5@88.198.244.100> (permalink)
References <XnsA10B6681058255x55x5@88.198.244.100> <50a372f7$0$9515$9b4e6d93@newsspool1.arcor-online.net>

Show all headers | View raw


Martin Honnen <mahotrash@yahoo.de> wrote on Wed 14 Nov 2012 12:31:19p

> Five By Five wrote:
>> I am using the XML Serializer object on a response to an Ajax HTTP
>> request object in order to convert the document object to a string,
>> but it is not working.  This is all part of a development/debugging
>> process. 
>>
>> *  The exception is caught in the serializeToString() method.
>>     Its single argument is an XML document object, which is shown
>>     by the debugger and during code execution (using instanceof
>>     operator) to be an object of "Document" type.
>>
>> *  The error is reported
>>
>>    + in Mozilla/Firefox 16.0 as:
>>
>>         NS_ERROR_XPC_BAD_OP_ON_WN_PROTO:
>>         Illegal operation on WrappedNative prototype object
> 
>> function checkServerOutput(client, postRequest) {
>>     var serializer = new XmlSerializer();
> 
> 
> Well the name of the constructor is XMLSerializer 
> https://developer.mozilla.org/en-US/docs/XMLSerializer and not 
> XmlSerializer so I would the above line to give an error "XmlSerializer"
> is not defined.

<palm slap to forehead>

yes, it was a spelling-counts error

I name my own classes/objects by a different convention, and imposed it on a 
standard (MDN/MSDN) library apparently.  I have to break that habit.


Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

XML Serializer Object Method Error Five By Five <5x5@5x5.com.invalid> - 2012-11-14 08:04 +0000
  Re: XML Serializer Object Method Error Martin Honnen <mahotrash@yahoo.de> - 2012-11-14 11:31 +0100
    Re: XML Serializer Object Method Error Five By Five <5x5@5x5.com.invalid> - 2012-11-14 11:12 +0000

csiph-web