mirror of
https://github.com/RGBCube/serenity
synced 2025-05-15 14:44:58 +00:00

This patch adds parsing of <img> into HTMLImageElement objects. It also adds LayoutImage and its parent class LayoutReplaced, which is going to represent CSS "replaced elements."
12 lines
313 B
C++
12 lines
313 B
C++
#pragma once
|
|
|
|
#include <LibHTML/DOM/HTMLElement.h>
|
|
|
|
class HTMLImageElement : public HTMLElement {
|
|
public:
|
|
HTMLImageElement(Document&, const String& tag_name);
|
|
virtual ~HTMLImageElement() override;
|
|
|
|
String alt() const { return attribute("alt"); }
|
|
String src() const { return attribute("src"); }
|
|
};
|