[Webkit-unassigned] [Bug 144652] New: baseURI getter returns bogus values in some cases

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 5 18:34:24 PDT 2015


https://bugs.webkit.org/show_bug.cgi?id=144652

            Bug ID: 144652
           Summary: baseURI getter returns bogus values in some cases
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (Nightly build)
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML DOM
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: bzbarsky at mit.edu

Consider this web page:

  <iframe></iframe>
  <script>
    onload = function() {
      var doc = frames[0].document;
      doc.body.innerHTML = '<a href=""></a>'
      alert("Document base URI: " + doc.baseURI);
      alert("Anchor base URI: " + doc.querySelector('a').baseURI);
      alert("Anchor href: " + doc.querySelector('a').href);    }
  </script>

This should alert the URI of the web page three times.  In Safari it instead alerts "about:blank", "null", and the URI of the web page, respectively.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150506/55e11503/attachment-0001.html>


More information about the webkit-unassigned mailing list