https://bugs.webkit.org/show_bug.cgi?id=117487
Reviewed by Michael Saboff.
Merge https://chromium.googlesource.com/chromium/blink/+/
8da02d0ce3965c4e6bf227db856bce930393429a.
* html/parser/HTMLConstructionSite.cpp:
(WebCore::HTMLConstructionSite::insertDoctype):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@151421
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2013-06-10 Ryosuke Niwa <rniwa@webkit.org>
+
+ DocType strings should be 8 bit wide
+ https://bugs.webkit.org/show_bug.cgi?id=117487
+
+ Reviewed by Michael Saboff.
+
+ Merge https://chromium.googlesource.com/chromium/blink/+/8da02d0ce3965c4e6bf227db856bce930393429a.
+
+ * html/parser/HTMLConstructionSite.cpp:
+ (WebCore::HTMLConstructionSite::insertDoctype):
+
2013-06-10 Ryosuke Niwa <rniwa@webkit.org>
Make more functions const
{
ASSERT(token->type() == HTMLToken::DOCTYPE);
- const String& publicId = String::adopt(token->publicIdentifier());
- const String& systemId = String::adopt(token->systemIdentifier());
+ const String& publicId = StringImpl::create8BitIfPossible(token->publicIdentifier());
+ const String& systemId = StringImpl::create8BitIfPossible(token->systemIdentifier());
RefPtr<DocumentType> doctype = DocumentType::create(m_document, token->name(), publicId, systemId);
attachLater(m_attachmentRoot, doctype.release());