1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
|
Document: WM-020 P. Webb
Category: Research 2017.11.14
Nintendo Switch browser capabilities
Abstract
Don't get your hopes up
Body
Before the Switch, Nintendo had a nifty HTML5 framework for game
development called Nintendo Web Framework. It used to have its own
page on Wikipedia, no idea where it disappeared to.
Anyhoo, I was looking forward to its return so I could make games for
the Switch using my existing skillset. Due to Nintendo's enthusiasm
for the Unity and Unreal game engines, it doesn't seem like that's
happening anytime soon if ever, much to the chagrin of aspiring game
developers (and Switch owners) like myself. However, I was curious to
know what the built-in browser is capable of. Here's what I found[1],
with my Switch's OS on version `4.0.1`:
1. Parsing Rules
- ✅ `<!DOCTYPE html>` triggers standards mode
- ✅ HTML5 tokenizer
- ✅ HTML5 tree building
- ✅ Parsing inline SVG
- ✅ Parsing inline MathML
2. Elements
- ✅ Embedding custom non-visible data
2.1. New or modified elements
- ✅ Section elements
- ✅ `section` element
- ✅ `nav` element
- ✅ `article` element
- ✅ `aside` element
- ✅ `header` element
- ✅ `footer` element
- ✅ Grouping content elements
- ✅ `main` element
- ✅ `figure` element
- ✅ `figcaption` element
- ✅ reversed attribute on the `ol` element
- ⚪️ Text-level semantic elements
- ❌ download attribute on the `a` element
- ✅ ping attribute on the `a` element
- ✅ `mark` element
- ✅ `ruby`, `rt`, and `rp` elements
- ❌ `time` element
- ❌ `data` element
- ❌ `wbr` element
- ⚪️ Interactive elements
- ✅ `details` element
- ✅ `summary` element
- ❌ `menu` element of type `toolbar`
- ❌ `menu` element of type `context`
- ❌ `dialog` element
2.2. Global attributes or methods
- ✅ `hidden` attribute
- ✅ Dynamic markup insertion
- ✅ `outerHTML` property
- ✅ `insertAdjacentHTML` function
3. Forms
3.1. Field types
- ✅ `input type=text`
- ✅ Minimal element support
- ✅ Selection Direction
- ✅ `input type=search`
- ✅ Minimal element support
- ✅ `input type=tel`
- ✅ Minimal element support
- ✅ `input type=url`
- ✅ Minimal element support
- ✅ Field validation
- ✅ `input type=email`
- ✅ Minimal element support
- ✅ Field validation
- ❌ `input type=date`
- ❌ Minimal element support
- ❌ Custom user-interface
- ❌ Value sanitization
- ❌ `min` attribute
- ❌ `max` attribute
- ❌ `step` attribute
- ❌ `stepDown()` method
- ❌ `stepUp()` method
- ❌ `valueAsDate()` method
- ❌ `valueAsNumber()` method
- ❌ `input type=month`
- ❌ Minimal element support
- ❌ Custom user-interface
- ❌ Value sanitization
- ❌ `min` attribute
- ❌ `max` attribute
- ❌ `step` attribute
- ❌ `stepDown()` method
- ❌ `stepUp()` method
- ❌ `valueAsDate()` method
- ❌ `valueAsNumber()` method
- ❌ `input type=week`
- ❌ Minimal element support
- ❌ Custom user-interface
- ❌ Value sanitization
- ❌ `min` attribute
- ❌ `max` attribute
- ❌ `step` attribute
- ❌ `stepDown()` method
- ❌ `stepUp()` method
- ❌ `valueAsDate()` method
- ❌ `valueAsNumber()` method
- ❌ `input type=time`
- ❌ Minimal element support
- ❌ Custom user-interface
- ❌ Value sanitization
- ❌ `min` attribute
- ❌ `max` attribute
- ❌ `step` attribute
- ❌ `stepDown()` method
- ❌ `stepUp()` method
- ❌ `valueAsDate()` method
- ❌ `valueAsNumber()` method
- ❌ `input type=datetime-local`
- ❌ Minimal element support
- ❌ Custom user-interface
- ❌ Value sanitization
- ❌ `min` attribute
- ❌ `max` attribute
- ❌ `step` attribute
- ❌ `stepDown()` method
- ❌ `stepUp()` method
- ❌ `valueAsNumber()` method
- ✅ `input type=number`
- ✅ Minimal element support
- ✅ Custom user-interface
- ✅ Value sanitization
- ✅ Field validation
- ✅ `min` attribute
- ✅ `max` attribute
- ✅ `step` attribute
- ✅ `stepDown()` method
- ✅ `stepUp()` method
- ✅ `valueAsNumber()` method
- ✅ `input type=range`
- ✅ Minimal element support
- ✅ Custom user-interface
- ✅ Value sanitization
- ✅ `min` attribute
- ✅ `max` attribute
- ✅ `step` attribute
- ✅ `stepDown()` method
- ✅ `stepUp()` method
- ✅ `valueAsNumber()` method
- ✅ `input type=color`
- ✅ Minimal element support
- ✅ Custom user-interface
- ✅ Value sanitization
- ✅ `input type=checkbox`
- ✅ Minimal element support
- ✅ `indeterminate` property
- ✅ `input type=image`
- ✅ Minimal element support
- ✅ `width` property
- ✅ `height` property
- ⚪️ `input type=file`
- ✅ Minimal element support
- ✅ `files` property
- ❌ Directory upload support
- ✅ `textarea`
- ✅ Minimal element support
- ✅ `maxlength` attribute
- ✅ `wrap` attribute
- ✅ `select`
- ✅ Minimal element support
- ✅ `required` attribute
- ✅ `fieldset`
- ✅ Minimal element support
- ✅ `elements` attribute
- ✅ `disabled` attribute
- ❌ `datalist`
- ❌ Minimal element support
- ❌ `list` attribute for fields
- ✅ `output`
- ✅ Minimal element support
- ✅ `progress`
- ✅ Minimal element support
- ✅ `meter`
- ✅ Minimal element support
3.2. Fields
- ✅ Field validation
- ✅ `pattern` attribute
- ✅ `required` attribute
- ✅ Association of controls and forms
- ✅ `control` property on labels
- ✅ `form` property on fields
- ✅ `formAction` property on fields
- ✅ `formEnctype` property on fields
- ✅ `formMethod` property on fields
- ✅ `formNoValidate` property on fields
- ✅ `formTarget` property on fields
- ✅ `labels` property on fields
- ✅ Other attributes
- ✅ `autofocus` attribute
- ✅ `autocomplete` attribute
- ✅ `placeholder` attribute
- ✅ `multiple` attribute
- ✅ `dirname` attribute
- ✅ CSS selectors
- ✅ `:valid` selector
- ✅ `:invalid` selector
- ✅ `:optional` selector
- ✅ `:required` selector
- ✅ `:in-range` selector
- ✅ `:out-of-range` selector
- ✅ `:read-write` selector
- ✅ `:read-only` selector
- ✅ Events
- ✅ `oninput` event
- ✅ `onchange` event
- ✅ `oninvalid` event
3.3. Forms
- ✅ Form validation
- ✅ `checkValidity` method
- ✅ `noValidate` attribute
4. Web Components
- ❌ Custom elements
- ❌ Shadow DOM
- ✅ HTML templates
- ❌ HTML imports
5. Location and Orientation
- ❌ Geolocation
- ✅ Device Orientation
- ✅ Device Motion
6. Output
- ✅ Full screen support (prefixed)
- ❌ Web Notifications
7. Input
- ✅ Gamepad control
- ❌ Pointer Events
- ❌ Pointer Lock support
8. Communication
- ✅ Server-Sent Events
- ❌ Beacon
- ❌ Fetch
8.1. XMLHttpRequest Level 2
- ✅ Upload files
- ✅ Response type support
- ✅ Text response type
- ✅ Document response type
- ✅ `ArrayBuffer` response type
- ✅ `Blob` response type
8.2. WebSocket
- ✅ Basic socket communication
- ✅ `ArrayBuffer` and `Blob` support
9. Streams
- ❌ Readable streams
- ❌ Writable streams
10. Peer to Peer
10.1. Connectivity
- ✅ WebRTC 1.0 (prefixed)
- ❌ ObjectRTC API for WebRTC
- ❌ Data channel
10.2. Input
- ✅ Access the webcam
- ❌ Screen Capture
- ❌ Enumerate devices
10.3. Recording
- ❌ Media Stream recorder
11. User Interaction
11.1. Drag and drop
- ❌ Attributes
- ❌ `draggable` attribute
- ❌ `dropzone` attribute
- ❌ Events
- ❌ `ondrag` event
- ❌ `ondragstart` event
- ❌ `ondragenter` event
- ❌ `ondragover` event
- ❌ `ondragleave` event
- ❌ `ondragend` event
- ❌ `ondrop` event
11.2. HTML editing
- ❌ Editing elements
- ❌ `contentEditable` attribute
- ❌ `isContentEditable` property
- ❌ Editing documents
- ❌ `designMode` attribute
- ❌ CSS selectors
- ❌ `:read-write` selector
- ❌ `:read-only` selector
- ❌ APIs
- ❌ `execCommand` method
- ❌ `queryCommandEnabled` method
- ❌ `queryCommandIndeterm` method
- ❌ `queryCommandState` method
- ❌ `queryCommandSupported` method
- ❌ `queryCommandValue` method
11.3. Clipboard
- ❌ Clipboard API and events
11.4. Spellcheck
- ✅ `spellcheck` attribute
12. Performance
- ✅ Workers
- ❌ Web Workers
- ❌ Shared Workers
12.1. Other
- ❌ `window.requestIdleCallback`
13. Security
- ✅ Web Cryptography API
- ✅ Content Security Policy 1
- ✅ Content Security Policy 2
- ✅ Cross-Origin Resource Sharing
- ❌ Subresource Integrity
- ✅ Cross-document messaging
13.1. Authentication
- ❌ Web Authentication / FIDO 2
- ❌ Credential Management
13.2. Iframes
- ✅ Sandboxed `iframe`
- ✅ `iframe` with inline contents
14. Payments
- ❌ Web payments
15. Video
- ✅ `video` element
- ✅ Subtitles
- ✅ Audio track selection
- ✅ Video track selection
- ✅ Poster images
- ✅ Codec detection
15.1. Video codecs
- ❌ MPEG-4 ASP support
- ✅ H.264 support
- ❌ H.265 support
- ❌ Ogg Theora support
- ❌ WebM with VP8 support
- ❌ WebM with VP9 support
16. Audio
- ✅ `audio` element
- ✅ Loop audio
- ✅ Preload in the background
16.1. Advanced
- ✅ Web Audio API (prefixed)
- ❌ Speech Recognition
- ❌ Speech Synthesis
16.2. Audio codecs
- ❌ PCM audio support
- ❌ MP3 support
- ❌ AAC support
- ❌ Dolby Digital support
- ❌ Dolby Digital Plus support
- ❌ Ogg Vorbis support
- ❌ Ogg Opus support
- ❌ WebM with Vorbis support
- ❌ WebM with Opus support
17. Streaming
- ❌ Media Source extensions
- ❌ DRM support
17.1. Adaptive bit rate
- ❌ Dynamic Adaptive Streaming / MPEG-DASH
- ✅ HTTP Live Streaming / HLS
17.2. Codecs
- ❌ Video codecs
- ❌ MP4 with H.264 support
- ❌ MP4 with H.265 support
- ❌ TS with H.264 support
- ❌ TS with H.265 support
- ❌ WebM with VP8 support
- ❌ WebM with VP9 support
- ❌ Audio codecs
- ❌ MP4 with AAC support
- ❌ MP4 with Dolby Digital support
- ❌ MP4 with Dolby Digital Plus support
- ❌ TS with AAC support
- ❌ TS with Dolby Digital support
- ❌ TS with Dolby Digital Plus support
- ❌ WebM with Vorbis support
- ❌ WebM with Opus support
18. Responsive Images
- ✅ `picture` element
- ✅ `srcset` attribute
- ✅ `sizes` attribute
19. 2D Graphics
- ✅ Canvas 2D graphics
19.1. Drawing primitives
- ✅ Text support
- ✅ Path support
- ✅ Ellipse support
- ✅ Dashed line support
- ✅ System focus ring support
19.2. Features
- ❌ Hit testing support
- ✅ Blending modes
19.3. Image export formats
- ✅ PNG support
- ✅ JPEG support
- ❌ JPEG-XR support
- ✅ WebP support
20. 3D and VR
20.1. 3D Graphics
- ❌ WebGL
- ❌ WebGL 2
20.2. VR Headset
- ❌ WebVR
21. Animation
- ❌ Web Animations API
- ✅ `window.requestAnimationFrame`
22. Web Applications
22.1. Offline resources
- ✅ Application Cache
- ❌ Service Workers
- ❌ Push Messages
22.2. Content and Scheme handlers
- ❌ Custom scheme handlers
- ❌ Custom content handlers
23. Storage
23.1. Key-value storage
- ✅ Session Storage
- ✅ Local Storage
23.2. Database storage
- ❌ IndexedDB
- ❌ Objectstore `Blob` support
- ❌ Objectstore `ArrayBuffer` support
24. Files
24.1. Reading files
- ✅ Basic support for reading files
- ✅ Create a `Blob` from a file
- ✅ Create a Data URL from a `Blob`
- ✅ Create an `ArrayBuffer` from a `Blob`
- ✅ Create a Blob URL from a `Blob`
24.2. Accessing the file system
- ❌ FileSystem API
25. Scripting
25.1. Script execution
- ✅ Asynchronous script execution
- ✅ Deferred script execution
- ❌ Script execution events
- ✅ Runtime script error reporting
25.2. ECMAScript 5
- ✅ JSON encoding and decoding
25.3. ECMAScript 6
- ❌ Modules
- ✅ Classes
- ✅ Arrow functions
- ✅ Promises
- ✅ Template strings
- ✅ Typed arrays
- ✅ Internationalization
25.4. ECMAScript 7
- ❌ Async and Await
25.5. Other APIs
- ✅ Base64 encoding and decoding
- ✅ Mutation Observer
- ✅ URL API
- ❌ Encoding API
26. Other
- ✅ Session history
- ✅ Page Visibility
- ✅ Text selection
- ✅ Scroll into view
And so…
The Nintendo Switch browser scored 339 out of 555 potential
points. Not bad for browsing but it certainly isn't equipped for
game development. Lack of support for WebGL, WebM, the Web
Animations API, and IndexedDB certainly inhibits the kinds of
games you could make, so this might explain their silence on the
NWF front.
Oh well.
If you have a Switch and want to see these results for yourself,
here are the steps needed to access the web browser:
1. Go to `System Settings` > `Internet` > `Internet Settings`
2. Select the network you want to join or are already connected to
3. Select `Change Settings`
4. Select `DNS Settings` and choose `Manual`
5. Under `DNS Settings`, select `Primary DNS`
6. Replace the contents with `045.055.142.122` and hit `OK`
7. Save!
8. Connect to the network you just modified DNS settings for, and
you should see a message saying "Registration is required to
use this network"
9. Proceed and you'll be redirected to Google, where you can
search for DuckDuckGo and use that search engine instead
Extra stuff
The useragent Nintendo is going with is `Mozilla/5.0 (Nintendo
Switch; WifiWebAuthApplet) AppleWebKit/601.6 (KHTML, like Gecko)
NF/4.0.0.7.9 NintendoBrowser/5.1.0.15785`. I am SO glad their
useragent isn't the usual fugly spaghetti soup that most browsers
come up with. The screen size is 1280 by 720.
I remember when people made websites for the Nintendo DS, back
when the browser (made by Opera) came in a *cartridge*[2]. I still
have mine btw. It also came with RAM ("Memory Expansion Pak") you
put in the GBA slot for a whopping 8MB. IGN gave it a 3.5 out of
10. HAHAHAHAHAHA
Good times. 🕸
References
[1] <http://html5test.com/s/21ae2339d0366534.html>
[2] <https://www.nintendo.co.jp/ds/browser/index.html>
|