Sticky Posts
Sep 1, 2009
PHP DOM getElementsByTagName() Made Case-Insensitive
Even if HTML allows case insensitive tags, PHP and it's getElementsByTagName is case-sensitive. I don't know about you but for me, this is really messed up. I think you remeber the ultimate el_dom_childrenByTagCB function I shared here.
I'm sharing now it's lighter sister: el_dom_childrenByTagName. The one it evolved from. It's the same without bells and whistles [callbacks]. And it's CASE INSENSITIVE like it's supposed to.
Registration is quick, painless and worth its weight in gold.

