Summary: | Web Inspector: Hitting ESC while editing element tag name leaves element in bad state | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Matt Baker <mattbaker> | ||||
Component: | Web Inspector | Assignee: | Joseph Pecoraro <joepeck> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | bburg, commit-queue, graouts, joepeck, mattbaker, nvasilyev, timothy, webkit-bug-importer | ||||
Priority: | P2 | Keywords: | InRadar | ||||
Version: | WebKit Nightly Build | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Attachments: |
|
Description
Matt Baker
2015-09-23 10:21:25 PDT
Created attachment 261828 [details]
[PATCH] Proposed Fix
Comment on attachment 261828 [details] [PATCH] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=261828&action=review > Source/WebInspectorUI/UserInterface/Views/DOMTreeElement.js:809 > + let originalClosingTagTextContent = closingTagElement ? closingTagElement.textContent : ""; const originalClosingTagTextContent = ... Comment on attachment 261828 [details] [PATCH] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=261828&action=review >> Source/WebInspectorUI/UserInterface/Views/DOMTreeElement.js:809 >> + let originalClosingTagTextContent = closingTagElement ? closingTagElement.textContent : ""; > > const originalClosingTagTextContent = ... Though true, we do this a lot and we haven't exactly standardized on this. I tend to use const when assigning a literal primitive to give it a better name. const betterNameForBool = true; const minimumSizeOfSomething = 15; const defaultDisplayString = "–"; Maybe we should start using const more for cases like this. Comment on attachment 261828 [details] [PATCH] Proposed Fix Clearing flags on attachment: 261828 Committed r190286: <http://trac.webkit.org/changeset/190286> All reviewed patches have been landed. Closing bug. |