Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

strophe plugin muc has not supported attributes in IE #111

Open
hamradiodv opened this issue Apr 3, 2014 · 0 comments
Open

strophe plugin muc has not supported attributes in IE #111

hamradiodv opened this issue Apr 3, 2014 · 0 comments

Comments

@hamradiodv
Copy link

When i using muc plugin in IE, i has serious problem with unsupported attributes.

In code:

XmppRoom._parsePresence = function(pres) {
var a, c, c2, data, _i, _j, _len, _len1, _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7;
data = {};
a = pres.attributes;
data.nick = Strophe.getResourceFromJid(a.from.textContent);
data.type = ((_ref = a.type) != null ? _ref.textContent : void 0) || null;

Result

In IE "a.from" is not supported !
"textContent" is not supported too !

I make some workaround this problem:

  var from = (a.from != null) ? a.from.textContent : a[2].nodeValue;
  data.nick = Strophe.getResourceFromJid(from);

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant