mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:47:45 +00:00
LibWeb: Port DOM::Document from DeprecatedString
This commit is contained in:
parent
c4d3134436
commit
f976ec005c
12 changed files with 55 additions and 55 deletions
|
@ -225,7 +225,7 @@ WebIDL::ExceptionOr<BrowsingContext::BrowsingContextAndDocument> BrowsingContext
|
|||
// 15. If creator is non-null, then:
|
||||
if (creator) {
|
||||
// 1. Set document's referrer to the serialization of creator's URL.
|
||||
document->set_referrer(creator->url().serialize());
|
||||
document->set_referrer(MUST(String::from_deprecated_string(creator->url().serialize())));
|
||||
|
||||
// FIXME: 2. Set document's policy container to a clone of creator's policy container.
|
||||
|
||||
|
|
|
@ -162,7 +162,7 @@ WebIDL::ExceptionOr<void> HTMLFormElement::submit_form(JS::NonnullGCPtr<HTMLElem
|
|||
|
||||
// 13. If action is the empty string, let action be the URL of the form document.
|
||||
if (action.is_empty())
|
||||
action = form_document->url_string();
|
||||
action = form_document->url_string().to_deprecated_string();
|
||||
|
||||
// 14. Parse a URL given action, relative to the submitter element's node document. If this fails, return.
|
||||
// 15. Let parsed action be the resulting URL record.
|
||||
|
|
|
@ -30,7 +30,7 @@ void HTMLTitleElement::children_changed()
|
|||
{
|
||||
HTMLElement::children_changed();
|
||||
if (navigable() && navigable()->is_traversable()) {
|
||||
navigable()->traversable_navigable()->page()->client().page_did_change_title(document().title());
|
||||
navigable()->traversable_navigable()->page()->client().page_did_change_title(document().title().to_deprecated_string());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -219,7 +219,7 @@ void HTMLParser::run()
|
|||
void HTMLParser::run(const AK::URL& url)
|
||||
{
|
||||
m_document->set_url(url);
|
||||
m_document->set_source(m_tokenizer.source());
|
||||
m_document->set_source(MUST(String::from_deprecated_string(m_tokenizer.source())));
|
||||
run();
|
||||
the_end();
|
||||
m_document->detach_parser({});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue