[whatwg] self-closing tags in html5

Ian Hickson ian at hixie.ch
Fri Jul 29 10:34:18 PDT 2011


On Tue, 3 May 2011, Roger Hågensen wrote:
> 
> Is there a need for say a <pbr> ? (short for paragraph break) default 
> behavior being the same as two <br>.

Isn't that just two paragraphs separate from each other?


  <p> ... </p> <p> ... </p>


> Then again getting folks to change would be hard, so maybe a <cp> and 
> </cp> would make more sense. (closed paragraph)

How is that different from <p>?


> Myself I always tend to use <br><br> for readability when I don't feel 
> like the text should be split into different paragraphs. And I use <p> 
> and </p> for it's intended purpose, to markup actual paragraphs.
> 
> Now if <p> was turned into a synonym for <br><br> and </p> simply 
> ignored, I'd be happy to move to using say <cp> and </cp> for 
> paragraphs.

I'm pretty sure that's a non-starter from a compatibility persepective.


On Sat, 14 May 2011, yuhong wrote:
>
> FYI, the reason is that IE5 supported mixing foreign XML content into 
> HTML long before HTML5 added this support. It is used for VML for 
> example.

Note that this support has been removed from IE10.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'


More information about the whatwg mailing list