| Summary: | baseURI getter returns bogus values in some cases | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Boris Zbarsky <bzbarsky> |
| Component: | DOM | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED CONFIGURATION CHANGED | ||
| Severity: | Normal | CC: | ahmad.saleem792, ap, bfulgham, rniwa, sam |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
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.