Bug 30618

Summary: Bug in viewsource when EOF right after <script>/<style>
Product: WebKit Reporter: Keishi Hattori <keishi>
Component: Web Inspector (Deprecated)Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: bburg, bweinstein, hyatt, joepeck, keishi, pfeldman, pmuellr, rik
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   

Keishi Hattori
Reported 2009-10-20 22:28:32 PDT
SourceView in Resources is weird when there is an EOF right after a style or script element. <style> a {} </style> is shown as <style> a {} </style> a {} </style>
Attachments
Keishi Hattori
Comment 1 2009-10-21 08:12:14 PDT
Pavel Feldman
Comment 2 2009-10-29 14:13:17 PDT
Same happens to: BEGIN ================================ <script> function testAPI() { var resultStr = ""; var toolstrips = chrome.extension.getToolstrips(); resultStr += "toolstrips count: " + toolstrips.length; var reportWin = window.open("result.html", "reportWin"); var resultDiv = reportWin.document.getElementById("result"); resultDiv.innerHTML = resultStr; } </script> END ================================== but when i remove the last function line and make it BEGIN ================================ <script> function testAPI() { var resultStr = ""; var toolstrips = chrome.extension.getToolstrips(); resultStr += "toolstrips count: " + toolstrips.length; var reportWin = window.open("result.html", "reportWin"); var resultDiv = reportWin.document.getElementById("result"); } </script> END ================================== It shows up right. So it is not the EOF that triggers it - it could be something different.
Note You need to log in before you can comment on or make changes to this bug.