1
Fork 0
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:
Andreas Kling 2021-09-25 23:15:48 +02:00
parent 0ee457dfdf
commit f67648f872
18 changed files with 106 additions and 106 deletions

View file

@ -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 {