diff options
author | Igor Pissolati <igo08an@hotmail.com> | 2022-11-04 22:56:42 -0300 |
---|---|---|
committer | Andrew Kaster <andrewdkaster@gmail.com> | 2022-11-13 16:37:09 -0700 |
commit | bfdb30c74a61b80336b6916efc3efb18b6874899 (patch) | |
tree | e13e4142cd31ea3f0eb35c9e2162e7dd21dc14b5 /Userland/Libraries/LibWeb/HTML/HTMLElement.h | |
parent | de494ccf3867e92f9b89eee5797e44cd857943ae (diff) | |
download | serenity-bfdb30c74a61b80336b6916efc3efb18b6874899.zip |
LibWeb: Implement bare-bones `HTMLElement.dir`
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/HTMLElement.h')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/HTMLElement.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLElement.h b/Userland/Libraries/LibWeb/HTML/HTMLElement.h index 76d7fe7350..b6b20092ae 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLElement.h +++ b/Userland/Libraries/LibWeb/HTML/HTMLElement.h @@ -12,6 +12,12 @@ namespace Web::HTML { +// https://html.spec.whatwg.org/multipage/dom.html#attr-dir +#define ENUMERATE_HTML_ELEMENT_DIR_ATTRIBUTES \ + __ENUMERATE_HTML_ELEMENT_DIR_ATTRIBUTE(ltr) \ + __ENUMERATE_HTML_ELEMENT_DIR_ATTRIBUTE(rtl) \ + __ENUMERATE_HTML_ELEMENT_DIR_ATTRIBUTE(auto) + class HTMLElement : public DOM::Element , public HTML::GlobalEventHandlers { @@ -22,6 +28,9 @@ public: String title() const { return attribute(HTML::AttributeNames::title); } + String dir() const; + void set_dir(String const&); + virtual bool is_editable() const final; String content_editable() const; WebIDL::ExceptionOr<void> set_content_editable(String const&); |