1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2026-01-12 22:30:59 +00:00
serenity/Userland
Timothy Flynn e01dfaac9a LibWeb: Implement Attribute closer to the spec and with an IDL file
Note our Attribute class is what the spec refers to as just "Attr". The
main differences between the existing implementation and the spec are
just that the spec defines more fields.

Attributes can contain namespace URIs and prefixes. However, note that
these are not parsed in HTML documents unless the document content-type
is XML. So for now, these are initialized to null. Web pages are able to
set the namespace via JavaScript (setAttributeNS), so these fields may
be filled in when the corresponding APIs are implemented.

The main change to be aware of is that an attribute is a node. This has
implications on how attributes are stored in the Element class. Nodes
are non-copyable and non-movable because these constructors are deleted
by the EventTarget base class. This means attributes cannot be stored in
a Vector or HashMap as these containers assume copyability / movability.
So for now, the Vector holding attributes is changed to hold RefPtrs to
attributes instead. This might change when attribute storage is
implemented according to the spec (by way of NamedNodeMap).
2021-10-17 13:51:10 +01:00
..
Applets ResourceGraph: Use /proc/stat instead of /proc/all for CPU usage stats 2021-10-07 21:09:38 +02:00
Applications LibJS: Convert to_double() to ThrowCompletionOr 2021-10-17 12:12:35 +01:00
Demos LibGUI: Support drag-to-reorder in TabWidget 2021-10-07 12:19:27 +02:00
DevTools UserspaceEmulator: Handle PerfEvent syscalls 2021-10-06 17:35:29 +00:00
DynamicLoader Meta: Switch to a SuperBuild that splits host and target builds 2021-09-15 19:04:52 +04:30
Games 2048: Let user decide if he wants to continue the game 2021-10-05 13:27:57 +03:30
Libraries LibWeb: Implement Attribute closer to the spec and with an IDL file 2021-10-17 13:51:10 +01:00
Services LibWeb: Introduce simple scrollable overflow, size ICB to viewport 2021-10-14 23:22:59 +02:00
Shell Shell: Raise an error if an execute node ends up trying to run nothing 2021-10-11 10:56:01 +03:30
Utilities sysctl: Allow showing or setting multiple variables 2021-10-17 14:46:59 +02:00
CMakeLists.txt Tests: Establish root Tests directory, move Userland/Tests there 2021-05-06 17:54:28 +02:00