From carisenda at gmail.com Tue Aug 5 05:09:52 2008 From: carisenda at gmail.com (Stephen Stewart) Date: Tue, 5 Aug 2008 13:09:52 +0100 Subject: [html5] self-closing tags in html5 Message-ID: Hi, No question too stupid, eh? Well here goes... I was reading a presentation on HTML5[1] which included this: --- text/html: boilerplate --- Why is the meta element self-closing? I thought self closing tags were a product of XML? I read the Tokenization section of the HTML5 Editor's draft (which I think is relevant, I may be wrong) but it sailed right over my head. [1] http://simon.html5.org/presentations/html5-geekmeet.en Thanks, Stephen From ian at hixie.ch Tue Aug 5 05:20:56 2008 From: ian at hixie.ch (Ian Hickson) Date: Tue, 5 Aug 2008 12:20:56 +0000 (UTC) Subject: [html5] self-closing tags in html5 In-Reply-To: References: Message-ID: On Tue, 5 Aug 2008, Stephen Stewart wrote: > > I was reading a presentation on HTML5[1] which included this: > --- > text/html: boilerplate > > > > > > --- > > Why is the meta element self-closing? I thought self closing tags were a > product of XML? In HTML5 we've allowed the / on void elements (like , ,
, , etc), to ease migration to and from XML. This is defined here (step 6): http://www.whatwg.org/specs/web-apps/current-work/#start See also: http://wiki.whatwg.org/wiki/FAQ#Should_I_close_empty_elements_with_.2F.3E_or_.3E.3F HTH, -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From carisenda at gmail.com Tue Aug 5 05:25:05 2008 From: carisenda at gmail.com (Stephen Stewart) Date: Tue, 5 Aug 2008 13:25:05 +0100 Subject: [html5] self-closing tags in html5 In-Reply-To: References: Message-ID: On 5 Aug 2008, at 13:20, Ian Hickson wrote: > On Tue, 5 Aug 2008, Stephen Stewart wrote: >> >> I was reading a presentation on HTML5[1] which included this: >> --- >> text/html: boilerplate >> >> >> >> >> >> --- >> >> Why is the meta element self-closing? I thought self closing tags >> were a >> product of XML? > > In HTML5 we've allowed the / on void elements (like , , >
, > , etc), to ease migration to and from XML. > > This is defined here (step 6): > http://www.whatwg.org/specs/web-apps/current-work/#start > > See also: > http://wiki.whatwg.org/wiki/FAQ#Should_I_close_empty_elements_with_.2F.3E_or_.3E.3F Perfect, thanks. Stephen From carisenda at gmail.com Tue Aug 5 05:09:52 2008 From: carisenda at gmail.com (Stephen Stewart) Date: Tue, 5 Aug 2008 13:09:52 +0100 Subject: [html5] self-closing tags in html5 Message-ID: Hi, No question too stupid, eh? Well here goes... I was reading a presentation on HTML5[1] which included this: --- text/html: boilerplate --- Why is the meta element self-closing? I thought self closing tags were a product of XML? I read the Tokenization section of the HTML5 Editor's draft (which I think is relevant, I may be wrong) but it sailed right over my head. [1] http://simon.html5.org/presentations/html5-geekmeet.en Thanks, Stephen From ian at hixie.ch Tue Aug 5 05:20:56 2008 From: ian at hixie.ch (Ian Hickson) Date: Tue, 5 Aug 2008 12:20:56 +0000 (UTC) Subject: [html5] self-closing tags in html5 In-Reply-To: References: Message-ID: On Tue, 5 Aug 2008, Stephen Stewart wrote: > > I was reading a presentation on HTML5[1] which included this: > --- > text/html: boilerplate > > > > > > --- > > Why is the meta element self-closing? I thought self closing tags were a > product of XML? In HTML5 we've allowed the / on void elements (like , ,
, , etc), to ease migration to and from XML. This is defined here (step 6): http://www.whatwg.org/specs/web-apps/current-work/#start See also: http://wiki.whatwg.org/wiki/FAQ#Should_I_close_empty_elements_with_.2F.3E_or_.3E.3F HTH, -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From carisenda at gmail.com Tue Aug 5 05:25:05 2008 From: carisenda at gmail.com (Stephen Stewart) Date: Tue, 5 Aug 2008 13:25:05 +0100 Subject: [html5] self-closing tags in html5 In-Reply-To: References: Message-ID: On 5 Aug 2008, at 13:20, Ian Hickson wrote: > On Tue, 5 Aug 2008, Stephen Stewart wrote: >> >> I was reading a presentation on HTML5[1] which included this: >> --- >> text/html: boilerplate >> >> >> >> >> >> --- >> >> Why is the meta element self-closing? I thought self closing tags >> were a >> product of XML? > > In HTML5 we've allowed the / on void elements (like , , >
, > , etc), to ease migration to and from XML. > > This is defined here (step 6): > http://www.whatwg.org/specs/web-apps/current-work/#start > > See also: > http://wiki.whatwg.org/wiki/FAQ#Should_I_close_empty_elements_with_.2F.3E_or_.3E.3F Perfect, thanks. Stephen From carisenda at gmail.com Tue Aug 5 05:09:52 2008 From: carisenda at gmail.com (Stephen Stewart) Date: Tue, 5 Aug 2008 13:09:52 +0100 Subject: [html5] self-closing tags in html5 Message-ID: Hi, No question too stupid, eh? Well here goes... I was reading a presentation on HTML5[1] which included this: --- text/html: boilerplate --- Why is the meta element self-closing? I thought self closing tags were a product of XML? I read the Tokenization section of the HTML5 Editor's draft (which I think is relevant, I may be wrong) but it sailed right over my head. [1] http://simon.html5.org/presentations/html5-geekmeet.en Thanks, Stephen From ian at hixie.ch Tue Aug 5 05:20:56 2008 From: ian at hixie.ch (Ian Hickson) Date: Tue, 5 Aug 2008 12:20:56 +0000 (UTC) Subject: [html5] self-closing tags in html5 In-Reply-To: References: Message-ID: On Tue, 5 Aug 2008, Stephen Stewart wrote: > > I was reading a presentation on HTML5[1] which included this: > --- > text/html: boilerplate > > > > > > --- > > Why is the meta element self-closing? I thought self closing tags were a > product of XML? In HTML5 we've allowed the / on void elements (like , ,
, , etc), to ease migration to and from XML. This is defined here (step 6): http://www.whatwg.org/specs/web-apps/current-work/#start See also: http://wiki.whatwg.org/wiki/FAQ#Should_I_close_empty_elements_with_.2F.3E_or_.3E.3F HTH, -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From carisenda at gmail.com Tue Aug 5 05:25:05 2008 From: carisenda at gmail.com (Stephen Stewart) Date: Tue, 5 Aug 2008 13:25:05 +0100 Subject: [html5] self-closing tags in html5 In-Reply-To: References: Message-ID: On 5 Aug 2008, at 13:20, Ian Hickson wrote: > On Tue, 5 Aug 2008, Stephen Stewart wrote: >> >> I was reading a presentation on HTML5[1] which included this: >> --- >> text/html: boilerplate >> >> >> >> >> >> --- >> >> Why is the meta element self-closing? I thought self closing tags >> were a >> product of XML? > > In HTML5 we've allowed the / on void elements (like , , >
, > , etc), to ease migration to and from XML. > > This is defined here (step 6): > http://www.whatwg.org/specs/web-apps/current-work/#start > > See also: > http://wiki.whatwg.org/wiki/FAQ#Should_I_close_empty_elements_with_.2F.3E_or_.3E.3F Perfect, thanks. Stephen