CKElement::ElementAttribute

Class/Module:
Module
In:
lib/cgikit.rb

Description

ElementeAttribute module manages attributes of elements. The module does that following:

Added HTML common attributes

class, id, style, title, dir, lang, onclick, ondblcclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup

Added form common attributes

enabled

"others" attributes

Methods

check_conflicted_attributes
check_required_attributes
check_undefined_attributes
form_common_attributes
html_common_attributes
string_for_form_common_attributes
string_for_html_common_attributes

Public Instance Methods

check_conflicted_attributes( *attributes )

Raises an exception if the element has attributes conflicting with each other.

check_required_attributes( *patterns )

Raises an exception if the element doesn’t have required attributes.

check_undefined_attributes( *attrs )

Raises exception if the element has undefined attributes.

form_common_attributes()

Returns an array of names of form common attributes.

html_common_attributes()

Returns an array of names of HTML common attributes.

string_for_form_common_attributes()

Returns a string with form common attributes setted in the element.

string_for_html_common_attributes()

Returns a string with HTML common attributes setted in the element.