[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [PATCH] export to various flavors of (X)HTML
From: |
Rick Frankel |
Subject: |
Re: [O] [PATCH] export to various flavors of (X)HTML |
Date: |
Mon, 22 Apr 2013 21:00:19 -0400 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Sat, Apr 20, 2013 at 10:59:32AM +0800, Eric Abrahamsen wrote:
>
> The " />" style doesn't validate for html4, that's what I was going on.
> It certainly doesn't make my browser explode, but I wanted that little
> green checkmark! If we can live with that, that's fine, or I can try to
> come up with a less hacky way of handling closing tags -- a macro
> maybe.
It should validate. According to the w3c compatibility guidelines
(http://www.w3.org/TR/xhtml1/guidelines.html):
C.2. Empty Elements
Include a space before the trailing / and > of empty elements,
e.g. <br />, <hr /> and <img src="karen.jpg" alt="Karen" />.
Also, use the minimized tag syntax for empty elements, e.g. <br />,
as the alternative syntax <br></br> allowed by XML gives uncertain
results in many existing user agents.
C.3. Element Minimization and Empty Element Content
Given an empty instance of an element whose content model is not EMPTY
(for example, an empty title or paragraph) do not use the minimized
form (e.g. use <p> </p> and not <p />).
>
> The xmns declaration, on the other hand, seems quite meaningless for
> anything that isn't xhtml (even if it doesn't actually break), and it's
> only a couple of lines of code to deal with, I'd rather keep that in
> there...
fair enough.
rick
- [O] [PATCH] export to various flavors of (X)HTML, Eric Abrahamsen, 2013/04/19
- Re: [O] [PATCH] export to various flavors of (X)HTML, Rick Frankel, 2013/04/19
- Re: [O] [PATCH] export to various flavors of (X)HTML, Eric Abrahamsen, 2013/04/19
- Re: [O] [PATCH] export to various flavors of (X)HTML,
Rick Frankel <=
- Re: [O] [PATCH] export to various flavors of (X)HTML, Eric Abrahamsen, 2013/04/23
- Re: [O] [PATCH] export to various flavors of (X)HTML, Samuel Wales, 2013/04/23
- Re: [O] [PATCH] export to various flavors of (X)HTML, Carsten Dominik, 2013/04/23
- Re: [O] [PATCH] export to various flavors of (X)HTML, Eric Abrahamsen, 2013/04/23
- Re: [O] [PATCH] export to various flavors of (X)HTML, François Pinard, 2013/04/23
- Re: [O] [PATCH] export to various flavors of (X)HTML, Christian Wittern, 2013/04/23
- Re: [O] [PATCH] export to various flavors of (X)HTML, François Pinard, 2013/04/24
- Re: [O] [PATCH] export to various flavors of (X)HTML, Eric Abrahamsen, 2013/04/25
- Re: [O] [PATCH] export to various flavors of (X)HTML, Rick Frankel, 2013/04/26
- Re: [O] [PATCH] export to various flavors of (X)HTML, Eric Abrahamsen, 2013/04/26