www-infrastructure-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "#asfinfra IRC Bot (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (INFRA-4248) Confluence autoexport rearranges DOCTYPE location in HTML, forcing IE into quirks mode
Date Thu, 22 Dec 2011 22:39:30 GMT

    [ https://issues.apache.org/jira/browse/INFRA-4248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13175119#comment-13175119
] 

#asfinfra IRC Bot commented on INFRA-4248:
------------------------------------------

<joes4> use the cms- it's doctor recommended!

                
> Confluence autoexport rearranges DOCTYPE location in HTML, forcing IE into quirks mode
> --------------------------------------------------------------------------------------
>
>                 Key: INFRA-4248
>                 URL: https://issues.apache.org/jira/browse/INFRA-4248
>             Project: Infrastructure
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Confluence
>            Reporter: Bob Harner
>            Priority: Minor
>
> In the Tapestry project (and apparently many other projects too), the Confluence auto-export
plugin is rendering HTML with the DOCTYPE declaration in the wrong place. This forces IE into
Quirks mode, which breaks the layout of the Tapestry documentation pages in IE.
> Our auto-export template has the <!DOCTYPE html> declaration as the first line,
like this:
> <!DOCTYPE html>
> #set($base = "https://cwiki.apache.org/TAPESTRY")
> #set($globalHelper = $action.getHelper())
> #set($renderer = $globalHelper.getWikiStyleRenderer())
> 	
> 	<!--
>     Licensed to the Apache Software Foundation (ASF) under one or more
>     contributor license agreements.  See the NOTICE file distributed with
>     this work for additional information regarding copyright ownership.
>     The ASF licenses this file to You under the Apache License, Version 2.0
>     (the "License"); you may not use this file except in compliance with
>     the License.  You may obtain a copy of the License at
>        http://www.apache.org/licenses/LICENSE-2.0
>     Unless required by applicable law or agreed to in writing, software
>     distributed under the License is distributed on an "AS IS" BASIS,
>     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
>     See the License for the specific language governing permissions and
>     limitations under the License.
> -->
> but the HTML is rendered like this:
> 	
> 	<!--
>     Licensed to the Apache Software Foundation (ASF) under one or more
>     contributor license agreements.  See the NOTICE file distributed with
>     this work for additional information regarding copyright ownership.
>     The ASF licenses this file to You under the Apache License, Version 2.0
>     (the "License"); you may not use this file except in compliance with
>     the License.  You may obtain a copy of the License at
>        http://www.apache.org/licenses/LICENSE- 2.0
>     Unless required by applicable law or agreed to in writing, software
>     distributed under the License is distributed on an "AS IS" BASIS,
>     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
>     See the License for the specific language governing permissions and
>     limitations under the License.
> -->
> <!DOCTYPE HTML>
> Most browsers other than IE are okay with having a comment block before the DOCTYPE declaration,
but apparently Internet Explorer much more sensitive to DOCTYPE location, totally ignoring
it in this case and rendering the page in Quirks mode.
> This same DOCTYPE rearranging behavior is also seen on the Shiro, Directory, Camel, and
ActiveMQ sites (and probably all Confluence-published Apache sites), and all of those sites
are rendering in Quirks mode in IE because of it.
> My guess (just a guess) is that the Apache infrastructure folks have set up the auto-export
plugin to automatically insert or move the license comment block to the very top of the file
for policy reasons.
> Is the source for the version of the plugin that Apache runs available anywhere? I'd
be glad to take a look at offer a more specific solution if it would help.
> Thanks!

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message