Changeset 61971 in webkit
- Timestamp:
- Jun 27, 2010 3:09:17 PM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r61970 r61971 1 2010-06-27 Adam Barth <abarth@webkit.org> 2 3 Reviewed by Eric Seidel. 4 5 Actually insert Doctype elements 6 https://bugs.webkit.org/show_bug.cgi?id=41262 7 8 This code is pretty much the same as in the old tree builder. 9 10 * html/HTMLToken.h: 11 (WebCore::AtomicHTMLToken::publicIdentifier): 12 (WebCore::AtomicHTMLToken::systemIdentifier): 13 * html/HTMLTreeBuilder.cpp: 14 (WebCore::HTMLTreeBuilder::insertDoctype): 15 1 16 2010-06-27 Andreas Kling <andreas.kling@nokia.com> 2 17 -
trunk/WebCore/html/HTMLToken.h
r61822 r61971 362 362 363 363 // FIXME: Distinguish between a missing public identifer and an empty one. 364 constWTF::Vector<UChar>& publicIdentifier() const364 WTF::Vector<UChar>& publicIdentifier() const 365 365 { 366 366 ASSERT(m_type == HTMLToken::DOCTYPE); … … 369 369 370 370 // FIXME: Distinguish between a missing system identifer and an empty one. 371 constWTF::Vector<UChar>& systemIdentifier() const371 WTF::Vector<UChar>& systemIdentifier() const 372 372 { 373 373 ASSERT(m_type == HTMLToken::DOCTYPE); -
trunk/WebCore/html/HTMLTreeBuilder.cpp
r61966 r61971 29 29 #include "Comment.h" 30 30 #include "DocumentFragment.h" 31 #include "DocumentType.h" 31 32 #include "Element.h" 32 33 #include "Frame.h" … … 593 594 void HTMLTreeBuilder::insertDoctype(AtomicHTMLToken& token) 594 595 { 595 ASSERT_UNUSED(token, token.type() == HTMLToken::DOCTYPE); 596 ASSERT(token.type() == HTMLToken::DOCTYPE); 597 m_document->addChild(DocumentType::create(m_document, token.name(), String::adopt(token.publicIdentifier()), String::adopt(token.systemIdentifier()))); 598 // FIXME: Move quirks mode detection from DocumentType element to here. 599 notImplemented(); 600 if (token.forceQuirks()) 601 m_document->setParseMode(Document::Compat); 596 602 } 597 603
Note: See TracChangeset
for help on using the changeset viewer.