1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-29 18:22:41 +01:00
phorge-phorge/src/infrastructure
epriestley 98fe8fae4a Use <td class="n" data-n="3"> instead of <th>3</th> for line numbers
Summary:
Ref T13161. Ref T12822. See PHI870. Long ago, the web was simple. You could leave your doors unlocked, you knew all your neighbors, crime hadn't been invented yet, and `<th>3</th>` was a perfectly fine way to render a line number cell containing the number "3".

But times have changed!

  - In PHI870, this isn't good for screenreaders. We can't do much about this, so switch to `<td>`.
  - In D19349 / T13105 and elsewhere, this `::after { content: attr(data-n); }` approach seems like the least bad general-purpose approach for preventing line numbers from being copied. Although Differential needs even more magic beyond this in the two-up view, this is likely good enough for the one-up view, and is consistent with other views (paste, harbormaster logs, general source display) where this technique is sufficient on its own.

The chance this breaks //something// is pretty much 100%, but we've got a week to figure out what it breaks. I couldn't find any issues immediately.

Test Plan:
  - Created, edited, deleted inlines in 1-up and 2-up views.
  - Replied, keyboard-navigated, keyboard-replied, drag-selected, poked and prodded everything.

Reviewers: amckinley

Reviewed By: amckinley

Maniphest Tasks: T13161, T12822

Differential Revision: https://secure.phabricator.com/D20188
2019-02-19 15:07:02 -08:00
..
cluster Add infrastructure for sending SMS via AWS SNS 2019-01-23 16:29:50 -08:00
contentsource Redesign Config Application 2016-08-29 15:49:49 -07:00
customfield Add basic, rough support for changing field behavior based on object subtype 2019-02-15 19:17:57 -08:00
daemon Correct schema irregularities (including weird keys) with worker task tables 2019-02-15 19:17:33 -08:00
diff Use <td class="n" data-n="3"> instead of <th>3</th> for line numbers 2019-02-19 15:07:02 -08:00
edges Continue making application fixes to Phabricator for changes to %Q semantics 2018-11-15 03:50:02 -08:00
env Replace all "setQueryParam()" calls with "remove/replaceQueryParam()" 2019-02-14 11:56:39 -08:00
events Remove support for the "TYPE_AUTH_WILLLOGIN" event 2018-12-28 00:16:22 -08:00
export Allow "bin/bulk export" to merge multiple queries and accept more flexible flags 2018-10-10 09:14:14 -07:00
graph Enable hovercards for the "Task Graph" UI in Maniphest 2017-10-04 11:12:01 -07:00
internationalization Improve UI for "wait" and "answered" MFA challenges 2018-12-28 00:18:53 -08:00
javelin When the profiler is active, keep it active if the user submits forms 2017-02-23 11:15:40 -08:00
lint/linter Linter fixes 2015-12-03 07:44:23 +11:00
log Add "%I" (instance name) to application log formats 2017-04-23 11:07:19 -07:00
management Provide "bin/files integrity" for debugging, maintaining and backfilling integrity hashes 2017-04-06 15:42:43 -07:00
markup Bump the markup cache version for URI changes 2019-02-13 12:25:18 -08:00
query Don't put "spacePHID IN (...)" constraints in queries which will raise policy exceptions 2019-01-28 09:03:32 -08:00
ssh Generate a random unique "Request ID" for SSH requests so processes can coordinate better 2018-03-22 13:44:30 -07:00
status Give Drydock Leases more modern status treatment 2018-02-13 13:15:57 -08:00
storage Allow a DAO object storage namespace to be forced to a particular value 2019-02-14 12:02:08 -08:00
syntax Pass the new default syntax highlighting map to the remarkup engine 2016-05-05 02:51:19 -07:00
testing When running unit tests, ignore any custom task fields 2017-04-02 09:36:17 -07:00
time Fix errors found by PHPStan 2017-02-18 09:24:56 +00:00
util Add a "metronome" for spreading service call load 2019-02-05 14:06:22 -08:00
PhabricatorEditor.php Mark some strings for translation 2015-06-09 23:06:52 +10:00