What about change default mode from XHTML to HTML?

Notice: This thread is very old.
David Grudl
Nette Core | 7250
+
0
-

Nette generates by default XHTML code. It automatically encloses all empty (in HTML5 „void“) elements with /> and generates boolean attributes as selected="selected" instead of simple selected.

You can change this feature in config:

nette:
	latte:
		xhtml: no

I think XHTML is over and will never come back (I hope!), so we can change default behavior to generate HTML code, do you agree?

uestla
Backer | 756
+
0
-

I agree.

We cannot have HTML5 forms and XHTML in templates by default, can we?

Filip Procházka
Moderator | 4668
+
0
-

Agreed!

pave.kucera
Member | 122
+
0
-

I do agree!

frosty22
Member | 373
+
0
-

Agreed, too!

Vivala HTML5 and CSS3 performance =)

JakubJarabica
Gold Partner | 184
+
0
-

Definitely yes!

Majkl578
Moderator | 1364
+
0
-

That's first thing I disable in sandbox. ;)