<?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>304117</bug_id>
          
          <creation_ts>2025-12-13 07:06:17 -0800</creation_ts>
          <short_desc>Cmd+b, Cmd+i, Cmd+u do not trigger bold/italic/underlined in contenteditable</short_desc>
          <delta_ts>2025-12-20 07:07:10 -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>HTML Editing</component>
          <version>Safari 26</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>macOS 26</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=129436</see_also>
          <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>michael</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>darin</cc>
    
    <cc>thorton</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2165654</commentid>
    <comment_count>0</comment_count>
    <who name="">michael</who>
    <bug_when>2025-12-13 07:06:17 -0800</bug_when>
    <thetext>These shortcuts work in other places of MacOS, e.g. in Apple Notes. Also other browsers (Chrome/Firefox) do support them.

Context: https://github.com/w3c/editing/issues/492

W3C Editing Call 2025-12-11:

&gt; 08:02 #492
&gt; 08:04 *** Ashish (~Ashish@2dbf1d10.publics.cloak) has joined the channel
&gt; 08:05 more of a request to make command+B/I/U toggle B/I/U in Safari
&gt; 08:06 seems inconsistent with iOS and other apps on macOS, but the &quot;not dispatching events&quot; part is consistent with not bolding</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2166054</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2025-12-15 16:02:31 -0800</bug_when>
    <thetext>Thank you for the report! This is currently expected behavior for WebKit, because these shortcuts are not hardcoded, they rely on matching menu actions, and Safari does not have a Format menu at all. I&apos;m assuming (but didn&apos;t check) that the same is true of AppKit.

That said, the behavior is clearly inconsistent with other browsers, and perhaps needs to be rethought.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2166061</commentid>
    <comment_count>2</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2025-12-15 16:18:52 -0800</bug_when>
    <thetext>We could fix this in Safari. If we expect to do that, then we should probably move this to a Safari bug report rather than a WebKit but report.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2166071</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2025-12-15 16:49:08 -0800</bug_when>
    <thetext>Indeed. For what it&apos;s worth, I do not think that adding a Format menu in Safari would be appropriate. And if we were to hardcode the key combinations somewhere, we&apos;d probably want contenteditable HTML content in other applications to gain the same quirk.

I&apos;m curious if these combinations are always the same in all localizations.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2166495</commentid>
    <comment_count>4</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2025-12-16 19:49:37 -0800</bug_when>
    <thetext>In terms of whether this should be a Format menu or something invisible that’s not in a menu, seems like it’s an Mac UI design decision that I would want help on from Apple’s HI team. I agree that we should seek a solution that would make this to work in other apps too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2167546</commentid>
    <comment_count>5</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-12-20 07:07:10 -0800</bug_when>
    <thetext>&lt;rdar://problem/166940952&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>