LibWeb: Implement HTMLImageElement.currentSrc

Removes some console noise from lner.co.uk :)
This commit is contained in:
Jamie Mansfield
2024-05-24 00:08:03 +01:00
committed by Andreas Kling
parent 600daea544
commit 3095daa7c8
3 changed files with 11 additions and 1 deletions

View File

@@ -57,6 +57,9 @@ public:
// https://html.spec.whatwg.org/multipage/embedded-content.html#dom-img-complete
bool complete() const;
// https://html.spec.whatwg.org/multipage/embedded-content.html#dom-img-currentsrc
String current_src() const;
virtual Optional<ARIA::Role> default_role() const override;
// https://html.spec.whatwg.org/multipage/images.html#img-environment-changes