mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:57:35 +00:00
LibWeb: Rename Attribute to Attr
This name is not very good, but it's what the specification calls it.
This commit is contained in:
parent
3c3ae3a768
commit
530675993b
18 changed files with 85 additions and 85 deletions
|
@ -33,18 +33,18 @@ public:
|
|||
bool is_empty() const { return m_attributes.is_empty(); }
|
||||
|
||||
// Methods defined by the spec for JavaScript:
|
||||
Attribute const* item(u32 index) const;
|
||||
Attribute const* get_named_item(StringView qualified_name) const;
|
||||
ExceptionOr<Attribute const*> set_named_item(Attribute& attribute);
|
||||
ExceptionOr<Attribute const*> remove_named_item(StringView qualified_name);
|
||||
Attr const* item(u32 index) const;
|
||||
Attr const* get_named_item(StringView qualified_name) const;
|
||||
ExceptionOr<Attr const*> set_named_item(Attr& attribute);
|
||||
ExceptionOr<Attr const*> remove_named_item(StringView qualified_name);
|
||||
|
||||
// Methods defined by the spec for internal use:
|
||||
Attribute* get_attribute(StringView qualified_name, size_t* item_index = nullptr);
|
||||
Attribute const* get_attribute(StringView qualified_name, size_t* item_index = nullptr) const;
|
||||
ExceptionOr<Attribute const*> set_attribute(Attribute& attribute);
|
||||
void replace_attribute(Attribute& old_attribute, Attribute& new_attribute, size_t old_attribute_index);
|
||||
void append_attribute(Attribute& attribute);
|
||||
Attribute const* remove_attribute(StringView qualified_name);
|
||||
Attr* get_attribute(StringView qualified_name, size_t* item_index = nullptr);
|
||||
Attr const* get_attribute(StringView qualified_name, size_t* item_index = nullptr) const;
|
||||
ExceptionOr<Attr const*> set_attribute(Attr& attribute);
|
||||
void replace_attribute(Attr& old_attribute, Attr& new_attribute, size_t old_attribute_index);
|
||||
void append_attribute(Attr& attribute);
|
||||
Attr const* remove_attribute(StringView qualified_name);
|
||||
|
||||
private:
|
||||
explicit NamedNodeMap(Element&);
|
||||
|
@ -57,7 +57,7 @@ private:
|
|||
void remove_attribute_at_index(size_t attribute_index);
|
||||
|
||||
JS::NonnullGCPtr<DOM::Element> m_element;
|
||||
Vector<JS::NonnullGCPtr<Attribute>> m_attributes;
|
||||
Vector<JS::NonnullGCPtr<Attr>> m_attributes;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue