Module: Rxhp

Defined in:
lib/rxhp/html.rb,
lib/rxhp/error.rb,
lib/rxhp/scope.rb,
lib/rxhp/element.rb,
lib/rxhp/fragment.rb,
lib/rxhp/constants.rb,
lib/rxhp/html_element.rb,
lib/rxhp/html_fragment.rb,
lib/rxhp/tags/html_tag.rb,
lib/rxhp/custom_element.rb,
lib/rxhp/data/html/tags.rb,
lib/rxhp/composable_element.rb,
lib/rxhp/attribute_validator.rb,
lib/rxhp/data/html/attributes.rb,
lib/rxhp/html_singleton_element.rb,
lib/rxhp/html_self_closing_element.rb

Defined Under Namespace

Modules: AttributeValidator, Html, Scope Classes: ComposableElement, CustomElement, Element, Error, Fragment, HtmlElement, HtmlFragment, HtmlSelfClosingElement, HtmlSingletonElement, ScriptError, ValidationError

Constant Summary collapse

HTML_FORMAT =

Render 'nice' HTML

Examples:

<div><p>foo<br>bar</p></div>
:html
TINY_HTML_FORMAT =

Render ugly, but valid HTML

Examples:

<div><p>foo<br>bar</div>
:tiny_html
XHTML_FORMAT =

Render XHTML

Examples:

<div><p>foo<br />bar</p></div>
:xhtml
HTML_5 =
"<!DOCTYPE html>\n"
HTML_4_01_TRANSITIONAL =
<<EOF
<!DOCTYPE HTML PUBLIC
  "-//W3C//DTD HTML 4.01 Transitional//EN"
  "http://www.w3.org/TR/html4/loose.dtd">
EOF
XHTML_1_0_STRICT =
<<EOF
<!DOCTYPE html PUBLIC
  "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
EOF