oyvindkinsey / easyXDM

A javascript library providing cross-browser, cross-site messaging/method invocation.

Home Page:http://easyxdm.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Maybe a bug in IE's hashTransport

j1anb1n opened this issue · comments

I found a bug here:
https://github.com/oyvindkinsey/easyXDM/blob/master/src/stack/HashTransport.js#L57

while the config.remote is end up with '&', like this:

http://xxx.com/index.html?a=1&b=2&

if you append a hash that start with a number, that will make IE to reload the page, like this:

http://xxx.com/index.html?a=1&b=2&#2_xxxxxxx

a simple way to fix this bug is just remove msgNr in HashTransport then the hash will start with "".

The number is there for a reason :)

Feel free to submit a pull req where a prefix is added to disambiguate between a real message and other valid values.