Recent submissions

Comment · 6 years ago
I thought that "/" was absolute and "../../something/else" was relative.
Comment · 6 years ago
would you need the doctype if the user-agent said it was html5 compliant?
Comment · 6 years ago
wow, two things:

1. thanks for the link. that documentation is realllly put together well.

2. for anyone else who goes to the docs, scroll down to the table bit. Official HTML never looked so close to markdown before. But I guess it's legal, with the <td> omissions, etc.

cool stuff!

EDIT: posting code here

  <table>
   <caption>37547 TEE Electric Powered Rail Car Train Functions (Abbreviated)
   <colgroup><col><col><col>
   <thead>
    <tr> <th>Function                              <th>Control Unit     <th>Central Station
   <tbody>
    <tr> <td>Headlights                            <td>                <td>y
    <tr> <td>Interior Lights                       <td>x               <td>y
    <tr> <td>Electric locomotive operating sounds  <td>                <td>
    <tr> <td>Engineer's cab lighting               <td>x               <td>z
    <tr> <td>Station Announcements - Swiss         <td>x               <td>y
  </table>
Comment · 6 years ago
wait, for which tags does this apply? because won't

  <p>one<p>two<p>three<p>four
create four <p> elements nested together? does this only work with <a> tags?

your third point about the triple-identical (reminds me about TCP ACK and Re-transmit haha) is pretty nuts though

Comment · 6 years ago
okay, quasi-html
Comment · 6 years ago
Ah, maybe a better name would have helped:

HTML Code Golf - How to make really small HTML that doesn't break Firefox or Chrome, currently at least

Comment · 6 years ago
Comment · 6 years ago
they will be nested right. so

  <div>
  <p>
  <h1>
  <h2>
without closing tabs create the DOM tree div->p->h1->h2

if you were actually developing production code and misplaced, let's say, <p>'s closing tag, then that would mess up the rest of your tree (from your perspective -- the computer doesnt care)

Comment · 6 years ago
Yeah... I have "xterm-256color" hardcoded in my .bashrc because it just seems to... fix everything. I'm currently running Termite btw.
Comment · 7 years ago
Agreed. No idea what DS stands for in this context.
Comment · 7 years ago
Well that felt facetious

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton