1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 12:37:45 +00:00

LibHTML: Add a per-attribute callback for Elements to parse attributes

Elements now have a virtual parse_attribute(name, value) callback that
gets invoked for each one of its attributes.
This commit is contained in:
Andreas Kling 2019-10-06 10:09:55 +02:00
parent 306b9dfb51
commit 772718b8d8
2 changed files with 10 additions and 0 deletions

View file

@ -43,6 +43,7 @@ public:
bool has_class(const StringView&) const;
virtual void apply_presentational_hints(StyleProperties&) const {}
virtual void parse_attribute(const String& name, const String& value);
private:
RefPtr<LayoutNode> create_layout_node(const StyleResolver&, const StyleProperties* parent_properties) const override;