WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
30618
Bug in viewsource when EOF right after <script>/<style>
https://bugs.webkit.org/show_bug.cgi?id=30618
Summary
Bug in viewsource when EOF right after <script>/<style>
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
Add attachment
proposed patch, testcase, etc.
Keishi Hattori
Comment 1
2009-10-21 08:12:14 PDT
Seems to go wrong here.
http://trac.webkit.org/browser/trunk/WebCore/html/HTMLTokenizer.cpp#L1565
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.
Top of Page
Format For Printing
XML
Clone This Bug