What about change default mode from XHTML to HTML?

Notice: This thread is very old.

7 years ago

David Grudl
Nette Core | 6989
+
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?

7 years ago

uestla
Backer | 750
+
0
-

I agree.

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

7 years ago

Filip Procházka
Moderator | 4693
+
0
-

Agreed!

7 years ago

pave.kucera
Member | 122
+
0
-

I do agree!

7 years ago

frosty22
Member | 373
+
0
-

Agreed, too!

Vivala HTML5 and CSS3 performance =)

7 years ago

JakubJarabica
Gold Partner | 184
+
0
-

Definitely yes!

7 years ago

Majkl578
Moderator | 1376
+
0
-

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