<?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>13709</bug_id>
          
          <creation_ts>2011-08-09 07:23:50 +0000</creation_ts>
          <short_desc>[html5] Attribute value normalization is not backwards compatible</short_desc>
          <delta_ts>2011-08-16 09:23:24 +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>HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc>http://www.w3.org/mid/201108082059.25340.bert@w3.org</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="HTML WG bugbot">mike+html-wg-mailbot</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>annevk</cc>
    
    <cc>eoconnor</cc>
    
    <cc>julian.reschke</cc>
    
    <cc>kennyluck</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>54438</commentid>
    <comment_count>0</comment_count>
    <who name="HTML WG bugbot">mike+html-wg-mailbot</who>
    <bug_when>2011-08-09 07:23:50 +0000</bug_when>
    <thetext>public-html-comments posting from: Bert Bos &lt;bert@w3.org&gt;
http://www.w3.org/mid/201108082059.25340.bert@w3.org</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54444</commentid>
    <comment_count>1</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-08-09 07:27:41 +0000</bug_when>
    <thetext>[[

A personal comment on http://www.w3.org/TR/2011/WD-
html5-20110525/elements.html#the-title-attribute

(That section is actually only an example, but I didn&apos;t immediately see 
where the parsing of attributes is formally defined. Sorry.)

The way string-valued attributes are processed in HTML5 is not backwards 
compatible with the way in HTML4. In HTML4, newlines in the source 
become spaces in the attribute value, but in HTML5 they become line 
feeds and/or carriage returns.

Section 3.2.3.2 shows an example: although the mark-up contains no 
&quot;&amp;#10;&quot; entity, the attribute value still contains a line feed.

The handling of line ends isn&apos;t specific to HTML4, but is a property of 
SGML (and thus also XML) and thus it risks being difficult to change in 
existing software. In my own software, e.g., it is handled at a very low 
level in the tokenizer.

The proposed new way is also inconvenient: In HTML4, you can format the 
source code to avoid long lines: 

    ... &lt;span title=&quot;Some long title here&quot;&gt;...&lt;/span&gt; &lt;span title=&quot;Some
    long title here&quot;&gt;...&lt;/span&gt;...

and the two attributes will be equal to one another, but not so in 
HTML5. 
]]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55219</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2011-08-16 09:23:24 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document: &lt;http://dev.w3.org/html5/decision-policy/decision-policy.html&gt;.

Status: Rejected
Change Description: no spec change
Rationale: This is another case where HTML4 was not aligned with popular implementations. E.g. not preserving whitespace for &lt;input type=hidden&gt; would break sites. And browsers actually got a lot of requests to preserver whitespace for the title attribute as well (in the UI, they already did at tree-level).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>