mirror of
https://github.com/RGBCube/serenity
synced 2025-07-01 11:12:07 +00:00
LibWeb: Rename HTMLDocumentParser => HTMLParser
This commit is contained in:
parent
0ee457dfdf
commit
f67648f872
18 changed files with 106 additions and 106 deletions
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
#include <LibWeb/HTML/DOMParser.h>
|
||||
#include <LibWeb/HTML/Parser/HTMLDocumentParser.h>
|
||||
#include <LibWeb/HTML/Parser/HTMLParser.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
|
@ -27,7 +27,7 @@ NonnullRefPtr<DOM::Document> DOMParser::parse_from_string(String const& string,
|
|||
// NOTE: This isn't a case insensitive match since the DOMParserSupportedType enum enforces an all lowercase type.
|
||||
if (type == "text/html") {
|
||||
// FIXME: Set document's type to "html".
|
||||
HTMLDocumentParser parser(document, string, "UTF-8");
|
||||
HTMLParser parser(document, string, "UTF-8");
|
||||
// FIXME: This is to match the default URL. Instead, pass in this's relevant global object's associated Document's URL.
|
||||
parser.run("about:blank");
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue