|
@@ -12,6 +12,12 @@
|
|
|
|
|
|
namespace Web::HTML {
|
|
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
|
|
class HTMLElement
|
|
: public DOM::Element
|
|
: public DOM::Element
|
|
, public HTML::GlobalEventHandlers {
|
|
, public HTML::GlobalEventHandlers {
|
|
@@ -22,6 +28,9 @@ public:
|
|
|
|
|
|
String title() const { return attribute(HTML::AttributeNames::title); }
|
|
String title() const { return attribute(HTML::AttributeNames::title); }
|
|
|
|
|
|
|
|
+ String dir() const;
|
|
|
|
+ void set_dir(String const&);
|
|
|
|
+
|
|
virtual bool is_editable() const final;
|
|
virtual bool is_editable() const final;
|
|
String content_editable() const;
|
|
String content_editable() const;
|
|
WebIDL::ExceptionOr<void> set_content_editable(String const&);
|
|
WebIDL::ExceptionOr<void> set_content_editable(String const&);
|