[TxMt] [ANN] Select Balanced HTML Tag!!!3!

Thomas Aylott - subtleGradient textmate at subtleGradient.com
Thu Nov 29 16:24:54 UTC 2007


On Nov 29, 2007, at 7:09 AM, Hans-Jörg Bibiko wrote:

> Hi,
>
> I found an "error". If one writes e.g. <hr/> instead of <hr> or <hr / 
> > the parser doesn't ignore <hr/>. It gives a warning. Should I  
> leave it as it is or should I get rid of it by using a pre-parsing?
>
> By my opinion a warning would be fine to keep your code clean.
>
> Any comments?
>
> --Hans

Well, <hr/> is perfectly valid xhtml, you only have to make it <hr />  
if you want it backwards compatible with html 4.

Ideally it would treat <hr/> and <hr /> and <hr> exactly the same.

—Thomas Aylott – subtleGradient—


More information about the textmate mailing list