Hacker News new | ask | show | jobs
by voussoir 830 days ago
Wow, great use of the attr function, thank you!
3 comments

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.