WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
VERIFIED FIXED
7724
Minor refactoring to HTMLParser::handleError() to remove duplicate code
https://bugs.webkit.org/show_bug.cgi?id=7724
Summary
Minor refactoring to HTMLParser::handleError() to remove duplicate code
David Kilzer (:ddkilzer)
Reported
2006-03-11 14:14:32 PST
This code could be consolidated: // .... } else if (h->hasLocalName(titleTag)) { popBlock(currentTagName); handled = true; // .... } else if (h->hasLocalName(dlTag) || h->hasLocalName(dtTag)) { popBlock(currentTagName); handled = true; // .... } else if (h->hasLocalName(addressTag)) { popBlock(currentTagName); handled = true; // .... } else if (h->hasLocalName(fontTag)) { popBlock(currentTagName); handled = true; // .... However, tests should be written for this code since commenting out the duplicate code did not cause any tests to break.
Attachments
Patch v1
(14.02 KB, patch)
2006-03-11 17:57 PST
,
David Kilzer (:ddkilzer)
darin
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
David Kilzer (:ddkilzer)
Comment 1
2006-03-11 14:28:28 PST
Actually, commented out the titleTag code causes test failures, but the others do not!
David Kilzer (:ddkilzer)
Comment 2
2006-03-11 17:57:32 PST
Created
attachment 7015
[details]
Patch v1 Patch to refactor code in HTMLParser::handleError() and test cases to cover changed code (which previously had no coverage).
Darin Adler
Comment 3
2006-03-11 22:08:17 PST
Comment on
attachment 7015
[details]
Patch v1 r=me
David Kilzer (:ddkilzer)
Comment 4
2006-03-19 06:09:09 PST
Verified by inspection of htmlparser.cpp.
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