ICEfaces
  1. ICEfaces
  2. ICE-3972

XHTML: Generated <html> tag does not contain required xmlns declaration

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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.

        Issue Links

          Activity

          Hide
          Alberto Mozzone added a comment -

          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?

          Show
          Alberto Mozzone added a comment - 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?
          Hide
          Ken Fyten added a comment -

          Marking as Closed / Invalid as part of legacy ICEfaces 1.x, 2.x JIRA cleanup.

          Note: This issue may be resolved in a newer ICEfaces release, available here: http://www.icesoft.org/java/downloads/icefaces-downloads.jsf

          If the issue persists with the current ICEfaces release, please create a new JIRA for it.

          Show
          Ken Fyten added a comment - Marking as Closed / Invalid as part of legacy ICEfaces 1.x, 2.x JIRA cleanup. Note: This issue may be resolved in a newer ICEfaces release, available here: http://www.icesoft.org/java/downloads/icefaces-downloads.jsf If the issue persists with the current ICEfaces release, please create a new JIRA for it.

            People

            • Assignee:
              Unassigned
              Reporter:
              Tobias Eisenträger
            • Votes:
              7 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: