git ssb

0+

cel / dillo-dat



Commit af30c59b107e087b18dd2d2bb88456115ac75b13

Fix html validation errors

cel committed on 7/16/2017, 1:31:50 AM
Parent: ed8701f65d925aa33b1623cb287a7cb11b357fa0

Files changed

dat.dpichanged
package.jsonchanged
dat.dpiView
@@ -167,9 +167,9 @@
167167 name: '..',
168168 type: 'updir'
169169 })
170170 }
171- self.socket.end(h('html', [
171 + self.socket.end('<!doctype html>' + h('html', [
172172 h('head', [
173173 h('title', pathname)
174174 ]),
175175 h('body', [
@@ -285,14 +285,14 @@
285285 return process.exit(0)
286286 }
287287
288288 this.writeHeader('text/html')
289- self.socket.end(h('html', [
289 + self.socket.end('<!doctype html>' + h('html', [
290290 h('head', [
291291 h('title', 'Dat')
292292 ]),
293293 h('body', [
294- h('form', [
294 + h('form', {action: ''}, [
295295 h('input', {type: 'submit', name: 'restart', value: 'Restart'}),
296296 h('input', {type: 'hidden', name: 'reload', value: self.url})
297297 ]),
298298 h('h3', 'Archives'),
@@ -314,9 +314,9 @@
314314 'None'
315315 ] : archive.swarm.connections.map(function (stream) {
316316 return h('div', h('code', stream.address))
317317 }),
318- h('form', [
318 + h('form', {action: ''}, [
319319 h('input', {type: 'hidden', name: 'key', value: key}),
320320 h('input', {type: 'hidden', name: 'reload', value: self.url}),
321321 h('input', {type: 'submit', name: 'unswarm', value: 'unswarm'}),
322322 ])
package.jsonView
@@ -1,9 +1,9 @@
11 {
22 "dependencies": {
33 "asyncmemo": "^1.0.0",
44 "dat-dns": "^1.3.2",
5- "hyperscript": "^1.4.7",
5 + "hyperscript": "^2.0.7",
66 "hyperdrive": "^9.4.7",
77 "hyperdiscovery": "^6.0.4",
88 "parse-dat-url": "^2.0.1"
99 },

Built with git-ssb-web