Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Invalid
-
Affects Version/s: 1.7.2 SP1
-
Fix Version/s: None
-
Component/s: Framework
-
Labels:None
-
Environment:WinXP, RAD7, WebSphere 6., facelets
Description
The Generated <html> tag does not contain the required xmlns declaration. Even if specifically included in the html tag.
---
Source:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ice="http://www.icesoft.com/icefaces/component">
---
Generated xhtml:
<html id="document:html" lang="de">
---
The w3c validator (http://validator.w3.org/) reports:
Missing xmlns attribute for element html. The value should be: http://www.w3.org/1999/xhtml .
...xhtml1/DTD/xhtml1-transitional.dtd"><html id="document:html" lang="de"><head>
Many Document Types based on XML need a mandatory xmlns="" on the root element. For example, the root element for XHTML will look like:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
Please fix this for XHTMl Transitional Validation.
---
Source:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ice="http://www.icesoft.com/icefaces/component">
---
Generated xhtml:
<html id="document:html" lang="de">
---
The w3c validator (http://validator.w3.org/) reports:
Missing xmlns attribute for element html. The value should be: http://www.w3.org/1999/xhtml .
...xhtml1/DTD/xhtml1-transitional.dtd"><html id="document:html" lang="de"><head>
Many Document Types based on XML need a mandatory xmlns="" on the root element. For example, the root element for XHTML will look like:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
Please fix this for XHTMl Transitional Validation.
Issue Links
- blocks
-
ICE-1114 Accessiblity: Components must support XHTML v1.0 Transitional markup
- Closed
Activity
Tobias Eisenträger
created issue -
Tobias Eisenträger
made changes -
Ken Fyten
made changes -
Status | Open [ 1 ] | Closed [ 6 ] |
Resolution | Invalid [ 6 ] |
I've got a suggestion to fix it. In "DOMResponseWriter" I added this row of code at the end of the "enhanceHtml" method.
html.setAttribute("xmlns", "http://www.w3.org/1999/xhtml");
The problem is that this is a hardcoding hell: I'd like that the "ice:outputDeclaration" choose the right Serializer with the right treatment of XHTML.
Maybe, is this fixed in IceFaces 2?