XML descendants internal method called on incompatible Date

I just got this errormessage in Firebug's console. What the F? What’s wrong with this code?

var d=new Date();
console.info("offset: %s, utc hours: %s", d..getTimezoneOffset(), d.getUTCHours());

Oops. Notice the two dots before getTimezoneOffset.

That triggers an E4X error, which is apparently switched on in the Firebug console…

 
blog\xml_descendants_internal_method_called_on_incompatible_date.txt · Last modified: 2007-07-14T18:15 by doekman
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki