<?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>258073</bug_id>
          
          <creation_ts>2023-06-14 05:05:59 -0700</creation_ts>
          <short_desc>Implement &apos;dirtiness&apos; of HTMLOptionElement</short_desc>
          <delta_ts>2026-04-21 20:54:04 -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>Forms</component>
          <version>Safari Technology Preview</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>312876</dup_id>
          <see_also>https://github.com/whatwg/html/issues/9682</see_also>
          <bug_file_loc>http://wpt.live/html/semantics/forms/the-option-element/option-selected.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar, WPTImpact</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ahmad Saleem">ahmad.saleem792</reporter>
          <assigned_to name="Ahmad Saleem">ahmad.saleem792</assigned_to>
          <cc>annevk</cc>
    
    <cc>cdumez</cc>
    
    <cc>cyb.ai.815</cc>
    
    <cc>karlcow</cc>
    
    <cc>mike</cc>
    
    <cc>ntim</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1961540</commentid>
    <comment_count>0</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-06-14 05:05:59 -0700</bug_when>
    <thetext>Hi Team,

We need to implement &apos;dirtiness&apos; for HTMLOptionElement to pass following failing WPT tests:

Test: https://wpt.fyi/results/html/semantics/forms/the-option-element/option-selected.html?label=experimental&amp;label=master&amp;aligned

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

Just wanted to raise, so we can fix it.

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1961707</commentid>
    <comment_count>1</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2023-06-14 20:07:22 -0700</bug_when>
    <thetext>Seems like an 1:1 port.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1962358</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-06-18 16:27:47 -0700</bug_when>
    <thetext>Blink patch will cause regression, so this is follow-up: https://chromium.googlesource.com/chromium/src.git/+/f67251360e4b76d188bb1523d7a0952c2f449e68</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1962359</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-06-18 16:37:45 -0700</bug_when>
    <thetext>(In reply to Ahmad Saleem from comment #2)
&gt; Blink patch will cause regression, so this is follow-up:
&gt; https://chromium.googlesource.com/chromium/src.git/+/
&gt; f67251360e4b76d188bb1523d7a0952c2f449e68

Also another regression: https://chromium.googlesource.com/chromium/src/+/6d095ec7a71eb72e2ad9992d1ca3080f5726f6bf</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1962773</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-06-21 05:06:17 -0700</bug_when>
    <thetext>&lt;rdar://problem/111096541&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1965585</commentid>
    <comment_count>5</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-07-07 08:40:20 -0700</bug_when>
    <thetext>I merged these patches and got them compiled but got crashes in three tests. So I might be doing something wrong. Happy to zip and attach screenshots of my local patches.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2046186</commentid>
    <comment_count>6</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2024-07-14 12:53:28 -0700</bug_when>
    <thetext>I tried this again locally and now running via WIP to see what happens - last time it caused crashes locally but this time didn&apos;t.

https://github.com/WebKit/WebKit/pull/30802

In WIP / Draft - would be good to at least post what I tried locally.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2046263</commentid>
    <comment_count>7</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2024-07-15 07:48:04 -0700</bug_when>
    <thetext>Just documenting progress on bug rather than PR - it leads to failing two tests:

accessibility/listbox-clear-selection.html 
accessibility/select-element-at-index.html

I haven&apos;t explored yet but good to maintain list (some time old EWS runs are not accessible - hence documenting it here).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2203019</commentid>
    <comment_count>8</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2026-04-21 20:54:04 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 312876 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>