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

Volodymyr Siedlecki commented on MYFACES-4488:
----------------------------------------------

Using 
{color:#d4d4d4} 
{color}{color:#808080}<!{color}{color:#569cd6}DOCTYPE{color}{color:#d4d4d4} 
{color}{color:#9cdcfe}html{color}{color:#808080}>{color}

Gives me: 
 Error Traced[line: 42] The entity "nbsp" was referenced, but not declared.

I don't understand why 
{code:java}
&nbsp;{code}
 is ignored...

> MyFaces Does Not Honor "&nbsp;" HTML Entity
> -------------------------------------------
>
>                 Key: MYFACES-4488
>                 URL: https://issues.apache.org/jira/browse/MYFACES-4488
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 4.0.0-RC2
>            Reporter: Volodymyr Siedlecki
>            Priority: Minor
>
> This came up as part of the Faces 4.0 TCK where some pages weren't rendered 
> the same as Mojarra. This behavior is replicated in the sample code below. 
> There should be a space between Hello and World. However, I found that 
> `#160;` is recognized. 
> {code:java}
> <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” 
> “http://www.w3c.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
> <html xmlns=“http://www.w3.org/1999/xhtml” 
> xmlns:c=“http://java.sun.com/jsp/jstl/core” 
> xmlns:h=“http://java.sun.com/jsf/html” xmlns:f=“http://java.sun.com/jsf/core” 
> xmlns:ui=“http://java.sun.com/jsf/facelets”>
>     <h:head>
>     </h:head>
>     <h:body>
>        Hello&nbsp;World
>        Good&#160;Bye
>     </h:body>
> </html>{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to