[html5] r2934 - [] (0) Remove line breaks from title='' examples. (credit: sp) (bug 6497)

whatwg at whatwg.org whatwg at whatwg.org
Mon Mar 30 21:05:51 PDT 2009


Author: ianh
Date: 2009-03-30 21:05:50 -0700 (Mon, 30 Mar 2009)
New Revision: 2934

Modified:
   index
   source
Log:
[] (0) Remove line breaks from title='' examples. (credit: sp) (bug 6497)

Modified: index
===================================================================
--- index	2009-03-31 03:53:09 UTC (rev 2933)
+++ index	2009-03-31 04:05:50 UTC (rev 2934)
@@ -7819,6 +7819,18 @@
   multiple lines. Each U+000A LINE FEED (LF) character represents a
   line break.</p>
 
+  <div class=example>
+
+   <p>Caution is advised with respect to the use of newlines in <code title=attr-title><a href=#the-title-attribute>title</a></code> attributes.</p>
+
+   <p>For instance, the following snippet actually defines an
+   abbreviation's expansion <em>with a line break in it</em>:</p>
+
+   <pre class=bad><p>My logs show that there was some interest in <abbr title="Hypertext
+Transport Protocol">HTTP</abbr> today.</p></pre>
+
+  </div>
+
   <p>Some elements, such as <code><a href=#the-link-element>link</a></code>, <code><a href=#the-abbr-element>abbr</a></code>, and
   <code><a href=#the-input-element>input</a></code>, define additional semantics for the <code title=attr-title><a href=#the-title-attribute>title</a></code> attribute beyond the semantics
   described above.</p>
@@ -7832,6 +7844,7 @@
   </div>
 
 
+
   <h5 id=the-lang-and-xml:lang-attributes><span class=secno>3.3.3.3 </span>The <dfn title=attr-lang><code>lang</code></dfn> and <dfn title=attr-xml-lang><code>xml:lang</code></dfn>
   attributes</h5>
 
@@ -14424,33 +14437,36 @@
    <code><a href=#the-abbr-element>abbr</a></code> element. This paragraph <a href=#defining-term title="defining
    term">defines the term</a> "Web Hypertext Application Technology
    Working Group".</p>
-   <pre><p>The <dfn id=whatwg><abbr title="Web Hypertext Application
-Technology Working Group">WHATWG</abbr></dfn> is a loose
-unofficial collaboration of Web browser manufacturers and interested
-parties who wish to develop new technologies designed to allow authors
-to write and deploy Applications over the World Wide Web.</p></pre>
+   <pre><p>The <dfn id=whatwg><abbr
+title="Web Hypertext Application Technology Working Group">WHATWG</abbr></dfn>
+is a loose unofficial collaboration of Web browser manufacturers and
+interested parties who wish to develop new technologies designed to
+allow authors to write and deploy Applications over the World Wide
+Web.</p></pre>
    <p>An alternative way to write this would be:</p>
    <pre><p>The <dfn id=whatwg>Web Hypertext Application Technology
-Working Group</dfn> (<abbr title="Web Hypertext Application
-Technology Working Group">WHATWG</abbr>) is a loose unofficial
-collaboration of Web browser manufacturers and interested parties who
-wish to develop new technologies designed to allow authors to write
-and deploy Applications over the World Wide Web.</p></pre>
+Working Group</dfn> (<abbr
+title="Web Hypertext Application Technology Working Group">WHATWG</abbr>)
+is a loose unofficial collaboration of Web browser manufacturers and
+interested parties who wish to develop new technologies designed to
+allow authors to write and deploy Applications over the World Wide
+Web.</p></pre>
   </div>
 
   <div class=example>
    <p>This paragraph has two abbreviations. Notice how only one is
    defined; the other, with no expansion associated with it, does not
    use the <code><a href=#the-abbr-element>abbr</a></code> element.</p>
-   <pre><p>The <abbr title="Web Hypertext Application Technology Working
-Group">WHATWG</abbr> started working on HTML5 in 2004.</p></pre>
+   <pre><p>The
+<abbr title="Web Hypertext Application Technology Working Group">WHATWG</abbr>
+started working on HTML5 in 2004.</p></pre>
   </div>
 
   <div class=example>
    <p>This paragraph links an abbreviation to its definition.</p>
-   <pre><p>The <a href="#whatwg"><abbr title="Web Hypertext Application
-Technology Working Group">WHATWG</abbr></a> community does not
-have much representation from Asia.</p></pre>
+   <pre><p>The <a href="#whatwg"><abbr
+title="Web Hypertext Application Technology Working Group">WHATWG</abbr></a>
+community does not have much representation from Asia.</p></pre>
   </div>
 
   <div class=example>

Modified: source
===================================================================
--- source	2009-03-31 03:53:09 UTC (rev 2933)
+++ source	2009-03-31 04:05:50 UTC (rev 2934)
@@ -8042,6 +8042,19 @@
   multiple lines. Each U+000A LINE FEED (LF) character represents a
   line break.</p>
 
+  <div class="example">
+
+   <p>Caution is advised with respect to the use of newlines in <code
+   title="attr-title">title</code> attributes.</p>
+
+   <p>For instance, the following snippet actually defines an
+   abbreviation's expansion <em>with a line break in it</em>:</p>
+
+   <pre class="bad"><p>My logs show that there was some interest in <abbr title="Hypertext
+Transport Protocol">HTTP</abbr> today.</p></pre>
+
+  </div>
+
   <p>Some elements, such as <code>link</code>, <code>abbr</code>, and
   <code>input</code>, define additional semantics for the <code
   title="attr-title">title</code> attribute beyond the semantics
@@ -8058,6 +8071,7 @@
   </div>
 
 
+
   <h5>The <dfn title="attr-lang"><code>lang</code></dfn> and <dfn
   title="attr-xml-lang"><code>xml:lang</code></dfn>
   attributes</h5>
@@ -15442,33 +15456,36 @@
    <code>abbr</code> element. This paragraph <span title="defining
    term">defines the term</span> "Web Hypertext Application Technology
    Working Group".</p>
-   <pre><p>The <dfn id=whatwg><abbr title="Web Hypertext Application
-Technology Working Group">WHATWG</abbr></dfn> is a loose
-unofficial collaboration of Web browser manufacturers and interested
-parties who wish to develop new technologies designed to allow authors
-to write and deploy Applications over the World Wide Web.</p></pre>
+   <pre><p>The <dfn id=whatwg><abbr
+title="Web Hypertext Application Technology Working Group">WHATWG</abbr></dfn>
+is a loose unofficial collaboration of Web browser manufacturers and
+interested parties who wish to develop new technologies designed to
+allow authors to write and deploy Applications over the World Wide
+Web.</p></pre>
    <p>An alternative way to write this would be:</p>
    <pre><p>The <dfn id=whatwg>Web Hypertext Application Technology
-Working Group</dfn> (<abbr title="Web Hypertext Application
-Technology Working Group">WHATWG</abbr>) is a loose unofficial
-collaboration of Web browser manufacturers and interested parties who
-wish to develop new technologies designed to allow authors to write
-and deploy Applications over the World Wide Web.</p></pre>
+Working Group</dfn> (<abbr
+title="Web Hypertext Application Technology Working Group">WHATWG</abbr>)
+is a loose unofficial collaboration of Web browser manufacturers and
+interested parties who wish to develop new technologies designed to
+allow authors to write and deploy Applications over the World Wide
+Web.</p></pre>
   </div>
 
   <div class="example">
    <p>This paragraph has two abbreviations. Notice how only one is
    defined; the other, with no expansion associated with it, does not
    use the <code>abbr</code> element.</p>
-   <pre><p>The <abbr title="Web Hypertext Application Technology Working
-Group">WHATWG</abbr> started working on HTML5 in 2004.</p></pre>
+   <pre><p>The
+<abbr title="Web Hypertext Application Technology Working Group">WHATWG</abbr>
+started working on HTML5 in 2004.</p></pre>
   </div>
 
   <div class="example">
    <p>This paragraph links an abbreviation to its definition.</p>
-   <pre><p>The <a href="#whatwg"><abbr title="Web Hypertext Application
-Technology Working Group">WHATWG</abbr></a> community does not
-have much representation from Asia.</p></pre>
+   <pre><p>The <a href="#whatwg"><abbr
+title="Web Hypertext Application Technology Working Group">WHATWG</abbr></a>
+community does not have much representation from Asia.</p></pre>
   </div>
 
   <div class="example">




More information about the Commit-Watchers mailing list