Changes for version 0.03
- • The errors produced when the URL passed to open is from the wrong site/port/etc. are now DOMException objects. • The open method now clears the responseText and the request headers. • The send method now raises a readystatechange event on send- ing (without changing the readyState) and for the ‘loading’ state (3). • The setRequestHeader method now dies when called at a time other than between open and send. • setRequestHeader now throws a syntax error when the argu- ments do not conform to HTTP syntax. • The send method no longer runs scripts on HTML pages that it fetches. • setRequestHeader now ignores certain HTTP headers for the sake of security and HTTP compliancy. • The send method now dies when the readyState is not OPENED or when it is called recursively. • Assigning null to onreadystatechange no longer causes warn- ings and errors during event dispatch. • The argument to the send method is now ignored for GET and HEAD requests.
Changes for version 0.03
- • Infinite or external redirects are now turned into errors (NETWORK_ERRs) if async is false. In any case, they now cause all information pertaining to the response to be discarded. • getResponseHeader and getAllResponseHeaders now produce the correct type of error (INVALID_STATE_ERR) when the state is UNSENT or OPENED. • As a temporary hack to get someone’s code working, this mod- ule adds textContent to XML::DOM::Lite::Node, if it does not already exist.
Modules
WWW::Scripter plugin that provides the XMLHttpRequest object
Provides
in lib/WWW/Scripter/Plugin/Ajax/_xml_stuff.pm
in lib/WWW/Scripter/Plugin/Ajax.pm
in lib/WWW/Scripter/Plugin/Ajax.pm