<?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>268218</bug_id>
          
          <creation_ts>2024-01-27 03:36:19 -0800</creation_ts>
          <short_desc>import-w3c-tests rewrites HTML of tests in a way that impacts at least one test</short_desc>
          <delta_ts>2024-08-08 00:03:33 -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>Tools / Tests</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=207736</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=207731</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=277793</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 name="Anne van Kesteren">annevk</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>cdumez</cc>
    
    <cc>gsnedders</cc>
    
    <cc>rniwa</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2008138</commentid>
    <comment_count>0</comment_count>
    <who name="Anne van Kesteren">annevk</who>
    <bug_when>2024-01-27 03:36:19 -0800</bug_when>
    <thetext>When importing web-platform-tests/html/syntax/parsing/ambiguous-ampersand.html one line ends up being slightly rewritten in a way that impacts the test.

Instead of

  &lt;div&gt;&lt;a href=&apos;?a=b&amp;c=d&amp;a0b=c&amp;copy=1&amp;noti=n&amp;not=in&amp;notin=&amp;notin;&amp;not;&amp;;&amp; &amp;&apos;&gt;Link&lt;/a&gt;&lt;p&gt;Text: ?a=b&amp;c=d&amp;a0b=c&amp;copy=1&amp;noti=n&amp;not=in&amp;notin=&amp;notin;&amp;not;&amp;;&amp; &amp;&lt;/p&gt;&lt;/div&gt;

you get

  &lt;div&gt;&lt;a href=&apos;?a=b&amp;c=d&amp;a0b=c&amp;copy=1&amp;noti=n&amp;not=in&amp;notin=&amp;notin;&amp;not;&amp;;&amp; &amp;&apos;&gt;Link&lt;/a&gt;&lt;p&gt;Text: ?a=b&amp;c;=d&amp;a0b;=c&amp;copy;=1&amp;noti;=n&amp;not;=in&amp;notin;=&amp;notin;&amp;not;&amp;;&amp; &amp;&lt;/p&gt;&lt;/div&gt;

This is the result of the _W3CTestConverter class serializing HTML entities in a somewhat uniform way.

I have not tried to determine if this impacts other tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2008422</commentid>
    <comment_count>1</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2024-01-29 02:48:48 -0800</bug_when>
    <thetext>Yeah; the fix for this is the same as the See Also bugs, to just not do the parse/serialize cycle if the test converter doesn&apos;t change anything (really the overall fix is Bug 217522, which gets rid of any need for the converter in the first place),

That said, others (especially Alexey) had raised concerns about just dropping it and whether that would lead to other unintended test changes — and that&apos;s hard to verify without first having all of WPT up-to-date to then be able to do a second reimport with this fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2008431</commentid>
    <comment_count>2</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2024-01-29 04:14:36 -0800</bug_when>
    <thetext>We could try to:
1. Disable converter for any test folder that we start importing
2. Manually disable folder by folder the converter (many folders should not be affected at all).

Storing whether to convert or not specific folders could be done in import-expectations.json.

We could start disabling the importer with folders like web-platform-tests/html/syntax/parsing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2010358</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-02-03 03:37:13 -0800</bug_when>
    <thetext>&lt;rdar://problem/122230507&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>