[webkit-changes] [WebKit/WebKit] 0b0843: Web Inspector: Parse attributes added via editing ...

Razvan Caliman - Apple noreply at github.com
Mon Jul 29 09:50:26 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 0b084355708b8e18ed3953423fc6e7fc018cca90
      https://github.com/WebKit/WebKit/commit/0b084355708b8e18ed3953423fc6e7fc018cca90
  Author: Razvan Caliman <rcaliman at apple.com>
  Date:   2024-07-29 (Mon, 29 Jul 2024)

  Changed paths:
    M Source/WebInspectorUI/UserInterface/Views/DOMTreeElement.js

  Log Message:
  -----------
  Web Inspector: Parse attributes added via editing the tag name
https://bugs.webkit.org/show_bug.cgi?id=276533
rdar://problem/131607290

Reviewed by Devin Rousso.

Allow the user to input attributes when editing a node's tag name in the DOM node tree.

Take the first space-delimited substring to use as the tag name and use the rest as a string of attributes.
If the new tag name is invalid, the entire transaction will reject and revert to the original node.

* Source/WebInspectorUI/UserInterface/Views/DOMTreeElement.js:
(WI.DOMTreeElement.prototype._startEditingTagName.keyupListener):
(WI.DOMTreeElement.prototype._tagNameEditingCommitted):
(WI.DOMTreeElement.prototype._tagNameEditingCommitted.changeTagNameCallback): Deleted.

Canonical link: https://commits.webkit.org/281507@main



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list