Skip to content

Commit

Permalink
Fixed; make Socket.IO XHTML doctype compatible (fixes #460 from server)
Browse files Browse the repository at this point in the history
  • Loading branch information
rauchg committed Sep 3, 2011
1 parent 7a863e6 commit 24c3017
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@

if (this.isXDomain()) {
var insertAt = document.getElementsByTagName('script')[0]
, script = document.createElement('SCRIPT');
, script = document.createElement('script');

script.src = url + '&jsonp=' + io.j.length;
insertAt.parentNode.insertBefore(script, insertAt);
Expand Down
6 changes: 3 additions & 3 deletions lib/transports/jsonp-polling.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@
);

if (!this.form) {
var form = document.createElement('FORM')
, area = document.createElement('TEXTAREA')
var form = document.createElement('form')
, area = document.createElement('textarea')
, id = this.iframeId = 'socketio_iframe_' + this.index
, iframe;

Expand Down Expand Up @@ -144,7 +144,7 @@

JSONPPolling.prototype.get = function () {
var self = this
, script = document.createElement('SCRIPT')
, script = document.createElement('script')
, query = io.util.query(
this.socket.options.query
, 't='+ (+new Date) + '&i=' + this.index
Expand Down

0 comments on commit 24c3017

Please sign in to comment.