mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-13 11:42:38 +03:00
55ec1cbfb5
When a DOM text node is empty, we currently render the node name (which is "#text") in the Inspector. This is just to prevent displaying nothing at all, which looks a bit off. However, the patch to allow editing text fields neglected to allow editing these empty fields. This patch attaches the original text data as a data attribute, much like we do for DOM attributes. That is used as the editable text in the inspector, and the empty text fields are now wrapped in an editable span. |
||
---|---|---|
.. | ||
etc | ||
home/anon | ||
res | ||
root | ||
usr/share | ||
www |