html5/spec Overview.html,1.2098,1.2099

Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv14507

Modified Files:
	Overview.html 
Log Message:
Remove line breaks from title='' examples. (credit: sp) (bug 6497) (whatwg r2934)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.2098
retrieving revision 1.2099
diff -u -d -r1.2098 -r1.2099
--- Overview.html	31 Mar 2009 03:53:13 -0000	1.2098
+++ Overview.html	31 Mar 2009 04:05:55 -0000	1.2099
@@ -7089,7 +7089,17 @@
   string indicates that the element has no advisory information.<p>If the <code title=attr-title><a href=#the-title-attribute>title</a></code> attribute's value
   contains U+000A LINE FEED (LF) characters, the content is split into
   multiple lines. Each U+000A LINE FEED (LF) character represents a
-  line break.<p>Some elements, such as <code><a href=#the-link-element>link</a></code>, <code><a href=#the-abbr-element>abbr</a></code>, and
+  line break.<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>&lt;p&gt;My logs show that there was some interest in &lt;abbr title="Hypertext
+Transport Protocol"&gt;HTTP&lt;/abbr&gt; today.&lt;/p&gt;</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.<div class=impl>
 
@@ -12634,29 +12644,32 @@
    <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>&lt;p&gt;The &lt;dfn id=whatwg&gt;&lt;abbr title="Web Hypertext Application
-Technology Working Group"&gt;WHATWG&lt;/abbr&gt;&lt;/dfn&gt; 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.&lt;/p&gt;</pre>
+   <pre>&lt;p&gt;The &lt;dfn id=whatwg&gt;&lt;abbr
+title="Web Hypertext Application Technology Working Group"&gt;WHATWG&lt;/abbr&gt;&lt;/dfn&gt;
+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.&lt;/p&gt;</pre>
    <p>An alternative way to write this would be:</p>
    <pre>&lt;p&gt;The &lt;dfn id=whatwg&gt;Web Hypertext Application Technology
-Working Group&lt;/dfn&gt; (&lt;abbr title="Web Hypertext Application
-Technology Working Group"&gt;WHATWG&lt;/abbr&gt;) 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.&lt;/p&gt;</pre>
+Working Group&lt;/dfn&gt; (&lt;abbr
+title="Web Hypertext Application Technology Working Group"&gt;WHATWG&lt;/abbr&gt;)
+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.&lt;/p&gt;</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>&lt;p&gt;The &lt;abbr title="Web Hypertext Application Technology Working
-Group"&gt;WHATWG&lt;/abbr&gt; started working on HTML5 in 2004.&lt;/p&gt;</pre>
+   <pre>&lt;p&gt;The
+&lt;abbr title="Web Hypertext Application Technology Working Group"&gt;WHATWG&lt;/abbr&gt;
+started working on HTML5 in 2004.&lt;/p&gt;</pre>
   </div><div class=example>
    <p>This paragraph links an abbreviation to its definition.</p>
-   <pre>&lt;p&gt;The &lt;a href="#whatwg"&gt;&lt;abbr title="Web Hypertext Application
-Technology Working Group"&gt;WHATWG&lt;/abbr&gt;&lt;/a&gt; community does not
-have much representation from Asia.&lt;/p&gt;</pre>
+   <pre>&lt;p&gt;The &lt;a href="#whatwg"&gt;&lt;abbr
+title="Web Hypertext Application Technology Working Group"&gt;WHATWG&lt;/abbr&gt;&lt;/a&gt;
+community does not have much representation from Asia.&lt;/p&gt;</pre>
   </div><div class=example>
    <p>This paragraph marks up an abbreviation without giving an
    expansion, possibly as a hook to apply styles for abbreviations

Received on Tuesday, 31 March 2009 04:06:08 UTC