firefox - IE8 & FF XHTML error or badly formed span? -


I recently updated IE8 & amp; FF

Designer, where JS creates some span tags for the layout dynamically (they were keeping round corner graphics on some tabs) Now XHTML, in JS, looked like this: & lt; Span class = "leftcorner" /> gt; & Lt; Span class = "right corner" /> And worked perfectly!

As we all know that dynamically rendering elements in JS can be quite processor intensive, so I moved elements of JS above the top of the page source.

... And it was not working ... Not only does this work, it crashes IE8. Fix was simple, i.e. interval: & lt; Span class = "leftcorner" & gt; & Lt; / Span & gt;

I'm a bit confused by this as far as I'm aware & lt; Span class = "leftcorner" /> Wholly valid XHTML is! Second, it works dynamically, but not in XHTML?!?!?

Can anyone put any light on it or is it just another strange phenomenon of the browser?

I think one of the answers will answer your question.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -