Skip to content

Commit

Permalink
[e] (0) Add an example for <wbr>.
Browse files Browse the repository at this point in the history
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=12655

git-svn-id: http://svn.whatwg.org/webapps@6363 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Aug 4, 2011
1 parent 04e2cfd commit 5e8a39c
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 2 deletions.
16 changes: 15 additions & 1 deletion complete.html
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@

<header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
<hgroup><h1>Web Applications 1.0</h1>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 3 August 2011</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 4 August 2011</h2>
</hgroup><dl><dt>Multiple-page version:</dt>
<dd><a href=http://www.whatwg.org/specs/web-apps/current-work/complete/>http://www.whatwg.org/specs/web-apps/current-work/complete/</a></dd>
<dt>One-page version:</dt>
Expand Down Expand Up @@ -21630,6 +21630,19 @@ <h4 id=the-wbr-element><span class=secno>4.6.27 </span>The <dfn><code>wbr</code>

</div>

<div class=example>

<p>Here, especially long lines of code in a program listing have
suggested wrapping points given using <code><a href=#the-wbr-element>wbr</a></code>
elements.</p>

<pre>&lt;pre&gt;...
Heading heading = Helm.HeadingFactory(HeadingCoordinates[1], &lt;wbr&gt;HeadingCoordinates[2], &lt;wbr&gt;HeadingCoordinates[3], &lt;wbr&gt;HeadingCoordinates[4]);
Course course = Helm.CourseFactory(Heading, &lt;wbr&gt;Maps.MapFactoryFromHeading(heading), &lt;wbr&gt;Speeds.GetMaximumSpeed().ConvertToWarp());
...&lt;/pre&gt;</pre>

</div>

<div class=impl>

<p>Any content inside <code><a href=#the-wbr-element>wbr</a></code> elements must not be
Expand Down Expand Up @@ -101502,6 +101515,7 @@ <h3 class="no-num">Reflecting IDL attributes</h3>
Riona Macnamara,
Rob Ennals,
Rob Jellinghaus,
Rob S,
Robert Blaut,
Robert Collins,
Robert O'Callahan,
Expand Down
16 changes: 15 additions & 1 deletion index
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@

<header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 3 August 2011</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 4 August 2011</h2>
</hgroup><dl><dt><strong>Web developer edition</strong></dt>
<dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
<dt>Multiple-page version:</dt>
Expand Down Expand Up @@ -21499,6 +21499,19 @@ Sydney&lt;/p&gt;</pre>

</div>

<div class=example>

<p>Here, especially long lines of code in a program listing have
suggested wrapping points given using <code><a href=#the-wbr-element>wbr</a></code>
elements.</p>

<pre>&lt;pre&gt;...
Heading heading = Helm.HeadingFactory(HeadingCoordinates[1], &lt;wbr&gt;HeadingCoordinates[2], &lt;wbr&gt;HeadingCoordinates[3], &lt;wbr&gt;HeadingCoordinates[4]);
Course course = Helm.CourseFactory(Heading, &lt;wbr&gt;Maps.MapFactoryFromHeading(heading), &lt;wbr&gt;Speeds.GetMaximumSpeed().ConvertToWarp());
...&lt;/pre&gt;</pre>

</div>

<div class=impl>

<p>Any content inside <code><a href=#the-wbr-element>wbr</a></code> elements must not be
Expand Down Expand Up @@ -97232,6 +97245,7 @@ if (s = prompt('What is your name?')) {
Riona Macnamara,
Rob Ennals,
Rob Jellinghaus,
Rob S,
Robert Blaut,
Robert Collins,
Robert O'Callahan,
Expand Down
14 changes: 14 additions & 0 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -23105,6 +23105,19 @@ Sydney&lt;/p&gt;</pre>

</div>

<div class="example">

<p>Here, especially long lines of code in a program listing have
suggested wrapping points given using <code>wbr</code>
elements.</p>

<pre>&lt;pre&gt;...
Heading heading = Helm.HeadingFactory(HeadingCoordinates[1], &lt;wbr>HeadingCoordinates[2], &lt;wbr>HeadingCoordinates[3], &lt;wbr>HeadingCoordinates[4]);
Course course = Helm.CourseFactory(Heading, &lt;wbr>Maps.MapFactoryFromHeading(heading), &lt;wbr>Speeds.GetMaximumSpeed().ConvertToWarp());
...&lt;/pre&gt;</pre>

</div>

<div class="impl">

<p>Any content inside <code>wbr</code> elements must not be
Expand Down Expand Up @@ -115708,6 +115721,7 @@ if (s = prompt('What is your name?')) {
Riona Macnamara,
Rob Ennals,
Rob Jellinghaus,
Rob S,
Robert Blaut,
Robert Collins,
Robert O'Callahan,
Expand Down

0 comments on commit 5e8a39c

Please sign in to comment.