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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user