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

On Fri, 11 Sep 2009 02:31:07 +0200, <whatwg at whatwg.org> wrote:

> Author: ianh
> Date: 2009-09-10 17:31:06 -0700 (Thu, 10 Sep 2009)
> New Revision: 3801
>
> Modified:
>    index
>    source
> Log:
> [e] (0) <hx> examples.
>


> Modified: source
> ===================================================================
> --- source	2009-09-11 00:24:32 UTC (rev 3800)
> +++ source	2009-09-11 00:31:06 UTC (rev 3801)
> @@ -14005,7 +14005,41 @@
>    rank, the <code>h6</code> element has the lowest rank, and two
>    elements with the same name have equal rank.</p>
> +  <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.

-- 
Simon Pieters
Opera Software

Received on Thursday, 10 September 2009 23:44:08 UTC