domenicdenicola
9,235 views
27 slides
Jan 05, 2015
Slide 1 of 27
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
About This Presentation
Two years ago I inherited jsdom, a project of breathtaking scope. In essence, it aims to simulate a browser in JavaScript, by implementing JavaScript versions of a wide variety of web standards (much more than just the DOM). While maintaining jsdom for the last two years, and eventually bringing it ...
Two years ago I inherited jsdom, a project of breathtaking scope. In essence, it aims to simulate a browser in JavaScript, by implementing JavaScript versions of a wide variety of web standards (much more than just the DOM). While maintaining jsdom for the last two years, and eventually bringing it to a 1.0 release, I learned an incredible amount about the web. I want to share with you what I’ve learned: the history of the standards and implementations of them that make up the web; the interaction between seemingly-disparate parts of the platform; and all about the strange APIs we’ve come to know and love. You should walk away from this talk with a new appreciation for how browsers work—and how, through the ongoing effort of a community of contributors and package maintainers, we’ve been able to recreate one in pure JavaScript.
Size: 3.02 MB
Language: en
Added: Jan 05, 2015
Slides: 27 pages
Slide Content
The jsdom
What is jsdom ? A JavaScript implementation of the DOM*, for use with Node.js** * Actually much more than just the DOM ** Actually it runs in more places than just Node.js
2 years ago…
jsdom in action what jsdom implements the future of jsdom
Tmpvar /jsdom#950 “In the browser, you can do: window.document.querySelectorAll ([ 'link[type="text/xml"]' , 'link[type="application/ rss+xml "]' , 'link[type="application/ atom+xml "]' ]); This doesn't work in jsdom .”