Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Standards compliance for HTML is huge. Hopefully everyone switches to it ASAP.


DOM\HTMLDocument is a huge boon. Niels Dosche incorporated lexbor into PHP to do so, and it maintains the same interface as DOMDocument once it’s instantiated.

In case people aren’t aware, DOMDocument is dangerous. You can’t parse HTML with an XML parser; so everyone currently using DOMDocument for HTML would benefit by replacing that with DOM\HTMLDocument immediately, eliminating both security and corruption issues.

Have you tried using an HTML parser?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: