Is Anyone Else Having Issues With DOCTYPE Declarations?

This forum is for all Flare issues related to the HTML5, WebHelp, WebHelp Plus, and Adobe Air Targets
Post Reply
pcalnan
Propeller Head
Posts: 67
Joined: Tue Jul 17, 2007 8:30 am
Location: Ottawa, Ontario
Contact:

Is Anyone Else Having Issues With DOCTYPE Declarations?

Post by pcalnan »

I'm producing HTML5 tri-pane targets and have discovered that the <!DOCTYPE html> declaration automatically added to the beginning of each HTML file is causing issues with some elements of the style sheet being ignored.

Is anyone else having this problem? My current workaround is to manually remove the declaration from every file but certainly this can't be the first time someone's experienced this?

I've found a couple of articles that indicate that perhaps this declaration isn't a good idea but I wanted to see if anyone else is having this issue before raising it with Madcap.
Thanks in advance for the help!
Patrick Calnan
NorthEast
Master Propellus Maximus
Posts: 6426
Joined: Mon Mar 05, 2007 8:33 am

Re: Is Anyone Else Having Issues With DOCTYPE Declarations?

Post by NorthEast »

Your CSS will be rendered differently depending on the DOCTYPE.
The HTML5 target uses HTML5 (i.e. DOCTYPE html), so I wouldn't recommend removing/changing that DOCTYPE.

So, I'd focus on fixing your CSS, so that it works properly for HTML5.
pcalnan
Propeller Head
Posts: 67
Joined: Tue Jul 17, 2007 8:30 am
Location: Ottawa, Ontario
Contact:

Re: Is Anyone Else Having Issues With DOCTYPE Declarations?

Post by pcalnan »

Thank you, Dave. And it turns out that there's hosting configuration that can be done to resolve the issue. In our case, an Apache setting will solve the problem.

I kind of thought that removing the declaration wasn't the best move so I'm glad that it won't be required after all.

Cheers!
Patrick Calnan
pcalnan
Propeller Head
Posts: 67
Joined: Tue Jul 17, 2007 8:30 am
Location: Ottawa, Ontario
Contact:

Re: Is Anyone Else Having Issues With DOCTYPE Declarations?

Post by pcalnan »

Thought I'd follow up on this with our solution as an FYI in case this affects anyone else.

It turns out that (for us), the issue was with Apache. If you're using Apache on the web server that hosts your Flare-generated HTML5 targets, you'll want to make sure that the mod_mime module is loaded by the Apache config and that you have something like the following somewhere in your Apache configuration:

Code: Select all

   <Directory PATH TO STATIC CONTENT >
      AddType 'text/css; charset=UTF-8' css
      AddType  application/x-javascript js
   </Directory>
Cheers!
Patrick Calnan
Post Reply