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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>47046</bug_id>
          
          <creation_ts>2010-10-02 02:26:26 -0700</creation_ts>
          <short_desc>REGRESSION (r63517): Apple concierge website broken because of text node between HEAD and BODY</short_desc>
          <delta_ts>2011-01-13 16:04:13 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc>http://concierge.apple.com/store/R075</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar, Regression</keywords>
          <priority>P1</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>41115</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter>mitz</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>aestes</cc>
    
    <cc>ap</cc>
    
    <cc>hsivonen</cc>
    
    <cc>ian</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>288667</commentid>
    <comment_count>0</comment_count>
    <who name="">mitz</who>
    <bug_when>2010-10-02 02:26:26 -0700</bug_when>
    <thetext>In TOT, the product tiles at http://concierge.apple.com/store/R075 do not respond to hovering over them or clicking them. The Inspector console reports
HIERARCHY_REQUEST_ERR: DOM Exception 3: A Node was inserted somewhere it doesn&apos;t belong.
An inspection of the DOM reveals that the BODY element’s previous sibling is a text node. In Safari 5.0.2, the BODY element’s previous sibling is the HEAD element.

This is a reduction:
&lt;head&gt;&lt;/head&gt;  &lt;body&gt;&lt;script&gt;alert(document.body.previousSibling)&lt;/script&gt;&lt;/body&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>288668</commentid>
    <comment_count>1</comment_count>
    <who name="">mitz</who>
    <bug_when>2010-10-02 02:27:36 -0700</bug_when>
    <thetext>&lt;rdar://problem/8505994&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>288670</commentid>
    <comment_count>2</comment_count>
    <who name="">mitz</who>
    <bug_when>2010-10-02 02:37:38 -0700</bug_when>
    <thetext>Caused by &lt;http://trac.webkit.org/changeset/63517&gt;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>288725</commentid>
    <comment_count>3</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2010-10-02 15:26:35 -0700</bug_when>
    <thetext>The site is also broken in Firefox 4.  Perhaps we can evangalize the site to use document.head or document.getElementsByTagName(&apos;head&apos;)[0] to local the head element?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>288734</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-10-02 20:24:53 -0700</bug_when>
    <thetext>Does this HTML5 behavior match any shipping browser?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>288737</commentid>
    <comment_count>5</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2010-10-02 22:17:15 -0700</bug_when>
    <thetext>I complained about this change when we first implemented it.  I can dig up the W3C bug if you like.  The spec skips some whitespace nodes early in the document for compatibility.  At the time Ian&apos;s position was that skipping these nodes is aesthetically ugly because you lose information about the original document.  You can see this effect, for example, when you serialize the DOM back to a string.

My guess is this issue will come down to an estimate of how many cites are affected.  If this is the first one that we and Henri have seen, we might try to evangelize it (especially since it&apos;s from a company that, you know, makes a web browser).  If we see more examples, we might want to change the spec.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>288823</commentid>
    <comment_count>6</comment_count>
    <who name="Henri Sivonen">hsivonen</who>
    <bug_when>2010-10-04 00:39:11 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; If this is the first one that we and Henri have seen

I don&apos;t recall seeing this before.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>333983</commentid>
    <comment_count>7</comment_count>
    <who name="Andy Estes">aestes</who>
    <bug_when>2011-01-13 15:33:25 -0800</bug_when>
    <thetext>I don&apos;t see this bug on the live site anymore. I can hover over the product categories and they gain border highlighting; I can also click them. Mitz, can you confirm this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>334001</commentid>
    <comment_count>8</comment_count>
    <who name="">mitz</who>
    <bug_when>2011-01-13 16:00:03 -0800</bug_when>
    <thetext>I cannot reproduce the symptom with a build of TOT.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>334002</commentid>
    <comment_count>9</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2011-01-13 16:01:04 -0800</bug_when>
    <thetext>Please feel free to re-open this bug if we find more examples.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>