C# Class ExoWeb.Templates.HtmlHelpers

ファイルを表示 Open project: vc3/ExoWeb

Public Methods

Method Description
IsBooleanAttribute ( string attribute, string tagName ) : bool
IsBooleanAttribute ( string attribute, string tagName, string inputType ) : bool
IsBooleanAttribute ( string attribute, string tagName, string inputType, bool requireInputTypeMatch ) : bool

Returns a value indicating whether the given attribute for the given tag name corresponds to a boolean attribute. http://stackoverflow.com/a/707702/170990

Private Methods

Method Description
IsSelfClosing ( string tag ) : bool

Determines whether the given tag can close itself, i.e. [tag /] in place of [tag][/tag].

Method Details

IsBooleanAttribute() public static method

public static IsBooleanAttribute ( string attribute, string tagName ) : bool
attribute string
tagName string
return bool

IsBooleanAttribute() public static method

public static IsBooleanAttribute ( string attribute, string tagName, string inputType ) : bool
attribute string
tagName string
inputType string
return bool

IsBooleanAttribute() public static method

Returns a value indicating whether the given attribute for the given tag name corresponds to a boolean attribute. http://stackoverflow.com/a/707702/170990
public static IsBooleanAttribute ( string attribute, string tagName, string inputType, bool requireInputTypeMatch ) : bool
attribute string
tagName string
inputType string
requireInputTypeMatch bool
return bool