[Twisted-Python] woven bug?

James Y Knight foom at fuhm.net
Mon Oct 20 16:07:30 EDT 2003


On Monday, October 20, 2003, at 12:42 PM, Federico Di Gregorio wrote:

> hey, i was not aware of a difference between "<tag/>" and 
> "<tag></tag>".
> i always tought the first was just a contraction for the second. i'll 
> go
> re-read the xml specs. thank you very much.

It is, *if* you're talking to an XML parser. The issue is that XHTML is 
supposed to be backwards compatible with HTML4 parsers. They will 
interpret the <tag /> notation to mean the same thing as <tag>. Thus, 
using a block level element like div with that notation means an HTML4 
parser will think it never gets closed and will cause rendering errors.

James





More information about the Twisted-Python mailing list