mirror of
https://github.com/RGBCube/serenity
synced 2026-01-19 13:41:01 +00:00
We were previously embedding the original text to handle the special case where the text is empty. We generate an extra span to hold the string "#text" as a placeholder, so that we don't generate a 0px-wide, unclickable (and therefore uneditable) node. Instead, we can just detect when this is the case in the Inspector JS. This further reduces the generated HTML for the Inspector on https://github.com/SerenityOS/serenity from 1.9MB to 1.8MB (about 94KB, or 4.7%). |
||
|---|---|---|
| .. | ||
| apps | ||
| color-palettes | ||
| color-schemes | ||
| cursor-themes | ||
| devel/templates | ||
| emoji | ||
| fonts | ||
| graphics | ||
| html/misc | ||
| icons | ||
| js/Spreadsheet | ||
| keymaps | ||
| ladybird | ||
| themes | ||
| wallpapers | ||
| fortunes.json | ||
| words.txt | ||