W3C home > Mailing lists > Public > whatwg@whatwg.org > September 2009

[whatwg] [html5] r3801 - [e] (0) <hx> examples.

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 15 Sep 2009 08:48:04 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0909150847470.14605@hixie.dreamhostps.com>
On Fri, 11 Sep 2009, Simon Pieters wrote:
> > +  <div class="example">
> > +   <p>These two snippets are equivalent:</p>
> > +
> > +   <pre>&lt;h1>Let's call it a draw(ing surface)&lt;/h1>
> > +&lt;h2>Diving in&lt;/h2>
> > +&lt;h2>Simple shapes&lt;/h2>
> > +&lt;h2>Canvas coordinates&lt;/h2>
> > +&lt;h3>Canvas coordinates diagram&lt;/h3>
> > +&lt;h2>Paths&lt;/h2></pre>
> > +
> > +   <pre>&lt;section>
> > + &lt;h1>Let's call it a draw(ing surface)&lt;/h1>
> > + &lt;section>
> > +  &lt;h1>Diving in&lt;/h1>
> > + &lt;/section>
> > + &lt;section>
> > +  &lt;h1>Simple shapes&lt;/h1>
> > + &lt;/section>
> > + &lt;section>
> > +  &lt;h1>Canvas coordinates&lt;/h1>
> > +  &lt;section>
> > +   &lt;h1>Canvas coordinates diagram&lt;/h1>
> > +  &lt;/section>
> > + &lt;/section>
> > + &lt;section>
> > +  &lt;h1>Paths&lt;/h1>
> > + &lt;/section>
> > +&lt;/section></pre>
> > +
> > +  </div>
> 
> They are not equivalent; in the first example, the h1 will apply to the 
> <body>, while in the second example the first h1 will apply to the 
> explicit <section>. Either add a <section> to the first example or 
> remove the wrapping <section> from the other. Maybe add <body> to both 
> examples.

Fixed.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 15 September 2009 01:48:04 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:52 UTC