HTML-Object

 view release on metacpan or  search on metacpan

lib/HTML/Object/DOM/Element/Shared.pm  view on Meta::CPAN

=head2 accept

Set or return the element's accept attribute, containing comma-separated list of file types accepted by the server when type is file.

=head2 accessKey

Sets or gets the element's attribute representing a string containing a single character that switches input focus to the control when pressed.

=for Pod::Coverage align

=head2 allowdirs

Set or get a boolean value. This does not do anything otherwise since this is not an attribute.

This is part of Mozilla non-standard Directory Upload API. It indicates whether or not to allow directories and files both to be selected in the file list.

=head2 alt

Sets or returns the element's alt attribute, containing alternative text to use when type is image.

=head2 autocapitalize

Defines the capitalization behavior for user input. Valid values are C<none>, C<off>, C<characters>, C<words>, or C<sentences>. 

=head2 autocomplete

Set or returns a string that represents the element's autocomplete attribute, indicating whether the value of the control can be automatically completed by the browser. Ignored if the value of the type attribute is C<hidden>, C<checkbox>, C<radio>, C...

=over 4

=item on

The browser can autocomplete the value using previously stored value

=item off

The user must explicity enter a value

=back

=head2 autofocus

Set or returns a boolean value that represents the element's autofocus attribute, which specifies that a form control should have input focus when the page loads, unless the user overrides it, for example by typing in a different control. Only one fo...

=head2 checked

Set or returns a boolean value the current state of the element when type is checkbox or radio.

=for Pod::Coverage compact

=head2 crossOrigin

A string of a keyword specifying the CORS mode to use when fetching the image resource. If you do not specify crossOrigin, the underlying element is fetched without CORS (the fetch no-cors mode).

Permitted values are:

=over 4

=item * C<anonymous>

Requests by the underlying element have their mode set to cors and their credentials mode set to same-origin. This means that CORS is enabled and credentials are sent if the underlying element is fetched from the same origin from which the document w...

=item * C<use-credentials>

Requests by the L<HTML::Object::DOM::Element> will use the cors mode and the include credentials mode; all underlying element requests by the element will use CORS, regardless of what domain the fetch is from.

=back

If crossOrigin is an empty string (""), the anonymous mode is selected. 

See L<Mozilla documentation for more information|https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/crossorigin>

=for Pod::Coverage currentSrc

=head2 defaultChecked

Set or returns a boolean value that sets the default state of a radio button or checkbox as originally specified in HTML that created this object.

=for Pod::Coverage defaultValue

=head2 dirName

Sets or gets the directionality of the element.

=head2 disabled

Set or returns a boolean value that represents the element's disabled attribute, indicating that the control is not available for interaction. The input values will not be submitted with the form. See also L</readOnly>

=for Pod::Coverage download

=head2 files

This returns a L<HTML::Object::DOM::FileList> object.

Under JavaScript, this returns or accepts a C<FileList> object, which contains a list of C<File> objects representing the files selected for upload.

=head2 form

The C<form> HTML element represents a document section containing interactive controls for submitting information.

See also L<Mozilla documentation|https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form>

=head2 formAction

Is a string reflecting the L<URI> of a resource that processes information submitted by the button. If specified, this property overrides the action attribute of the C<<form>> element that owns this element.

This is used by L<HTML::Object::DOM::Element::Input>

See also L<Mozilla documentation|https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/formAction>

=head2 formEnctype

Is a string reflecting the type of content that is used to submit the form to the server. If specified, this property overrides the enctype attribute of the C<<form>> element that owns this element.

This is used by L<HTML::Object::DOM::Element::Input>

See also L<Mozilla documentation|https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/formEnctype>

=head2 formMethod

Is a string reflecting the HTTP method that the browser uses to submit the form. If specified, this property overrides the method attribute of the <form> element that owns this element.

This is used by L<HTML::Object::DOM::Element::Input>

See also L<Mozilla documentation|https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/formMethod>



( run in 0.426 second using v1.01-cache-2.11-cpan-bbcb1afb8fc )