Issue metadata
Sign in to add a comment
|
Anchor targeting does not work right with javascript: URLs
Reported by
bzbar...@mit.edu,
Oct 10 2017
|
||||||||||||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:58.0) Gecko/20100101 Firefox/58.0 Steps to reproduce the problem: 1. Load the testcase. 2. Click the link. What is the expected behavior? The text "THIS SHOULD BE IN THE SUBFRAME" appears in the subframe. What went wrong? The text overwrote the whole page. Did this work before? No Does this work in other browsers? Yes Chrome version: 63.0.3230.0 (Official Build) dev (64-bit) Channel: n/a OS Version: OS X 10.12 Flash Version: Shockwave Flash 26.0 r0 The HTML spec is pretty clear on this: the target is used to find the right browsing context before any script gets run, and then it runs in the current window in the target browsing context. This also means that something like this: <a href="javascript:'THIS SHOULD BE IN THE NEW WINDOW'" target="_blank">Click me</a> Should open a new window and run the script in that new window. In Chrome that doesn't happen.
,
Oct 10 2017
,
Oct 11 2017
|
|||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||
Comment 1 by bzbar...@mit.edu
, Oct 10 2017