Changeset 248889 in webkit


Ignore:
Timestamp:
Aug 19, 2019 9:10:39 PM (5 years ago)
Author:
Nikita Vasilyev
Message:

Web Inspector: RTL: Network headers values should be preserved
https://bugs.webkit.org/show_bug.cgi?id=200873

Reviewed by Joseph Pecoraro.

Replace spans with bdi elements, which have unicode-bidi: isolate User Agent style.
This works well with both LTR and RTL values.

  • UserInterface/Views/ResourceDetailsSection.js:

(WI.ResourceDetailsSection.prototype.appendKeyValuePair):
Drive-by: remove unnecessary if/else statement and use append instead.

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r248873 r248889  
     12019-08-19  Nikita Vasilyev  <nvasilyev@apple.com>
     2
     3        Web Inspector: RTL: Network headers values should be preserved
     4        https://bugs.webkit.org/show_bug.cgi?id=200873
     5
     6        Reviewed by Joseph Pecoraro.
     7
     8        Replace spans with bdi elements, which have `unicode-bidi: isolate` User Agent style.
     9        This works well with both LTR and RTL values.
     10
     11        * UserInterface/Views/ResourceDetailsSection.js:
     12        (WI.ResourceDetailsSection.prototype.appendKeyValuePair):
     13        Drive-by: remove unnecessary if/else statement and use `append` instead.
     14
    1152019-08-19  Devin Rousso  <drousso@apple.com>
    216
  • trunk/Source/WebInspectorUI/UserInterface/Views/ResourceDetailsSection.js

    r238122 r248889  
    9595            keyElement.textContent = key + (value ? ": " : "");
    9696
    97             let valueElement = p.appendChild(document.createElement("span"));
     97            let valueElement = p.appendChild(document.createElement("bdi"));
    9898            valueElement.className = "value";
    99             if (value instanceof Node)
    100                 valueElement.appendChild(value);
    101             else
    102                 valueElement.textContent = value;
     99            valueElement.append(value || "");
    103100        }
    104101
Note: See TracChangeset for help on using the changeset viewer.