One option would be making the tokenizer check if an end tag has the name 'br' and turn it into a start tag in the tokenizer. This assumes that SVG and MathML won't be able to introduce an element whose local name is 'br' anyway. -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/