<?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>128020</bug_id>
          
          <creation_ts>2014-01-31 14:41:35 -0800</creation_ts>
          <short_desc>&lt;a&gt;/&lt;area&gt;&apos;s origin getter returns &quot;null&quot; rather than &quot;&quot; when URL cannot be parsed</short_desc>
          <delta_ts>2023-08-24 02:11:09 -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>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>128023</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Maciej Stachowiak">mjs</reporter>
          <assigned_to name="Anne van Kesteren">annevk</assigned_to>
          <cc>annevk</cc>
    
    <cc>ap</cc>
    
    <cc>karlcow</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>974485</commentid>
    <comment_count>0</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2014-01-31 14:41:35 -0800</bug_when>
    <thetext>The origin attribute returns null instead of empty on on invalid URL. The URL spec says to return empty.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1972014</commentid>
    <comment_count>1</comment_count>
    <who name="Anne van Kesteren">annevk</who>
    <bug_when>2023-08-18 03:21:30 -0700</bug_when>
    <thetext>This only applies to the &lt;a&gt; and &lt;area&gt; elements I think (not sure how to construct a URL or Location from a string that cannot be parsed as a URL), but it&apos;s still applicable and is probably not difficult to fix:

http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0A...%3Cscript%3E%0Aa%3Ddocument.createElement(%22a%22)%3B%0Aa.href%3D%22https%3A%2F%2Ftest%3Atest%2F%22%3B%0Aw(a.origin)%3B%0A%3C%2Fscript%3E</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1972020</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-08-18 04:02:26 -0700</bug_when>
    <thetext>&lt;rdar://problem/114078288&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1972022</commentid>
    <comment_count>3</comment_count>
    <who name="Anne van Kesteren">annevk</who>
    <bug_when>2023-08-18 04:14:42 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/16830</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1973231</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-08-24 02:11:08 -0700</bug_when>
    <thetext>Committed 267222@main (0e09f4e4a3b4): &lt;https://commits.webkit.org/267222@main&gt;

Reviewed commits have been landed. Closing PR #16830 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>