whatwg/html

Escaped characters in source

Offen

#3.683 geöffnet am 14.05.2018

 (4 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)HTML (2.520 Forks)batch import
good first issue

Repository-Metriken

Stars
 (7.654 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 42T 18h) (22 gemergte PRs in 30 T)

Beschreibung

The current source file has a large number of encoded entities. This makes it rather hard to edit and read. As UTF-8 is everywhere, is it time to replace these with their Unicode representation?

For example:

  <li value="9"><cite lang="sh">Црна мачка, бели мачор</cite>, 1998</li>

Becomes:

  <li value="9"><cite lang="sh">Црна мачка, бели мачор</cite>, 1998</li>

And

<p w-nodev>In an algorithm, steps in <span data-x="synchronous section">synchronous
  sections</span> are marked with &#x231B;.</p>

Could be changed to:

<p w-nodev>In an algorithm, steps in <span data-x="synchronous section">synchronous
  sections</span> are marked with ⌛.</p>

There is one obvious exception - invisible / non-printing characters.

Would you be interested in a pull request to transform all the &#x... references to decoded equivalent?

This builds upon the HTML5.3 work done in https://github.com/w3c/html/pull/1280

Contributor Guide