<?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>16908</bug_id>
          
          <creation_ts>2012-05-02 14:15:27 +0000</creation_ts>
          <short_desc>BOM should not be recommended</short_desc>
          <delta_ts>2012-05-03 19:00:29 +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>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>13392</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Henry S. Thompson">ht</reporter>
          <assigned_to name="Eliot Graff">eliotgra</assigned_to>
          <cc>eliotgra</cc>
    
    <cc>jirka</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>public-xml-core-wg</cc>
    
    <cc>xn--mlform-iua</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>67239</commentid>
    <comment_count>0</comment_count>
    <who name="Henry S. Thompson">ht</who>
    <bug_when>2012-05-02 14:15:27 +0000</bug_when>
    <thetext>The BOM is rarely used, and unfamiliar to many users.  Making it the &apos;preferred&apos; way to indicate UTF-8 Character Encoding in polyglot is unhelpful and potentially off-putting.

The XML Core WG requests the relevant paragraph in section 3, Specifying a Document&apos;s Character Encoding, be changed to read as follows:

   Polyglot markup uses the UTF-8 character encoding, the only character
   encoding for which both HTML and XML require support. HTML requires
   UTF-8 to be explicitly declared to avoid fallback to a legacy encoding
   [HTML5]. For XML, UTF-8 is an encoding default. As such, character
   encoding may be left undeclared in XML with the result that UTF-8 is
   still supported [XML10].

   Polyglot markup declares the UTF-8 character encoding in the following
   ways, which may be used separately or in combination:

   * Within the document
     . By using &lt;meta charset=&quot;UTF-8&quot;/&gt; (the HTML encoding
        declaration) -- preferred
     . By using the Byte Order Mark (BOM) character.

   * Outside the document
     . . .

Submitted on behalf of the XML Core WG</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67244</commentid>
    <comment_count>1</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2012-05-02 17:08:38 +0000</bug_when>
    <thetext>(In reply to comment #0)

    OBJECTION:

I disagree with the XML Core WG&apos;s justification for the proposed change. But if the following arguments does not convince you, then I could live with *not* declaring any particular method as &quot;preferred&quot;.

    ARGUMENTS: 

Motivation for declaring BOM as the preferred method, is polyglotness.

Have the XML Core WG considered arguments about how BOM makes HTML *more* polyglot? In particular, have you considered the following 3 points: ?

1) BOM allows to skip a HTML specific element
2) BOM takes effect in both HTML and XML.
3) BOM makes encoding handling of HTML and XML more equal,
    as it leads HTML-parsers to behave more like XML-parsers.

    Explanation of point 3):  

#XML: Because it would trigger fatal error, XML parsers do not permit users to accidentically or manuallly override the encoding of a polyglot XML-file - regardless of how the encoding is signalled. Hence, in an XML parser, such a file is encoding safe in the sense that manual or accidental overriding (of the UTF-8 encoding) is impossible.

#HTML: HTML always allow encoding overriding. Except when there is a BOM: &quot;the byte order mark (also known as BOM) is considered more authoritative than anything else.&quot; 
&lt;http://dvcs.w3.org/hg/encoding/raw-file/tip/Overview.html#decode-and-encode&gt;
Meaning overriding is impossible. (Already implemented in IE, Chrome, Webkit.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67300</commentid>
    <comment_count>2</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2012-05-03 19:00:29 +0000</bug_when>
    <thetext>Bug 13392 discusses the same issue. Thus I am labeling this bug as a duplicate. The arguments put forward here,  have already more or less been put forward there, including the idea to just remove the word &quot;preferred&quot;: [1]

]]  I suggest removing &quot; (preferred)&quot; to avoid a long debate on whether
     to endorse Leif&apos;s preference or the i18n Core WG&apos;s preference. [[

[1] https://www.w3.org/Bugs/Public/show_bug.cgi?id=13392#c3

*** This bug has been marked as a duplicate of bug 13392 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>