Smile 笑容

Prototype bug of convert the xml data to integer

Prototype is a javascript framework.

maybe i find a bug:

the data like this:

<xml><ajaxResponse><fieldname>abc</fieldname><content>000123</content></ajaxResponse>

input this data, and use ajaxResponse[0].content[0].data will be send the “123”, not the “000123”.

use the var_dump.js to see that, will be see –>data = 123;

so, i think will be a bug of Prototype.

 

i can’t fix it, somebody can help me?