background preloader

JavaScript

Facebook Twitter

Pure JavaScript HTML Parser. Recently I was having a little bit of fun and decided to go about writing a pure JavaScript HTML parser.

Pure JavaScript HTML Parser

Some might remember my one project, env.js, which ported the native browser JavaScript features to the server-side (powered by Rhino). One thing that was lacking from that project was an HTML parser (it parsed strict XML only). I’ve been toying with the ability to port env.js to other platforms (Spidermonkey derivatives and the ECMAScript 4 Reference Implementation) and if I were to do so I would need an HTML parser. Because of this fact it became easiest to just write an HTML parser in pure JavaScript. Javascript - Introduction au langage Javascript - CommentCaMarche. Le Javascript est un langage de script incorporé dans un document HTML.

Javascript - Introduction au langage Javascript - CommentCaMarche

Historiquement il s'agit même du premier langage de script pour le Web. Ce langage est un langage de programmation qui permet d'apporter des améliorations au langage HTML en permettant d'exécuter des commandes du côté client, c'est-à-dire au niveau du navigateur et non du serveur web. Ainsi le langage Javascript est fortement dépendant du navigateur appelant la page web dans laquelle le script est incorporé, mais en contrepartie il ne nécessite pas de compilateur, contrairement au langage Java, avec lequel il a longtemps été confondu. Notre vidéo Chargement de votre vidéo. Tout JavaScript.com [Tutoriaux javascript et PHP] - Scripts, Tutoriaux, Forums pour webmasters et développeurs.