Hacker News new | ask | show | jobs
by LaputanMachine 1875 days ago
You can even open the website recursively within its own "Safari" window. The recursion depth seems to be limited to one though. Nice easter egg nonetheless.

Edit: It's possible to bypass the recursion limit. First open the "Blog" bookmark on the Safari start page. Use Inspect Element on the "portfolio" link at the top right, and remove

    target="_blank"
from the HTML. Open the portfolio and enjoy infinite recursion.
3 comments

Someone should try to write a copy of this inside the VSCode editor in the site.
Bruh
Interesting. It is using iframes behind the scenes. According to W3C it should limit the recursion depth to one, but it seems that you can get around that.

Relevant: https://www.bryanbraun.com/2021/03/24/infinitely-nested-ifra...

I didn't experience a recursion limit when I just tried it. Maybe the site was updated after your comment? I'm using Firefox.
It's still not working for me for some reason.

In the second recursion step, when entering the URL manually, the tab remains blank. If I instead try to click on the unedited "portfolio" link, the site opens in a new (native) tab.

Happens on Safari and Firefox (macOS) as well as Chromium (Debian).

I did notice if you have a trailing slash, and you remove it... it usually loads then.
Same here - Firefox on Windows 10. I only went about three deep but... neat!