3 ms·
If I'm understanding correctly, here, the semantic value of the <code /> element is ignored to increase DX. I personally wouldn't make that compromise, why is
by egeozcan 6y ago
If I'm understanding correctly, here, the semantic value of the <code /> element is ignored to increase DX.
I personally wouldn't make that compromise, why is pre-processing not simple enough?
- lobsang 6y agoYou could use <article /> instead (which I probably would). Jest tested it using dev tools, seems to work.
- z3t4 6y agoUsing some HTML elements like section makes Safari switch to "reader" mode. Which is broken.
- chrismorgan 6y agoThe outer <code> here is simply a very poor choice due to what I can only imagine is ignorance. It would be better removed, and the `code` rule in the stylesheet changed to `body` and `font-family: monospace` added. (And `code code` would need to be changed to `code`.)