Skip to content

0.3.0 doctypes

ivansglazunov edited this page Feb 18, 2015 · 2 revisions

sources/doctypes

Templates.doctypes

[new] T.doctypes[string](...arguments: Array<TSelector|TAttributes>) => this;

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