<?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>266561</bug_id>
          
          <creation_ts>2023-12-17 15:58:45 -0800</creation_ts>
          <short_desc>Display:contents elements are &quot;rendered&quot; for innerText</short_desc>
          <delta_ts>2025-03-11 22:04:44 -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>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>BrowserCompat, InRadar, WPTImpact</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>289597</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Ahmad Saleem">ahmad.saleem792</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cdumez</cc>
    
    <cc>karlcow</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2000307</commentid>
    <comment_count>0</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-12-17 15:58:45 -0800</bug_when>
    <thetext>Hi Team,

While going through Blink&apos;s commit and WPT failures, I came across another failing test cases:

Blink Commit: https://chromium.googlesource.com/chromium/src.git/+/1db9cd28e195d4af700dc841988282de7c58bbd6

WebKit Source: https://searchfox.org/wubkat/rev/9222f67347ee90fcc400687e756ef8c8979748f0/Source/WebCore/dom/Element.cpp#3891

I tried in the past (hasDisplayContents() &lt;- bool function in Element.cpp) but we start failing / crashing WPT test case on release.

WPT Test Case: https://wpt.fyi/results/html/dom/elements/the-innertext-and-outertext-properties/getter.html?label=master&amp;label=experimental&amp;aligned=&amp;q=safari%3Afail

&gt; display:contents not processed via textContent (&quot;&lt;div style=&apos;display:contents&apos;&gt; &quot;)

We fail above which this Blink progressed.

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2001845</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-12-24 15:59:14 -0800</bug_when>
    <thetext>&lt;rdar://problem/120100373&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>