mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-24 02:09:28 +00:00
LibWeb: Implement HTMLImageElement.currentSrc
Removes some console noise from lner.co.uk :)
This commit is contained in:
committed by
Andreas Kling
parent
600daea544
commit
3095daa7c8
@@ -269,6 +269,13 @@ bool HTMLImageElement::complete() const
|
||||
return false;
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/embedded-content.html#dom-img-currentsrc
|
||||
String HTMLImageElement::current_src() const
|
||||
{
|
||||
// The currentSrc IDL attribute must return the img element's current request's current URL.
|
||||
return MUST(m_current_request->current_url().to_string());
|
||||
}
|
||||
|
||||
Optional<ARIA::Role> HTMLImageElement::default_role() const
|
||||
{
|
||||
// https://www.w3.org/TR/html-aria/#el-img
|
||||
|
||||
Reference in New Issue
Block a user