blob: 5261a5bf7d28ce577f639418e6d2aaf84b6bcd30 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
/*
* Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/FlyString.h>
namespace Web::DOM {
class Attribute {
public:
Attribute(const FlyString& name, const String& value)
: m_name(name)
, m_value(value)
{
}
const FlyString& name() const { return m_name; }
const String& value() const { return m_value; }
void set_value(const String& value) { m_value = value; }
private:
FlyString m_name;
String m_value;
};
}
|