Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-1448

InputHtmlRenderer: Missing xmlns:i18n declarations in various HTML elements

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.1.9
    • 1.1.10
    • Html Editor
    • None

    Description

      In encodeEndNormalMode() various HTML elements are written with attributes prefixed with "i18n".
      Not all those HTML elements have a namespace definition.
      That is:

      writer.writeAttribute("xmlns:i18n", "http://xml.zope.org/namespaces/i18n", null);

      is missing for various elements (whereas for most elements the namespace attribute is set already).

      This results in invalid XHTML. This in turn results in errors with DOM parsing throug browser-side scripts, like with RichFaces' PPR.
      Please, just add the missing xmlns:i18n attributes.

      Suggestion: Put the xmlns attributes in parent HTML elements instead of reproducing them all the child elements. This would save HTML code.
      For example:
      <div xmlns:i18n="http://xml.zope.org/namespaces/i18n" id="toolbar" class="kupu-tb">
      ...
      <button i18n:attributes="title"/> // no need to repeat xmlns-attribute because it is now in the parent div

      There are just 2 div elements which need the xmlns:i18n attribute:
      <div id="toolbar" > and <div id="kupu-toolboxes">

      Attachments

        Issue Links

          Activity

            People

              lu4242 Leonardo Uribe
              lutzulrich Lutz Ulruch
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: