Ticket #102 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

DOCTYPE dropped with xhtml_transitional and layout

Reported by: zimbatm Owned by: somebody
Priority: major Milestone:
Component: camping.rb Version: 1.5
Keywords: xhtml Cc:

Description

When using a layout in which you use xhtml_transitional, the DOCTYPE is dropped. When you don't use the layout it works fine.

I've attached a unit-test that you can run if you have mosquito. Make a test folder in camping and run the test form camping project's root (otherwise mosquito will annoy you with a test.log file)

Result

<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><meta content="text/html; charset=utf-8" http-equiv="Content-Type"/><title>title</title></head><body><h1>With layout</h1></body></html>

Wanted result

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><meta content="text/html; charset=utf-8" http-equiv="Content-Type"/><title>title</title></head><body><h1>Without layout</h1></body></html>

Attachments

test_xhtml_trans.rb (1.0 kB) - added by zimbatm 2 years ago.
the test case

Change History

Changed 2 years ago by zimbatm

the test case

Changed 2 years ago by zimbatm

Okay, apparently the layout isn't captured by markaby. A fix should follow shortly.

Changed 2 years ago by zimbatm

  • status changed from new to closed
  • resolution set to fixed

[175] should fix this

Note: See TracTickets for help on using tickets.