Skip to content

0.1.0 imple doctype

Ivan S Glazunov edited this page Jan 22, 2015 · 1 revision

[new] ([selector], [attributes]) => instance: doctype > Single

Some doctypes.

html
doctype.html().render(function(result) { console.log(result); });
<!DOCTYPE html>
transitional
doctype.transitional().render(function(result) { console.log(result); });
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
strict
doctype.strict().render(function(result) { console.log(result); });
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
frameset
doctype.frameset().render(function(result) { console.log(result); });
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
basic
doctype.basic().render(function(result) { console.log(result); });
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd">
mobile
doctype.mobile().render(function(result) { console.log(result); });
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.2//EN" "http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd">
Clone this wiki locally