Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(277)

Side by Side Diff: Source/core/xml/DOMParser.h

Issue 24483007: Make DOMParser::parseFromString specification compliant and throw exception in error scenario. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch after adding descriptive message. Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003, 2006 Apple Computer, Inc. 2 * Copyright (C) 2003, 2006 Apple Computer, Inc.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public 5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details. 12 * Lesser General Public License for more details.
13 * 13 *
14 * You should have received a copy of the GNU Lesser General Public 14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software 15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 U SA 16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 U SA
17 */ 17 */
18 18
19 #ifndef DOMParser_h 19 #ifndef DOMParser_h
20 #define DOMParser_h 20 #define DOMParser_h
21 21
22 #include "bindings/v8/ScriptWrappable.h" 22 #include "bindings/v8/ScriptWrappable.h"
23 #include "wtf/Forward.h" 23 #include "wtf/Forward.h"
24 #include "wtf/RefCounted.h" 24 #include "wtf/RefCounted.h"
25 #include "wtf/RefPtr.h" 25 #include "wtf/RefPtr.h"
26 26
27 namespace WebCore { 27 namespace WebCore {
28 28
29 class Document; 29 class Document;
30 class ExceptionState;
30 31
31 class DOMParser : public RefCounted<DOMParser>, public ScriptWrappable { 32 class DOMParser : public RefCounted<DOMParser>, public ScriptWrappable {
32 public: 33 public:
33 static PassRefPtr<DOMParser> create() { return adoptRef(new DOMParser); } 34 static PassRefPtr<DOMParser> create() { return adoptRef(new DOMParser); }
34 35
35 PassRefPtr<Document> parseFromString(const String&, const String& contentTyp e); 36 PassRefPtr<Document> parseFromString(const String&, const String& contentTyp e, ExceptionState&);
36 37
37 private: 38 private:
38 DOMParser() 39 DOMParser()
39 { 40 {
40 ScriptWrappable::init(this); 41 ScriptWrappable::init(this);
41 } 42 }
42 }; 43 };
43 44
44 } 45 }
45 46
46 #endif // XMLSerializer.h 47 #endif // XMLSerializer.h
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/domparser-parsefromstring-mimetype-support-expected.txt ('k') | Source/core/xml/DOMParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698