mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 10:48:41 +00:00
LibWeb: Rename HTMLDocumentParser => HTMLParser
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user