Bug 675943 - Part 2: Implement dirname attr for textarea elements within forms. r=edgar

Depends on D175626

Differential Revision: https://phabricator.services.mozilla.com/D178164
This commit is contained in:
Vincent Hilla
2023-05-24 08:04:52 +00:00
parent 7aea40ce2a
commit 7a0066d76e
10 changed files with 70 additions and 262 deletions

View File

@@ -169,6 +169,12 @@ class HTMLTextAreaElement final : public TextControlElement,
uint32_t cols = aCols ? aCols : DEFAULT_COLS;
SetUnsignedIntAttr(nsGkAtoms::cols, cols, DEFAULT_COLS, aError);
}
void GetDirName(nsAString& aValue) {
GetHTMLAttr(nsGkAtoms::dirname, aValue);
}
void SetDirName(const nsAString& aValue, ErrorResult& aError) {
SetHTMLAttr(nsGkAtoms::dirname, aValue, aError);
}
bool Disabled() { return GetBoolAttr(nsGkAtoms::disabled); }
void SetDisabled(bool aDisabled, ErrorResult& aError) {
SetHTMLBoolAttr(nsGkAtoms::disabled, aDisabled, aError);