202px-XML.svg Pure JavaScript HTML ParserImage via Wikipedia

Recently I was having a little bit of fun and decided to go about writing a 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.

More at John Resig

Reblog this post [with Zemanta]
These icons link to social bookmarking sites where readers can share and discover new web pages.
  • StumbleUpon
  • del.icio.us
  • bodytext
  • Facebook
  • Fark
  • Sphinn
  • Technorati
  • Mixx
  • Google
  • Ma.gnolia
  • MisterWong
  • Reddit
  • TwitThis
  • Propeller

Tags: , , , , , , ,

Your Ad Here