Changeset 14204 in webkit
- Timestamp:
- May 5, 2006, 7:59:18 AM (19 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r14201 r14204 1 2006-05-05 Matt Gough <matt@softchaos.com> 2 3 Reviewed by Darin. 4 5 <http://bugzilla.opendarwin.org/show_bug.cgi?id=8563> 6 7 Tests that the name, publicID and systemID are all read correctly 8 and that the doctype object preserves the case of the 9 components from the source html: 10 * fast/doctypes/005-case-preserving.html: Added. 11 * fast/doctypes/005-case-preserving-expected.txt: Added. 12 1 13 2006-05-04 Mitz Pettel <opendarwin.org@mitzpettel.com> 2 14 … … 465 477 that Node is autogenerated. 466 478 479 >>>>>>> .r14170 467 480 2006-04-25 Justin Garcia <justin.garcia@apple.com> 468 481 -
trunk/WebCore/ChangeLog
r14203 r14204 1 2006-05-05 Matt Gough <matt@softchaos.com> 2 3 Reviewed by Darin. 4 5 http://bugzilla.opendarwin.org/show_bug.cgi?id=8563 6 7 The doctype object in the DOM is now usable by client code 8 as opposed to always being exposed as nil. Now also ensures that 9 the 'name' of the component preserves the case of the original html source. 10 (i.e HtMl -> HtMl not HTML) 11 12 * dom/Document.h: 13 Changes comment by docType() to say it may return 0 for html 14 * html/HTMLDocument.cpp: 15 (WebCore::parseDocTypeDeclaration): 16 (WebCore::HTMLDocument::determineParseMode): 17 Preserves the case of the name component 18 (WebCore::HTMLDocument::doctype):removed 19 * html/HTMLDocument.h: 20 (WebCore::HTMLDocument::doctype):removed 21 1 22 2006-05-05 Rob Buis <buis@kde.org> 2 23 -
trunk/WebCore/dom/Document.h
r14043 r14204 122 122 // DOM methods & attributes for Document 123 123 124 virtual DocumentType* doctype() const; // returns0 for HTML documents124 virtual DocumentType* doctype() const; // May return 0 for HTML documents 125 125 DocumentType* realDocType() const { return m_docType.get(); } 126 126 -
trunk/WebCore/html/HTMLDocument.cpp
r13821 r14204 245 245 static bool parseDocTypeDeclaration(const DeprecatedString& buffer, 246 246 int* resultFlags, 247 DeprecatedString& name, 247 248 DeprecatedString& publicID, 248 249 DeprecatedString& systemID) … … 280 281 return false; 281 282 283 name = buffer.mid(index, 4); 282 284 index = parseDocTypePart(buffer, index+4); 283 285 bool hasPublic = containsString("public", buffer, index); … … 367 369 // the letter. 368 370 369 DeprecatedString systemID, publicID;371 DeprecatedString name, systemID, publicID; 370 372 int resultFlags = 0; 371 if (parseDocTypeDeclaration(str, &resultFlags, publicID, systemID)) {373 if (parseDocTypeDeclaration(str, &resultFlags, name, publicID, systemID)) { 372 374 if (resultFlags & PARSEMODE_HAVE_DOCTYPE) 373 setDocType(new DocumentType(this, "HTML", publicID, systemID));375 setDocType(new DocumentType(this, name, publicID, systemID)); 374 376 if (!(resultFlags & PARSEMODE_HAVE_DOCTYPE)) { 375 377 // No doctype found at all. Default to quirks mode and Html4. … … 430 432 } 431 433 432 DocumentType *HTMLDocument::doctype() const 433 { 434 // According to a comment in dom_doc.cpp, doctype is null for HTML documents. 435 return 0; 436 } 437 438 } 434 } -
trunk/WebCore/html/HTMLDocument.h
r13821 r14204 75 75 } 76 76 77 virtual DocumentType* doctype() const;78 79 77 typedef HashMap<StringImpl*, int> NameCountMap; 80 78
Note:
See TracChangeset
for help on using the changeset viewer.