3 ms·
Because maybe there's more than one body? :P [Seriously though, I have no idea]
by nbpoole 16y ago
Because maybe there's more than one body? :P
[Seriously though, I have no idea]
- bauchidgw 16y agothere is nothing i havent seen before.... a multi million euro betting site (sponsor of real madrid) had this for years until i suggested it was a bad idea (and a lots of dev man days later......)
- long 16y agogetElementsByTagName always returns a NodeList, which is an Array-like object. You want the first thing in the array.
- generalk 16y agoYou know, you're probably fine if you always assume there's only one body tag. That said, I've seen this and worse when looking at the output of highly-paid web dev departments at large companies. One site we recently saw had five opening html tags, head sections, and body tags. All the head sections were different, and none were closed, including roughly half the content tags we saw. It's a testament to the "be loose in what you accept" mantra of the web, and to the browser devs themselves, that this monstrosity rendered properly. I'm not saying "enterprise" developers are bad by definition, but the enterprise sure is large enough for the bad ones to sneak by.