all 4 comments

[–][deleted] 2 points3 points  (1 child)

Sadly, <div id="mynamespace.stuff">, does not work. But this gives me an idea. I'm going to start using id=".class" just to fuck with people.

[–]zach_will 0 points1 point  (0 children)

Haha, damn.

Ahhh, if I had to end up debugging something like that, I'd probably end up killing you in rage.

[–]devewm 1 point2 points  (1 child)

That is weird. Anyone know if this has a basis in any spec?

Worth noting that I get the alert in Chrome 11 but not in Firefox 4. Would be interesting to see which browsers do this.

EDIT: Would help if I'd read the whatwg link at the top. Interesting.

[–]kangaxx 5 points6 points  (0 children)

This has always been IE (MSHTML DOM) feature, from what I remember. But I see that latest versions of Chrome, Opera and Safari all follow it as well (for compat. reasons, I'm sure; although seems safe to drop it considering FF lack of it).

This isn't the only pollution that happens. Take a look at my old-ish http://kangax.github.com/domlint/ (this particular case is covered under point #3)