What about change default mode from XHTML to HTML?

6 years ago

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

6 years ago

uestla
Backer | 746
+
0
-

I agree.

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

6 years ago

Filip Procházka
Moderator | 4693
+
0
-

Agreed!

6 years ago

pave.kucera
Member | 122
+
0
-

I do agree!

6 years ago

frosty22
Member | 373
+
0
-

Agreed, too!

Vivala HTML5 and CSS3 performance =)

6 years ago

JakubJarabica
Gold Partner | 184
+
0
-

Definitely yes!

6 years ago

Majkl578
Moderator | 1379
+
0
-

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