Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 349b0b974ee49abcb5af48cf85c64e266b2da1e8
https://github.com/WebKit/WebKit/commit/349b0b974ee49abcb5af48cf85c64e266b2da1e8
Author: Razvan Caliman <[email protected]>
Date: 2025-09-30 (Tue, 30 Sep 2025)
Changed paths:
M Source/WebInspectorUI/UserInterface/Views/DOMTreeElement.js
Log Message:
-----------
Web Inspector: Elements: Adding an attribute via the context menu on a
closing tag throws an exception
https://bugs.webkit.org/show_bug.cgi?id=299802
rdar://161577627
Reviewed by Devin Rousso.
The context menu for the element closing tag in the DOM tree offers the same
actions
as for the opening tag, but they operate in the context of the
`WI.DOMTreeElement` of the closing tag.
Technically, Web Inspector should not offer the actions, but,
as a convenience, we can redirect them to the context of the opening tag.
This solves the Add > Attribute exception as well as some UI glitches with
Add > Previous Sibling and Add > Child where the position of the added node
shifts
after committing the value.
* Source/WebInspectorUI/UserInterface/Views/DOMTreeElement.js:
(WI.DOMTreeElement.prototype.populateDOMNodeContextMenu):
Canonical link: https://commits.webkit.org/300752@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes