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

Simon Pieters simonp at opera.com
Thu Sep 10 23:44:08 PDT 2009


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><h1>Let's call it a draw(ing surface)</h1>
> +<h2>Diving in</h2>
> +<h2>Simple shapes</h2>
> +<h2>Canvas coordinates</h2>
> +<h3>Canvas coordinates diagram</h3>
> +<h2>Paths</h2></pre>
> +
> +   <pre><section>
> + <h1>Let's call it a draw(ing surface)</h1>
> + <section>
> +  <h1>Diving in</h1>
> + </section>
> + <section>
> +  <h1>Simple shapes</h1>
> + </section>
> + <section>
> +  <h1>Canvas coordinates</h1>
> +  <section>
> +   <h1>Canvas coordinates diagram</h1>
> +  </section>
> + </section>
> + <section>
> +  <h1>Paths</h1>
> + </section>
> +</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



More information about the whatwg mailing list