Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] implement dirName #21084

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

@@ -606,7 +606,7 @@ impl HTMLFormElement {
// Step 4
for datum in &mut ret {
match &*datum.ty {
"file" | "textarea" => (), // TODO
"file" => (), // TODO
_ => {
datum.name = clean_crlf(&datum.name);
datum.value = FormDatumValue::String(clean_crlf(match datum.value {
@@ -616,7 +616,6 @@ impl HTMLFormElement {
}
}
};
// Step 5
ret
}

@@ -477,10 +477,10 @@ impl HTMLInputElementMethods for HTMLInputElement {
// https://html.spec.whatwg.org/multipage/#dom-input-alt
make_setter!(SetAlt, "alt");

// https://html.spec.whatwg.org/multipage/#dom-input-dirName
// https://html.spec.whatwg.org/multipage/#attr-fe-dirname
make_getter!(DirName, "dirname");

// https://html.spec.whatwg.org/multipage/#dom-input-dirName
// https://html.spec.whatwg.org/multipage/#attr-fe-dirname
make_setter!(SetDirName, "dirname");

// https://html.spec.whatwg.org/multipage/#dom-fe-disabled
@@ -195,6 +195,12 @@ impl HTMLTextAreaElementMethods for HTMLTextAreaElement {
// https://html.spec.whatwg.org/multipage/#dom-textarea-placeholder
make_setter!(SetPlaceholder, "placeholder");

// https://html.spec.whatwg.org/multipage/#submitting-element-directionality:-the-dirname-attribute
make_getter!(DirName, "dirname");

// https://html.spec.whatwg.org/multipage/#submitting-element-directionality:-the-dirname-attribute
make_setter!(SetDirName, "dirname");

// https://html.spec.whatwg.org/multipage/#attr-textarea-maxlength
make_int_getter!(MaxLength, "maxlength", DEFAULT_MAX_LENGTH);

@@ -11,8 +11,8 @@ interface HTMLTextAreaElement : HTMLElement {
// attribute boolean autofocus;
[CEReactions, SetterThrows]
attribute unsigned long cols;
// [CEReactions]
// attribute DOMString dirName;
[CEReactions]
attribute DOMString dirName;
[CEReactions]
attribute boolean disabled;
readonly attribute HTMLFormElement? form;
@@ -95,6 +95,7 @@ extern crate swapper;
extern crate time;
#[cfg(target_os = "linux")]
extern crate tinyfiledialogs;
extern crate unicode_bidi;
extern crate unicode_segmentation;
extern crate url;
extern crate utf8;
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.