Essentially, not all tags "require" a closing tag when using the HTML
dtd (not XHTML) - does HAML have a mode where he ignores these closing
tags, and thus makes the file size smaller?
> Essentially, not all tags "require" a closing tag when using the HTML
> dtd (not XHTML) - does HAML have a mode where he ignores these closing
> tags, and thus makes the file size smaller?
So can we expand that list to include the other tags mentioned in that
google article?
Some of them are not just "self-closing" tags like <br> and <meta>,
but rather tags with content - like <p> and <li>
On Jun 26, 10:22 am, Nathan Weizenbaum <nex...@gmail.com> wrote:
> > Essentially, not all tags "require" a closing tag when using the HTML
> > dtd (not XHTML) - does HAML have a mode where he ignores these closing
> > tags, and thus makes the file size smaller?
On Fri, Jun 26, 2009 at 12:34 AM, Evgeny <evgeny.zis...@gmail.com> wrote:
> So can we expand that list to include the other tags mentioned in that
> google article?
> Some of them are not just "self-closing" tags like <br> and <meta>,
> but rather tags with content - like <p> and <li>
> On Jun 26, 10:22 am, Nathan Weizenbaum <nex...@gmail.com> wrote:
> > Haml does indeed omit the closing tags of self-closing tags such as "br"
> and
> > "meta" in HTML mode.
> > On Fri, Jun 26, 2009 at 12:19 AM, Evgeny <evgeny.zis...@gmail.com>
> wrote:
> > > Essentially, not all tags "require" a closing tag when using the HTML
> > > dtd (not XHTML) - does HAML have a mode where he ignores these closing
> > > tags, and thus makes the file size smaller?
*Keep in mind this is still vulnerable to the issue Nathan explains: *
On Sat, Jun 27, 2009 at 07:25, Nathan Weizenbaum <nex...@gmail.com> wrote: > Unless you can come up with a way of removing the tags that is guaranteed > never to produce this sort of change, it's not safe to include it.
Nathan is right. You have to implement the logic on top of my monkeypatch to *keep* closing tags if the following content is inline tags or text nodes but should not be nested under the tag in question.