<?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>82246</bug_id>
          
          <creation_ts>2012-03-26 14:17:13 -0700</creation_ts>
          <short_desc>REGRESSION: r107883 broke loading the mobile Orange.fr site</short_desc>
          <delta_ts>2012-08-08 09:22:36 -0700</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>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc>http://mobile.orange.fr/visiteur/PV?PS=HPACMEWIFI</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Simon Fraser (smfr)">simon.fraser</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>aestes</cc>
    
    <cc>ap</cc>
    
    <cc>ddkilzer</cc>
    
    <cc>eoconnor</cc>
    
    <cc>mrakesh</cc>
    
    <cc>pf</cc>
    
    <cc>rakesh.makluri</cc>
    
    <cc>rniwa</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>588118</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2012-03-26 14:17:13 -0700</bug_when>
    <thetext>Attempting to load http://orange.fr (with an iOS user-agent) fails after r107883. Console shows:

TypeError: &apos;true&apos; is not a function (evaluating &apos;$(&quot;page1&quot;).translate(&quot;100%&quot;,&quot;100%&quot;)&apos;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>588123</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2012-03-26 14:21:29 -0700</bug_when>
    <thetext>The page does:

if (wink.isUndefined(HTMLElement.prototype.translate))
    HTMLElement.prototype.translate = HTMLElement.prototype.winkTranslate;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>588126</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2012-03-26 14:22:29 -0700</bug_when>
    <thetext>&lt;rdar://problem/11122949&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>588146</commentid>
    <comment_count>3</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2012-03-26 14:44:54 -0700</bug_when>
    <thetext>Is wink a library of some sort, or is it specific to this site?  If enough sites use this library, we&apos;ll probably need to change the spec to use a name other than &quot;translate&quot; for the translation feature.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>588152</commentid>
    <comment_count>4</comment_count>
    <who name="Andy Estes">aestes</who>
    <bug_when>2012-03-26 14:48:07 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; Is wink a library of some sort, or is it specific to this site?  If enough sites use this library, we&apos;ll probably need to change the spec to use a name other than &quot;translate&quot; for the translation feature.

Possibly &lt;http://www.winktoolkit.org&gt;?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>588157</commentid>
    <comment_count>5</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2012-03-26 14:51:03 -0700</bug_when>
    <thetext>Seems likely:
http://www.winktoolkit.org/documentation/symbols/HTMLElement.html#translate</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>588158</commentid>
    <comment_count>6</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2012-03-26 14:51:30 -0700</bug_when>
    <thetext>orange.fr is getting it via http://omldev.hopto.org:8080/snowdev/js/wink.min.js</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>588159</commentid>
    <comment_count>7</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2012-03-26 14:51:54 -0700</bug_when>
    <thetext>I&apos;ll send an email to the WhatWG.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>588165</commentid>
    <comment_count>8</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2012-03-26 14:57:10 -0700</bug_when>
    <thetext>Sent.  Let&apos;s see if folks there have thoughts on what we should do here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>588171</commentid>
    <comment_count>9</comment_count>
    <who name="Pablo Flouret">pf</who>
    <bug_when>2012-03-26 15:01:20 -0700</bug_when>
    <thetext>I can take care of making any necessary changes if there&apos;s a need.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>588215</commentid>
    <comment_count>10</comment_count>
    <who name="Theresa O&apos;Connor">eoconnor</who>
    <bug_when>2012-03-26 15:43:14 -0700</bug_when>
    <thetext>Adam&apos;s thread on the whatwg list: http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2012-March/035173.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>600866</commentid>
    <comment_count>11</comment_count>
    <who name="rakesh makluri">mrakesh</who>
    <bug_when>2012-04-11 21:34:54 -0700</bug_when>
    <thetext>Hi Adam,

  With this support our product is breaking now. Present we are loading and using the translate() API on HTML elements to translate. But now with this change it is breaking. Is there any way to override this attribute.

  We can change the API but, so many existing customers and our internal components are also using this.
  Please help with this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>600875</commentid>
    <comment_count>12</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2012-04-11 21:58:30 -0700</bug_when>
    <thetext>Hi Rakesh,

From &lt;http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2012-March/035199.html&gt;, I was under the impression that the Wink Toolkit folks have resolved the issue on their end.  Have you discussed the issue with Jérôme ?

Generally, it&apos;s not a good idea to squat on property names on HTMLElements (like translate).  As HTML evolves, it will use more and more of these names.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>600877</commentid>
    <comment_count>13</comment_count>
    <who name="rakesh makluri">mrakesh</who>
    <bug_when>2012-04-11 22:08:41 -0700</bug_when>
    <thetext>Hi Adam,

   Thank you very much for the quick reply. Am not discussed the issue with Jérôme. Am not able to comment in the above link.

   I saw a discussion in progress to change the name of the attribute. Is it going to be changed?

   Our code exist for last 4 to 5 years, now changing the API means a lot of effort. Need to communicate to all customers and change the internal components code.

   And is there any way(hack) to override this attribute?


(In reply to comment #12)
&gt; Hi Rakesh,
&gt; 
&gt; From &lt;http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2012-March/035199.html&gt;, I was under the impression that the Wink Toolkit folks have resolved the issue on their end.  Have you discussed the issue with Jérôme ?
&gt; 
&gt; Generally, it&apos;s not a good idea to squat on property names on HTMLElements (like translate).  As HTML evolves, it will use more and more of these names.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>600890</commentid>
    <comment_count>14</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2012-04-11 22:26:31 -0700</bug_when>
    <thetext>Oh, I think I misunderstood your earlier comment.  Are you using the Wink Toolkit?  It sounds like you&apos;re problem might be separate from the Wink issue.

There is an ugly way to hack around the issue.  You can delete the translate property from each element.  For example:

delete document.body.translate;
alert(document.body.translate);
^^^ Now the translate property is gone.

It&apos;s a bit tricky because the property is on each element rather than on the prototype chain.  I&apos;m not sure what constraints you face, but that might be one option to explore.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>600898</commentid>
    <comment_count>15</comment_count>
    <who name="rakesh makluri">mrakesh</who>
    <bug_when>2012-04-11 22:43:38 -0700</bug_when>
    <thetext>   Yah my problem is separate from the Wink Toolkit. Thank you for the work around. I tested with sample page it is working fine.

   My assumption now is, &quot;translate&quot; attribute name is not going to be chagned?

Thanks &amp; Regards
Rakesh

(In reply to comment #14)
&gt; Oh, I think I misunderstood your earlier comment.  Are you using the Wink Toolkit?  It sounds like you&apos;re problem might be separate from the Wink issue.
&gt; 
&gt; There is an ugly way to hack around the issue.  You can delete the translate property from each element.  For example:
&gt; 
&gt; delete document.body.translate;
&gt; alert(document.body.translate);
&gt; ^^^ Now the translate property is gone.
&gt; 
&gt; It&apos;s a bit tricky because the property is on each element rather than on the prototype chain.  I&apos;m not sure what constraints you face, but that might be one option to explore.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>600935</commentid>
    <comment_count>16</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2012-04-11 23:42:30 -0700</bug_when>
    <thetext>(In reply to comment #15)
&gt;My assumption now is, &quot;translate&quot; attribute name is not going to be chagned?

As far as I know, we won&apos;t be changing the name of the content attribute. So you should eventually rename the function. In general, you should prefix your function names to avoid name conflicts like this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>600939</commentid>
    <comment_count>17</comment_count>
    <who name="rakesh makluri">mrakesh</who>
    <bug_when>2012-04-11 23:46:32 -0700</bug_when>
    <thetext>hmmm... :-)

  Ok, we will change the name of the API. Thanks you for spending time and giving information.
Regards,
Raeksh

(In reply to comment #16)
&gt; (In reply to comment #15)
&gt; &gt;My assumption now is, &quot;translate&quot; attribute name is not going to be chagned?
&gt; 
&gt; As far as I know, we won&apos;t be changing the name of the content attribute. So you should eventually rename the function. In general, you should prefix your function names to avoid name conflicts like this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>645304</commentid>
    <comment_count>18</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2012-06-09 05:42:19 -0700</bug_when>
    <thetext>Loading orange.fr with an iPhone user agent seems to work now.  I don&apos;t see that message in the console anymore.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>689915</commentid>
    <comment_count>19</comment_count>
    <who name="rakesh makluri">rakesh.makluri</who>
    <bug_when>2012-08-07 22:42:45 -0700</bug_when>
    <thetext>Hi Adam,

   With the option &quot;delete document.body.translate&quot;, am facing issue in Mac Safari6. With this operation not able to delete the &quot;translate&quot; attribute. Where as in chrome it is working fine. Do you have any idea?

(In reply to comment #14)
&gt; Oh, I think I misunderstood your earlier comment.  Are you using the Wink Toolkit?  It sounds like you&apos;re problem might be separate from the Wink issue.
&gt; 
&gt; There is an ugly way to hack around the issue.  You can delete the translate property from each element.  For example:
&gt; 
&gt; delete document.body.translate;
&gt; alert(document.body.translate);
&gt; ^^^ Now the translate property is gone.
&gt; 
&gt; It&apos;s a bit tricky because the property is on each element rather than on the prototype chain.  I&apos;m not sure what constraints you face, but that might be one option to explore.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>690393</commentid>
    <comment_count>20</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2012-08-08 09:22:36 -0700</bug_when>
    <thetext>This bug is resolved. If something broke again, please file a new bug.

That said, renaming translate in your code to not conflict with HTML5 is the best way to resolve this.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>