<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>16504</bug_id>
          
          <creation_ts>2012-03-24 04:03:27 +0000</creation_ts>
          <short_desc>Improve white-space note. E.g. add that not just JS but CSS too is affected</short_desc>
          <delta_ts>2013-04-09 00:49:04 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>HTML/XHTML Compatibility Authoring Guide (ed: Eliot Graff)</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://dev.w3.org/html5/html-xhtml-author-guide/#attributes</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>a11y</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Leif Halvard Silli">xn--mlform-iua</reporter>
          <assigned_to name="Eliot Graff">eliotgra</assigned_to>
          <cc>eliotgra</cc>
    
    <cc>hans.hillen</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>66011</commentid>
    <comment_count>0</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2012-03-24 04:03:27 +0000</bug_when>
    <thetext>Firstly:  

The Note at the end of  the Attributes section currently says:

]] Practically speaking, for source code with newlines within attributes, DOMs generated via XML and HTML will be different; however, whitespace differences have no behavioral impact on the page unless explicitly examined by JavaScript, rendering the differences of small consequence. [[

However,  Web authors actually try to style the rendering of alternative text of the &lt;img&gt; element. 
http://jandcgroup.com/2010/07/14/line-breaks-in-alt-attribute-using-css-white-space-property/
And, so, if authors try to - like in the link above - to use 

   img{white-space:pre}

in order that the line breaks of the @alt text is preserved, they will get a surprise: Unless they remembered to use NCR, there will not be any line breaks, meaning that it will look too the author as if white-space:pre did not work. [I just had this supprise myself.]

Therefore, please mention that attributes whose content is rendered visually, such as the content of @alt, is also affected.

Secondly: 

It is a bit confusing that the note says that &quot;polyglot markup does not use newline characters within an attribute&quot;, because in the example just above the note, there are newline  characters - in the form of NCRs. Please change the text of the note by adding the wording &apos;directly typed&apos;: &quot;does not use DIRECTLY TYPED newline character&quot;. And also, in the last sentence of the note, you should say &apos;directly typed newline&apos; and not just &apos;newline&apos;.

Thirdly: Also, what do you mean by &apos;linefeed characters&apos; in plural? There is only one linefeed character.

Fourthly: please be consistent with regard to &apos;linefeed&apos; vs &apos;line feed&apos; - you use both, now.

Fift: I don&apos;t know from what the draft says about @title - HTMl5 only recommends one to be cautious with newline inside @title: http://dev.w3.org/html5/spec/global-attributes.html#the-title-attribute

 {Sorry, this became much longer than I had planned ...}</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85761</commentid>
    <comment_count>1</comment_count>
    <who name="Eliot Graff">eliotgra</who>
    <bug_when>2013-04-09 00:49:04 +0000</bug_when>
    <thetext>-Removed ban on newline in @title
-Added mention of attributes that render visually being afffected by white space.
-Added disambiguator about &quot;directly typed&quot; newline characters.

-Couldn&apos;t repro &quot;line feed&quot; v. &quot;linefeed&quot;
-Couldn&apos;t repro &quot;linefeed characters&quot;


new revision: 1.95; previous revision: 1.94</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>