<?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>296244</bug_id>
          
          <creation_ts>2025-07-20 05:25:42 -0700</creation_ts>
          <short_desc>Paragraphs with &lt;code&gt; elements fail to translate</short_desc>
          <delta_ts>2025-07-27 05:26:17 -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>WebKit Misc.</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></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>aglow_sibling3n</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2131459</commentid>
    <comment_count>0</comment_count>
    <who name="">aglow_sibling3n</who>
    <bug_when>2025-07-20 05:25:42 -0700</bug_when>
    <thetext>I noticed Safari&apos;s language translation feature fails to translate any paragraph that contains an inline &lt;code&gt; element.

This would be really annoying for technical programming documentation, where inline &lt;code&gt; elements are frequently used.

Unsure if this is WebKit or Safari related.

Test page:

```
&lt;!DOCTYPE html&gt;
&lt;html lang=&quot;es&quot;&gt;
&lt;meta charset=&quot;utf-8&quot;&gt;
&lt;title&gt;Prueba de traducción&lt;/title&gt;
&lt;body&gt;

&lt;p&gt;Este es un párrafo en español que debería traducirse completamente al inglés. &lt;code&gt;console.log(&quot;Hola&quot;);&lt;/code&gt; Esta es otra oración en español que también debería traducirse si el proceso continuara.&lt;/p&gt;

&lt;p&gt;Un párrafo final para confirmar si la traducción se reanuda o no.&lt;/p&gt;

&lt;/body&gt;
&lt;/html&gt;
```

Expected output:
- User switches translation in Safari to &apos;English&apos;
- All text (except the &lt;code&gt;) should be translated to English

Actual output:
- User switches translation in Safari to &apos;English&apos;
- First paragraph remains untranslated
- Second paragraph successfully translates</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2132721</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-07-27 05:26:17 -0700</bug_when>
    <thetext>&lt;rdar://problem/156841907&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>