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

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