mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:18:11 +00:00
LibWeb: Move "element sibling" getters to NonDocumentTypeChildNode
Here's another CRTP mixin since that's the best we can do with C++. This prepares exposing these via IDL on Element and CharacterData.
This commit is contained in:
parent
6e221adade
commit
d367044e67
5 changed files with 72 additions and 23 deletions
|
@ -28,10 +28,13 @@
|
|||
|
||||
#include <AK/String.h>
|
||||
#include <LibWeb/DOM/Node.h>
|
||||
#include <LibWeb/DOM/NonDocumentTypeChildNode.h>
|
||||
|
||||
namespace Web::DOM {
|
||||
|
||||
class CharacterData : public Node {
|
||||
class CharacterData
|
||||
: public Node
|
||||
, public NonDocumentTypeChildNode<CharacterData> {
|
||||
public:
|
||||
virtual ~CharacterData() override;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue