Changeset 58019 in webkit
- Timestamp:
- Apr 21, 2010 4:11:40 PM (14 years ago)
- Location:
- trunk/WebKit/chromium
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/chromium/ChangeLog
r57927 r58019 1 2010-04-21 Evan Stade <estade@chromium.org> 2 3 Reviewed by Darin Fisher. 4 5 [chromium] Web page serializer saves tag names in upper case 6 https://bugs.webkit.org/show_bug.cgi?id=37940 7 8 Simply convert all tags to lower case. 9 10 This is tested by chrome tests: 11 - save page browser tests 12 - encoding ui tests 13 - web page serializer test shell tests 14 15 * src/WebPageSerializer.cpp: 16 (WebKit::WebPageSerializer::generateMetaCharsetDeclaration): 17 (WebKit::WebPageSerializer::generateBaseTagDeclaration): 18 * src/WebPageSerializerImpl.cpp: 19 (WebKit::WebPageSerializerImpl::openTagToString): 20 (WebKit::WebPageSerializerImpl::endTagToString): 21 1 22 2010-04-20 Adam Barth <abarth@webkit.org> 2 23 -
trunk/WebKit/chromium/src/WebPageSerializer.cpp
r52268 r58019 60 60 WebString WebPageSerializer::generateMetaCharsetDeclaration(const WebString& charset) 61 61 { 62 return String::format("< METAhttp-equiv=\"Content-Type\" content=\"text/html; charset=%s\">",62 return String::format("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=%s\">", 63 63 charset.utf8().data()); 64 64 } … … 76 76 if (!baseTarget.isEmpty()) 77 77 targetDeclaration = String::format(" target=\"%s\"", baseTarget.utf8().data()); 78 return String::format("< BASEhref=\".\"%s>", targetDeclaration.utf8().data());78 return String::format("<base href=\".\"%s>", targetDeclaration.utf8().data()); 79 79 } 80 80 -
trunk/WebKit/chromium/src/WebPageSerializerImpl.cpp
r57927 r58019 307 307 return; 308 308 // Add open tag 309 result += "<" + element->nodeName() ;309 result += "<" + element->nodeName().lower(); 310 310 // Go through all attributes and serialize them. 311 311 const NamedNodeMap *attrMap = element->attributes(true); … … 375 375 if (element->hasChildNodes() || param->hasAddedContentsBeforeEnd) { 376 376 result += "</"; 377 result += element->nodeName() ;377 result += element->nodeName().lower(); 378 378 result += ">"; 379 379 } else { … … 386 386 // We need to write end tag when it is required. 387 387 result += "</"; 388 result += element->nodeName() ;388 result += element->nodeName().lower(); 389 389 result += ">"; 390 390 }
Note: See TracChangeset
for help on using the changeset viewer.