Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Wow, great use of the attr function, thank you!


If the anchor tag already has the URL as text, then will the URL be printed twice?

Like if I've got

  <a href="https://www.google.com/">https://www.google.com/</a>
Will it print like this?

  https://www.google.com (https://www.google.com)


Based on the above, yes.


would recommend printing URLs in a very narrow font so they don't eat up the entire page


That's a pretty common Accessibility best practice for print CSS!


Shouldn't this be an option in the browser print dialog instead?


No


Great argument.


They asked a yes/no question. In the spirit of HN pedantic comments, I answered their question fully.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: