mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibWeb: Use Optional<FlyString> directly in Document & DOMImplementation
Use the [FlyString] extended attribute to allow these functions to take an Optional<FlyString> directly, allowing us to tidy up some conversions from Optional<String>.
This commit is contained in:
committed by
Andreas Kling
parent
7cf2674061
commit
636a85f04e
Notes:
sideshowbarker
2024-07-17 04:57:23 +09:00
Author: https://github.com/shannonbooth Commit: https://github.com/SerenityOS/serenity/commit/636a85f04e Pull-request: https://github.com/SerenityOS/serenity/pull/22730
@@ -76,14 +76,14 @@ interface Document : Node {
|
||||
readonly attribute HTMLCollection all;
|
||||
|
||||
[CEReactions, NewObject] Element createElement(DOMString tagName, optional (DOMString or ElementCreationOptions) options = {});
|
||||
[CEReactions, NewObject] Element createElementNS(DOMString? namespace, DOMString qualifiedName, optional (DOMString or ElementCreationOptions) options = {});
|
||||
[CEReactions, NewObject] Element createElementNS([FlyString] DOMString? namespace, DOMString qualifiedName, optional (DOMString or ElementCreationOptions) options = {});
|
||||
DocumentFragment createDocumentFragment();
|
||||
Text createTextNode(DOMString data);
|
||||
Comment createComment(DOMString data);
|
||||
[NewObject] ProcessingInstruction createProcessingInstruction(DOMString target, DOMString data);
|
||||
|
||||
[NewObject] Attr createAttribute(DOMString localName);
|
||||
[NewObject] Attr createAttributeNS(DOMString? namespace, DOMString qualifiedName);
|
||||
[NewObject] Attr createAttributeNS([FlyString] DOMString? namespace, DOMString qualifiedName);
|
||||
|
||||
Range createRange();
|
||||
Event createEvent(DOMString interface);
|
||||
|
||||
Reference in New Issue
Block a user