You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What am I expected to see?
Both documents should alert "Connected", but only the .html variant works. Tested browsers: FF5, Safari 5.1, Chrome
What might cause the issue?
In a cross-domain environment, a "SCRIPT" tag instead of a "script" tag is inserted. XHTML is based on XML and is case insenstive. XHTML tags should be in lower case (http://www.w3.org/TR/xhtml1/#h-4.2). The following fix in /socket.io/
socket.io.js, line 1539, should solve the issue:
- , script = document.createElement('script');
The text was updated successfully, but these errors were encountered:
Socket.io client library does not work when using it with XHTML documents with cross domain access
How can I reproduce the problem?
What am I expected to see?
Both documents should alert "Connected", but only the .html variant works. Tested browsers: FF5, Safari 5.1, Chrome
What might cause the issue?
In a cross-domain environment, a "SCRIPT" tag instead of a "script" tag is inserted. XHTML is based on XML and is case insenstive. XHTML tags should be in lower case (http://www.w3.org/TR/xhtml1/#h-4.2). The following fix in /socket.io/
socket.io.js, line 1539, should solve the issue:
The text was updated successfully, but these errors were encountered: