You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@clerezza.apache.org by "Daniel Spicar (JIRA)" <ji...@apache.org> on 2011/05/21 23:12:47 UTC

[jira] [Created] (CLEREZZA-548) Missing DOCTYPE declarations on Clerezza pages lead to XML errors in Firefox.

Missing DOCTYPE declarations on Clerezza pages lead to XML errors in Firefox.
-----------------------------------------------------------------------------

                 Key: CLEREZZA-548
                 URL: https://issues.apache.org/jira/browse/CLEREZZA-548
             Project: Clerezza
          Issue Type: Bug
         Environment: Ubuntu 10.10, Firefox 3.6.17
            Reporter: Daniel Spicar


When pages use HTML entities (e.g. &uuml;) in their source Firefox 3.6 fails to render the page because of an error (in FF error console):
"XML Parsing Error: undefined entity"

This can be solved by adding a DOCTYPE declaration at the top of that page.
e.g.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

However it seems that none of the SSP generated pages in Clerezza do that and I am not aware of how to do it in SSP. If I add it to the SSP source I get an exception when the SSP is parsed:
ScriptException rendering ScalaServerPage: 
org.apache.clerezza.scala.scripting.CompileErrorsException: <script1>:17: error: in XML literal: '-' expected instead of 'D'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  ^<script1>:17: error: in XML literal: '-' expected instead of 'O'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"   ^<script1>:65: error: input ended while parsing XML}

I think this issue is pretty serious because when a page contains HTML specific entities (like umlauts, &lt; will work as it is allowed in all XML documents) it will just not render or only render partially in Firefox. Also there is no clear indication that this error occurs unless you check the FF error console (which is easy to forget). I also tested with Opera which didn't have the issue. But it seems it is not a Firefox bug that we do not declare X(HT)ML documents correctly.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CLEREZZA-548) Missing DOCTYPE declarations on Clerezza pages lead to XML errors in Firefox.

Posted by "Daniel Spicar (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CLEREZZA-548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13039371#comment-13039371 ] 

Daniel Spicar commented on CLEREZZA-548:
----------------------------------------

I was under the impression that the XHTML specification requires the DOCTYPE definition for strict conformance (http://www.w3.org/TR/xhtml1/#strict).

It may be worthwhile to consider solutions to allow for such declarations. 

> Missing DOCTYPE declarations on Clerezza pages lead to XML errors in Firefox.
> -----------------------------------------------------------------------------
>
>                 Key: CLEREZZA-548
>                 URL: https://issues.apache.org/jira/browse/CLEREZZA-548
>             Project: Clerezza
>          Issue Type: Bug
>         Environment: Ubuntu 10.10, Firefox 3.6.17
>            Reporter: Daniel Spicar
>
> When pages use HTML entities (e.g. &uuml;) in their source Firefox 3.6 fails to render the page because of an error (in FF error console):
> "XML Parsing Error: undefined entity"
> This can be solved by adding a DOCTYPE declaration at the top of that page.
> e.g.
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> However it seems that none of the SSP generated pages in Clerezza do that and I am not aware of how to do it in SSP. If I add it to the SSP source I get an exception when the SSP is parsed:
> ScriptException rendering ScalaServerPage: 
> org.apache.clerezza.scala.scripting.CompileErrorsException: <script1>:17: error: in XML literal: '-' expected instead of 'D'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  ^<script1>:17: error: in XML literal: '-' expected instead of 'O'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"   ^<script1>:65: error: input ended while parsing XML}
> I think this issue is pretty serious because when a page contains HTML specific entities (like umlauts, &lt; will work as it is allowed in all XML documents) it will just not render or only render partially in Firefox. Also there is no clear indication that this error occurs unless you check the FF error console (which is easy to forget). I also tested with Opera which didn't have the issue. But it seems it is not a Firefox bug that we do not declare X(HT)ML documents correctly.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CLEREZZA-548) Missing DOCTYPE declarations on Clerezza pages lead to XML errors in Firefox.

Posted by "Reto Bachmann-Gmür (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CLEREZZA-548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13039387#comment-13039387 ] 

Reto Bachmann-Gmür commented on CLEREZZA-548:
---------------------------------------------

Yes, I thought that the DOCTYPE is not compulsory if the document is served with an xml-mediatype. But I can't find, looked at XHTML 1.1 documentation. I propose to too wait for HTML5 being finalized which I think simplifies this. Unless of course it's causing bigger problems.

> Missing DOCTYPE declarations on Clerezza pages lead to XML errors in Firefox.
> -----------------------------------------------------------------------------
>
>                 Key: CLEREZZA-548
>                 URL: https://issues.apache.org/jira/browse/CLEREZZA-548
>             Project: Clerezza
>          Issue Type: Bug
>         Environment: Ubuntu 10.10, Firefox 3.6.17
>            Reporter: Daniel Spicar
>
> When pages use HTML entities (e.g. &uuml;) in their source Firefox 3.6 fails to render the page because of an error (in FF error console):
> "XML Parsing Error: undefined entity"
> This can be solved by adding a DOCTYPE declaration at the top of that page.
> e.g.
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> However it seems that none of the SSP generated pages in Clerezza do that and I am not aware of how to do it in SSP. If I add it to the SSP source I get an exception when the SSP is parsed:
> ScriptException rendering ScalaServerPage: 
> org.apache.clerezza.scala.scripting.CompileErrorsException: <script1>:17: error: in XML literal: '-' expected instead of 'D'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  ^<script1>:17: error: in XML literal: '-' expected instead of 'O'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"   ^<script1>:65: error: input ended while parsing XML}
> I think this issue is pretty serious because when a page contains HTML specific entities (like umlauts, &lt; will work as it is allowed in all XML documents) it will just not render or only render partially in Firefox. Also there is no clear indication that this error occurs unless you check the FF error console (which is easy to forget). I also tested with Opera which didn't have the issue. But it seems it is not a Firefox bug that we do not declare X(HT)ML documents correctly.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Closed] (CLEREZZA-548) Missing DOCTYPE declarations on Clerezza pages lead to XML errors in Firefox.

Posted by "Reto Bachmann-Gmür (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CLEREZZA-548?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Reto Bachmann-Gmür closed CLEREZZA-548.
---------------------------------------

    Resolution: Not A Problem

&uuml; is not defined in XHTML, use the unicode character ü instead. Beside that it would be not trivial to add the doctype declaration it seems unnecessary to have the browser load this entity/character definitions from the dtd (actually not directly but from http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent which is referenced in the DTD).

> Missing DOCTYPE declarations on Clerezza pages lead to XML errors in Firefox.
> -----------------------------------------------------------------------------
>
>                 Key: CLEREZZA-548
>                 URL: https://issues.apache.org/jira/browse/CLEREZZA-548
>             Project: Clerezza
>          Issue Type: Bug
>         Environment: Ubuntu 10.10, Firefox 3.6.17
>            Reporter: Daniel Spicar
>
> When pages use HTML entities (e.g. &uuml;) in their source Firefox 3.6 fails to render the page because of an error (in FF error console):
> "XML Parsing Error: undefined entity"
> This can be solved by adding a DOCTYPE declaration at the top of that page.
> e.g.
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> However it seems that none of the SSP generated pages in Clerezza do that and I am not aware of how to do it in SSP. If I add it to the SSP source I get an exception when the SSP is parsed:
> ScriptException rendering ScalaServerPage: 
> org.apache.clerezza.scala.scripting.CompileErrorsException: <script1>:17: error: in XML literal: '-' expected instead of 'D'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  ^<script1>:17: error: in XML literal: '-' expected instead of 'O'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"   ^<script1>:65: error: input ended while parsing XML}
> I think this issue is pretty serious because when a page contains HTML specific entities (like umlauts, &lt; will work as it is allowed in all XML documents) it will just not render or only render partially in Firefox. Also there is no clear indication that this error occurs unless you check the FF error console (which is easy to forget). I also tested with Opera which didn't have the issue. But it seems it is not a Firefox bug that we do not declare X(HT)ML documents correctly.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira