<?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>232614</bug_id>
          
          <creation_ts>2021-11-02 02:35:46 -0700</creation_ts>
          <short_desc>jsaction attribute not removed when enable-javascript-markup is disabled</short_desc>
          <delta_ts>2021-11-02 09:45:07 -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>JavaScriptCore</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Milan Crha">mcrha</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>mcatanzaro</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1811075</commentid>
    <comment_count>0</comment_count>
    <who name="Milan Crha">mcrha</who>
    <bug_when>2021-11-02 02:35:46 -0700</bug_when>
    <thetext>Using webkit2gtk3-2.34.0.

According to the documentation of the WebKitSettings::enable-javascript-markup:

&gt; Determines whether or not JavaScript markup is allowed in document.
&gt; When this setting is disabled, all JavaScript-related elements and
&gt; attributes are removed from the document during parsing.

When the document has an element with a `jsaction` attribute and the markup is disabled, then this `jsaction` attribute is preserved.

I cannot tell whether it has any effect, but I&apos;d expect it being removed the same as other attributes, like an `onclick` attribute.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1811114</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2021-11-02 08:08:36 -0700</bug_when>
    <thetext>Hmmm, I think jsaction must refer to the third-party JS library https://github.com/google/jsaction. It doesn&apos;t appear to be a web standard that WebKit implements or knows about as we have zero hits for it anywhere in WebCore or JavaScriptCore, also zero hits on MDN. So I think this is not a bug. The attributes shouldn&apos;t do anything unless you run JS that makes them do something. Please reopen if I&apos;ve misunderstood something.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1811153</commentid>
    <comment_count>2</comment_count>
    <who name="Milan Crha">mcrha</who>
    <bug_when>2021-11-02 09:45:07 -0700</bug_when>
    <thetext>Right, it looks like some 3rd-party thing (which I saw for the first time today). I probably won&apos;t care that much, if the WebKit sources did not reference it at all, but there are some hits in the PerformanceTests/.

Anyway, if it&apos;s not interpreted by the WebKit, neither a module loaded by it, then it&apos;s fine. I&apos;d be happier with a safe side, drop it too, but I&apos;m not reopening this.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>