Skip to content

Commit

Permalink
[e] (0) remove newlines near <pre> and </pre> tags.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@4020 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Sep 29, 2009
1 parent 566b1e1 commit 0168477
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 88 deletions.
70 changes: 27 additions & 43 deletions index
Expand Up @@ -4806,15 +4806,13 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
attributes</dfn> will have seven attributes with the following
definitions:</p>

<pre class="idl extract">
attribute DOMString <a href=#dom-uda-protocol title=dom-uda-protocol>protocol</a>;
<pre class="idl extract"> attribute DOMString <a href=#dom-uda-protocol title=dom-uda-protocol>protocol</a>;
attribute DOMString <a href=#dom-uda-host title=dom-uda-host>host</a>;
attribute DOMString <a href=#dom-uda-hostname title=dom-uda-hostname>hostname</a>;
attribute DOMString <a href=#dom-uda-port title=dom-uda-port>port</a>;
attribute DOMString <a href=#dom-uda-pathname title=dom-uda-pathname>pathname</a>;
attribute DOMString <a href=#dom-uda-search title=dom-uda-search>search</a>;
attribute DOMString <a href=#dom-uda-hash title=dom-uda-hash>hash</a>;
</pre>
attribute DOMString <a href=#dom-uda-hash title=dom-uda-hash>hash</a>;</pre>

<dl class=domintro><dt><var title="">o</var> . <code title=dom-uda-protocol><a href=#dom-uda-protocol>protocol</a></code> [ = <var title="">value</var> ]</dt>
<dd>
Expand Down Expand Up @@ -6727,8 +6725,7 @@ interface <dfn id=htmldocument>HTMLDocument</dfn> {
attribute <a href=#function>Function</a> <a href=#handler-onvolumechange title=handler-onvolumechange>onvolumechange</a>;
attribute <a href=#function>Function</a> <a href=#handler-onwaiting title=handler-onwaiting>onwaiting</a>;
};
<span>Document</span> implements <a href=#htmldocument>HTMLDocument</a>;
</pre>
<span>Document</span> implements <a href=#htmldocument>HTMLDocument</a>;</pre>

<p>Since the <code><a href=#htmldocument>HTMLDocument</a></code> interface holds methods and
attributes related to a number of disparate features, the members of
Expand Down Expand Up @@ -8213,16 +8210,14 @@ background: transparent"&gt;blue&lt;/span&gt;.&lt;/p&gt;</pre>
<p>If a Web page wanted an element to represent a space ship,
e.g. as part of a game, it would have to use the <code class=attr-class>class</code> attribute along with <code title=attr-data-*><a href=#attr-data-*>data-*</a></code> attributes:</p>

<pre>
&lt;div class="spaceship" data-id="92432"
<pre>&lt;div class="spaceship" data-id="92432"
data-weapons="laser 2" data-shields="50%"
data-x="30" data-y="10" data-z="90"&gt;
&lt;button class="fire"
onclick="spaceships[this.parentNode.dataset.id].fire()"&gt;
Fire
&lt;/button&gt;
&lt;/div&gt;
</pre>
&lt;/div&gt;</pre>

</div>

Expand Down Expand Up @@ -10371,8 +10366,7 @@ gave me some of the songs they wrote. I love sharing my music.&lt;/p&gt;
...
&lt;h1&gt;Introduction&lt;/h1&gt;
&lt;p&gt;This companion guide to the highly successful
&lt;cite&gt;Introduction to Medieval Bee-Keeping&lt;/cite&gt; book is...
</pre>
&lt;cite&gt;Introduction to Medieval Bee-Keeping&lt;/cite&gt; book is...</pre>

<p>The next page might be a part of the same site. Note how the
title describes the subject matter unambiguously, while the first
Expand Down Expand Up @@ -17416,8 +17410,7 @@ and a height of &lt;meter&gt;2cm&lt;/meter&gt;.&lt;/p&gt; &lt;!-- <strong>BAD!</

<div class=example>
<p>The following markup:</p>
<pre>
&lt;h3&gt;Suggested groups&lt;/h3&gt;
<pre>&lt;h3&gt;Suggested groups&lt;/h3&gt;
&lt;menu type="toolbar"&gt;
&lt;a href="?cmd=hsg" onclick="hideSuggestedGroups()"&gt;Hide suggested groups&lt;/a&gt;
&lt;/menu&gt;
Expand All @@ -17439,8 +17432,7 @@ and a height of &lt;meter&gt;2cm&lt;/meter&gt;.&lt;/p&gt; &lt;!-- <strong>BAD!</
&lt;a href="/group/mozilla.dev.general/subscribe"&gt;join&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;<strong>&lt;meter value="0.25"&gt;Low activity,&lt;/meter&gt;</strong> Usenet, 66 subscribers&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
</pre>
&lt;/ul&gt;</pre>
<p>Might be rendered as follows:</p>
<p><img alt="With the <meter> elements rendered as inline green bars of varying lengths." src=images/sample-meter.png></p>
</div>
Expand Down Expand Up @@ -21761,8 +21753,7 @@ interface <dfn>CueRangeCallback</dfn> {

<p>The <dfn id=dom-media-src title=dom-media-src><code>src</code></dfn> IDL
attribute on <a href=#media-element title="media element">media elements</a> must
<a href=#reflect>reflect</a> the respective content attribute of the same
name.</p>
<a href=#reflect>reflect</a> the content attribute of the same name.</p>

</div>

Expand Down Expand Up @@ -24228,8 +24219,7 @@ interface <dfn>CueRangeCallback</dfn> {

<div class=example>
<p>Only one square appears to be drawn in the following example:</p>
<pre>
// canvas is a reference to a &lt;canvas&gt; element
<pre> // canvas is a reference to a &lt;canvas&gt; element
var context = canvas.getContext('2d');
context.fillRect(0,0,50,50);
canvas.setAttribute('width', '300'); // clears the canvas
Expand Down Expand Up @@ -27894,6 +27884,7 @@ function AddCloud(data, x, y) { ... }</pre>
readonly attribute <a href=#htmlcollection>HTMLCollection</a> <a href=#dom-table-rows title=dom-table-rows>rows</a>;
<a href=#htmlelement>HTMLElement</a> <a href=#dom-table-insertrow title=dom-table-insertRow>insertRow</a>(in optional long index);
void <a href=#dom-table-deleterow title=dom-table-deleteRow>deleteRow</a>(in long index);
attribute DOMString <a href=#dom-table-summary title=dom-table-summary>summary</a>;
};</pre>
</dd>
</dl><p>The <code><a href=#the-table-element>table</a></code> element <a href=#represents>represents</a> data with
Expand Down Expand Up @@ -28078,8 +28069,7 @@ side in the right column.&lt;/p&gt;
&lt;td&gt; Passing
&lt;/table&gt;
&lt;/dd&gt;
&lt;/figure&gt;
</pre></div>
&lt;/figure&gt;</pre></div>
</dd>

<dt>Next to the table, in a <code><a href=#the-figure-element>figure</a></code>'s <code><a href=#the-dt-element>dt</a></code></dt>
Expand Down Expand Up @@ -28110,8 +28100,7 @@ side in the right column.&lt;/p&gt;
&lt;td&gt; Passing
&lt;/table&gt;
&lt;/dd&gt;
&lt;/figure&gt;
</pre></div>
&lt;/figure&gt;</pre></div>
</dd>

</dl><p>Authors may also use other techniques, or combinations of the
Expand Down Expand Up @@ -28442,7 +28431,11 @@ side in the right column.&lt;/p&gt;

<li><p>Otherwise, the method must remove the <var title="">index</var>th element in the <code title=dom-table-rows><a href=#dom-table-rows>rows</a></code> collection from its parent.</p>

</ol></div>
</ol><p>The <dfn id=dom-table-summary title=dom-table-summary><code>summary</code></dfn> IDL
attribute must <a href=#reflect>reflect</a> the content attribute of the
same name.</p>

</div>


<h4 id=the-caption-element><span class=secno>4.9.2 </span>The <dfn><code>caption</code></dfn> element</h4>
Expand Down Expand Up @@ -28557,9 +28550,8 @@ the cell that corresponds to the values of the two dice.
<a href=#table-model>table model</a>.</p>

<p>The <dfn id=dom-colgroup-span title=dom-colgroup-span><code>span</code></dfn> IDL
attribute must <a href=#reflect>reflect</a> the respective content attribute
of the same name. The value must be <a href=#limited-to-only-positive-non-zero-numbers>limited to only positive
non-zero numbers</a>.</p>
attribute must <a href=#reflect>reflect</a> thelimited to only positive
non-zero numbers.</p>

</div>

Expand Down Expand Up @@ -35436,12 +35428,10 @@ interface <dfn id=htmlformelement>HTMLFormElement</dfn> : <a href=#htmlelement>H

<div class=example>
<p>For example, the following snippet:</p>
<pre>
&lt;label&gt; Part number:
<pre>&lt;label&gt; Part number:
&lt;input pattern="[0-9][A-Z]{3}" name="part"
title="A part number is a digit followed by three uppercase letters."/&gt;
&lt;/label&gt;
</pre>
&lt;/label&gt;</pre>
<p>...could cause the UA to display an alert such as:</p>
<pre><samp>A part number is a digit followed by three uppercase letters.
You cannot complete this form until the field is correct.</samp></pre>
Expand Down Expand Up @@ -45770,8 +45760,7 @@ document.body.appendChild(outer);</pre>
<code><a href=#the-address-element>address</a></code> element) containing an address with two street
components:</p>

<pre>
&lt;address item=vcard&gt;
<pre>&lt;address item=vcard&gt;
&lt;strong title="fn"&gt;Alfred Person&lt;/strong&gt; &lt;br&gt;
&lt;span itemprop="adr" item&gt;
&lt;span itemprop="street-address"&gt;1600 Amphitheatre Parkway&lt;/span&gt; &lt;br&gt;
Expand Down Expand Up @@ -48586,8 +48575,7 @@ interface <dfn id=window>Window</dfn> {
attribute <a href=#function>Function</a> <a href=#handler-onvolumechange title=handler-onvolumechange>onvolumechange</a>;
attribute <a href=#function>Function</a> <a href=#handler-onwaiting title=handler-onwaiting>onwaiting</a>;
};
<a href=#window>Window</a> implements <span>EventTarget</span>;
</pre>
<a href=#window>Window</a> implements <span>EventTarget</span>;</pre>

<!-- for more features to add here, look here:
http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/obj_window.asp
Expand Down Expand Up @@ -71619,8 +71607,7 @@ td, th { display: table-cell; }
li { display: list-item; }

ruby { display: ruby; }
rt { display: ruby-text; }
</pre>
rt { display: ruby-text; }</pre>

<!-- del, ins, and map are inline. -->

Expand Down Expand Up @@ -72001,9 +71988,7 @@ table[rules=rows] &gt; tfoot &gt; tr &gt; td, table[rules=rows] &gt; tfoot &gt;
table[rules=cols] &gt; tfoot &gt; tr &gt; td, table[rules=cols] &gt; tfoot &gt; tr &gt; th,
table[rules=all] &gt; tfoot &gt; tr &gt; td, table[rules=all] &gt; tfoot &gt; tr &gt; th {
border-color: black;
}

</pre>
}</pre>

<hr><p>The initial value for the 'color' property is expected to be
black. The initial value for the 'background-color' property is
Expand Down Expand Up @@ -75062,11 +75047,10 @@ interface <a href=#htmltableelement>HTMLTableElement</a> {
attribute DOMString <a href=#dom-table-cellspacing title=dom-table-cellSpacing>cellSpacing</a>;
attribute DOMString <a href=#dom-table-frame title=dom-table-frame>frame</a>;
attribute DOMString <a href=#dom-table-rules title=dom-table-rules>rules</a>;
attribute DOMString <a href=#dom-table-summary title=dom-table-summary>summary</a>;
attribute DOMString <a href=#dom-table-width title=dom-table-width>width</a>;
};</pre>

<p>The <dfn id=dom-table-align title=dom-table-align><code>align</code></dfn>, <dfn id=dom-table-border title=dom-table-border><code>border</code></dfn>, <dfn id=dom-table-frame title=dom-table-frame><code>frame</code></dfn>, <dfn id=dom-table-rules title=dom-table-rules><code>rules</code></dfn>, <dfn id=dom-table-summary title=dom-table-summary><code>summary</code></dfn>, and <dfn id=dom-table-width title=dom-table-width><code>width</code></dfn>, IDL attributes of
<p>The <dfn id=dom-table-align title=dom-table-align><code>align</code></dfn>, <dfn id=dom-table-border title=dom-table-border><code>border</code></dfn>, <dfn id=dom-table-frame title=dom-table-frame><code>frame</code></dfn>, <dfn id=dom-table-rules title=dom-table-rules><code>rules</code></dfn>, and <dfn id=dom-table-width title=dom-table-width><code>width</code></dfn>, IDL attributes of
the <code><a href=#the-table-element>table</a></code> element must <a href=#reflect>reflect</a> the
respective content attributes of the same name.</p>

Expand Down

0 comments on commit 0168477

Please sign in to comment.