This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make deleting all text while editing a DOM attribute in
the Inspector delete the attribute. This also fixes an exception that would happen before. https://bugs.webkit.org/show_bug.cgi?id=20472 Reviewed by Kevin McCullough. * page/inspector/ElementsPanel.js: (WebInspector.DOMNodeTreeElement.prototype._attributeEditingCommitted): Don't check for hasAttributes on the parseElement, continuing through the function will correctly remove the attribute. If the parseElement is null, call _editingCancelled not editingCancelled, this fixes an exception. Canonical link: https://commits.webkit.org/28284@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@35878 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing 2 changed files with 19 additions and 2 deletions.