aredridel / html5

Event-driven HTML5 Parser in Javascript
http://dinhe.net/~aredridel/projects/js/html5/
MIT License
590 stars 168 forks source link

Why require('buffer') and parser._() for? #86

Closed danyaPostfactum closed 11 years ago

danyaPostfactum commented 11 years ago

As I see, these things are not used, what are their purposes? Unnecessary buffer require is sensitive for browser environment.

aredridel commented 11 years ago

Go ahead and remove buffer, since it's global in Node.

I'm not sure what you mean by parser._()

aredridel commented 11 years ago

Oh. Doh. Parser.prototype._ =. That's a stub for internationalization. Feel free to strip it out.

danyaPostfactum commented 11 years ago

Thanks. Unfortunately buffer is also required by assert module..