is not used any more and exists only for history. Post new tickets on the Github account. n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Opened 12 years ago

Closed 12 years ago

#900 closed enhancement (fixed)

jResponseHtml: strictDoctype

Reported by: Julien Owned by: Julien
Priority: normal Milestone: Jelix 1.1.3
Component: jelix:core response Version: trunk
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Documentation needed: no
Hosting Provider: Php version:


We could provide jResponseHtml::strictDoctype() to switch between strict and transitional doctypes.

Attachments (1)

900-jResponseHtml-strictDoctype.diff (2.6 KB) - added by Julien 12 years ago.

Download all attachments as: .zip

Change History (5)

Changed 12 years ago by Julien

comment:1 Changed 12 years ago by bballizlife

isn't it too much overkill as using our own html response allows us to override outputDoctype() ?

comment:2 Changed 12 years ago by Julien

  • Status changed from new to assigned

that's true, and that's what I did until now, but I think it may be a common need, so I would like to have it in the default response.

Because when overriding outputDoctype, you finally have to write a lot of code, to test if it's html or xhtml, strict or not.

I still would use override when there's a very specific need, like the need of MathML.

If it's pointless, I'll stick with my current method, but having this in the core would be great ;)

comment:3 Changed 12 years ago by bballizlife

Well in fact you're maybe right. This little improvement could ease the use of 4 doctypes, both xhtml and html in strict or transitional, without the need of overriding outputDoctype().

So let's go, it's ok for me.

comment:4 Changed 12 years ago by Julien

  • Resolution set to fixed
  • review changed from review? to review+
  • Status changed from assigned to closed

committed in the trunk and 1.1.x. r1385

Note: See TracTickets for help on using tickets.