Dart API Referencedart:htmlOutputElement

OutputElement Interface

Extends

Element

Constructors

Code new OutputElement() #

OutputElement();

Methods

Code bool checkValidity() #

in Gecko 2.0. Returns false if the element is a candidate for constraint validation, and it does not satisfy its constraints. In this case, it also fires an invalid event at the element. It returns true if the element is not a candidate for constraint validation, or if it satisfies its constraints.

The standard behavior is to always return true because output objects are never candidates for constraint validation.

bool checkValidity();

Code void setCustomValidity(String error) #

Sets a custom validity message for the element. If this message is not the empty string, then the element is suffering from a custom validity error, and does not validate.
void setCustomValidity(String error);

Fields

Code String defaultValue #

The default value of the element, initially the empty string.
String defaultValue;

Code final FormElement form #

Indicates the control's form owner, reflecting the form  HTML attribute if it is defined.
final FormElement form;

Code DOMSettableTokenList htmlFor #

Reflects the for HTML attribute, containing a list of IDs of other elements in the same document that contribute to (or otherwise affect) the calculated value.
DOMSettableTokenList htmlFor;

Code final NodeList labels #

A list of label elements associated with this output element.
final NodeList labels;

Code String name #

Reflects the name HTML attribute, containing the name for the control that is submitted with form data.
String name;

Code final String type #

Must be the string output.
final String type;

Code final String validationMessage #

A localized message that describes the validation constraints that the control does not satisfy (if any). This is the empty string if the control is not a candidate for constraint validation (willValidate is false), or it satisfies its constraints.
final String validationMessage;

Code final ValidityState validity #

The validity states that this element is in.
final ValidityState validity;

Code String value #

The value of the contents of the elements. Behaves like the textContent property.
String value;

Code final bool willValidate #

in Gecko 2.0. Indicates whether the element is a candidate for constraint validation. It is false if any conditions bar it from constraint validation. (See bug 604673 .)

The standard behavior is to always return false because output objects are never candidates for constraint validation.

final bool willValidate;

This page includes content from the Mozilla Foundation that is graciously licensed under a Creative Commons: Attribution-Sharealike license. Mozilla has no other association with Dart or dartlang.org. We encourage you to improve the web by contributing to The Mozilla Developer Network.