<?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>7180</bug_id>
          
          <creation_ts>2009-07-31 11:51:13 +0000</creation_ts>
          <short_desc>XHTML/CSS validations fail when UTF-8 BOM is used</short_desc>
          <delta_ts>2009-08-03 15:36:58 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>mobileOK Basic checker</product>
          <component>Java Library</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <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="fd">fd</reporter>
          <assigned_to name="fd">fd</assigned_to>
          
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>26152</commentid>
    <comment_count>0</comment_count>
    <who name="fd">fd</who>
    <bug_when>2009-07-31 11:51:13 +0000</bug_when>
    <thetext>[
Bug raised by Kevin Ghadyani on the public-mobileok-checker mailing-list:
 http://lists.w3.org/Archives/Public/public-mobileok-checker/2009Jul/0000.html
]

The UTF-8 Byte-Order Mark (BOM) is not defined in mobileOK as a way to precise the content encoding, possibly because some mobile browsers do not handle that pretty well.

That said, it is valid to serve content with a BOM, so this should not trigger any validation failure.

The presence of a BOM currently triggers the following failures:
- Content is not allowed in prolog during XHTML validation
- The style sheet is not syntactically correct during CSS validation

Ex, when run on:
 http://m.kevinghadyani.com/
... the Checker returns a CSS validation error for the mobile style sheet served with a BOM:
 http://m.kevinghadyani.com/mobile.css</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26200</commentid>
    <comment_count>1</comment_count>
    <who name="fd">fd</who>
    <bug_when>2009-08-03 15:36:58 +0000</bug_when>
    <thetext>TextContent now skips the BOM when decoding an UTF-8 string, so as not to confuse the XHTML/CSS validator.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>