Skip to content

Commit 24c3017

Browse files
committed
Fixed; make Socket.IO XHTML doctype compatible (fixes #460 from server)
1 parent 7a863e6 commit 24c3017

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/socket.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136

137137
if (this.isXDomain()) {
138138
var insertAt = document.getElementsByTagName('script')[0]
139-
, script = document.createElement('SCRIPT');
139+
, script = document.createElement('script');
140140

141141
script.src = url + '&jsonp=' + io.j.length;
142142
insertAt.parentNode.insertBefore(script, insertAt);

lib/transports/jsonp-polling.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@
6868
);
6969

7070
if (!this.form) {
71-
var form = document.createElement('FORM')
72-
, area = document.createElement('TEXTAREA')
71+
var form = document.createElement('form')
72+
, area = document.createElement('textarea')
7373
, id = this.iframeId = 'socketio_iframe_' + this.index
7474
, iframe;
7575

@@ -144,7 +144,7 @@
144144

145145
JSONPPolling.prototype.get = function () {
146146
var self = this
147-
, script = document.createElement('SCRIPT')
147+
, script = document.createElement('script')
148148
, query = io.util.query(
149149
this.socket.options.query
150150
, 't='+ (+new Date) + '&i=' + this.index

0 commit comments

Comments
 (0)