<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>8984</bug_id>
          
          <creation_ts>2010-02-14 06:58:33 +0000</creation_ts>
          <short_desc>Invalid XMLLiteral definition of namesspace-well-formed XML fragments is too weak</short_desc>
          <delta_ts>2011-08-04 05:06:23 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>LC1 HTML+RDFa (editor: Manu Sporny)</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://dev.w3.org/html5/rdfa/#parsing-model</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Maciej Stachowiak">mjs</reporter>
          <assigned_to name="Manu Sporny">msporny</assigned_to>
          <cc>mike</cc>
    
    <cc>msporny</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>31988</commentid>
    <comment_count>0</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2010-02-14 06:58:33 +0000</bug_when>
    <thetext>Section 4.2 Invalid XMLLiteral values says:

&apos;When generating literals of type XMLLiteral, the processor must ensure that the output XMLLiteral is a namespace well-formed XML fragment. A namespace well-formed XML fragment has the following properties:

* The XML fragment, when placed inside of a single root element, must validate as well-formed XML. The normative language that describes a well-formed XML document is specified in Section 2.1 &quot;Well-Formed XML Documents&quot; of the XML specification.

* A case-insensitive match for the currently active xmlns attribute as well as all currently active attributes starting with xmlns: must be preserved in the generated XMLLiteral. This preservation must be accomplished by placing all active namespaces in each top-level element in the generated XMLLiteral, taking care to not over-write pre-existing namespace values.&apos;

That set of properties appears to be too weak. It does not seem to guarantee that the fragment placed in a root element would be namespace well-formed for instance. It is required to be well-formed, but the second requirement does not seem like it would render it namespace-well-formed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32124</commentid>
    <comment_count>1</comment_count>
    <who name="Manu Sporny">msporny</who>
    <bug_when>2010-02-16 04:24:46 +0000</bug_when>
    <thetext>RDFA-SPEC-SECTIONS [invalid-xmlliteral-values]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35388</commentid>
    <comment_count>2</comment_count>
    <who name="Manu Sporny">msporny</who>
    <bug_when>2010-05-04 03:56:28 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are
satisfied with this response, please change the state of this bug to CLOSED. If
you have additional information and would like the editor to reconsider, please
reopen this bug. If you would like to escalate the issue to the full HTML
Working Group, please add the TrackerRequest keyword to this bug, and suggest
title and text for the tracker issue; or you may create a tracker issue
yourself, if you are able to do so. For more details, see this document:

http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Fixed

Change Description: 

Reworded Invalid XMLLiteral values section, bullet item #2:

&quot;&quot;&quot;
* The XML fragment, when placed inside of a single root element, must retain all active namespace information. The currently active attributes declared using xmlns and xmlns: stored in the RDFa Processor&apos;s current evaluation context in the list of URI mappings must be preserved in the generated XMLLiteral. The PREFIX value for xmlns:PREFIX must be transformed to all lower-case characters when preserving the value in the XMLLiteral. All active namespaces declared via xmlns and xmlns: must be placed in each top-level element in the generated XMLLiteral, taking care to not overwrite pre-existing namespace values.
&quot;&quot;&quot;

and added an extra example:

&quot;&quot;&quot;
Similarly, compound document elements that reside in different namespaces must have their namespaces declarations preserved:

&lt;p xmlns:ex=&quot;http://example.org/vocab#&quot;
   xmlns:rdf=&quot;http://www.w3.org/1999/02/22-rdf-syntax-ns#&quot;
   xmlns:fb=&quot;http://www.facebook.com/2008/fbml&quot;&gt;
 This is how you markup a user in FBML:
 &lt;span property=&quot;ex:markup&quot; datatype=&quot;rdf:XMLLiteral&quot;&gt;
&amp;#8594;&lt;p&gt;&lt;fb:user uid=&quot;12345&quot;&gt;The User&lt;/fb:user&gt;&lt;/p&gt;
&amp;#8594;&lt;/span&gt;
The markup above should produce the following triple, which preserves the fb namespace in the corresponding triple:

&lt;&gt;
   &lt;http://example.org/vocab#markup&gt;
      &quot;&lt;p xmlns:fb=&quot;http://www.facebook.com/2008/fbml&quot;&gt;
&amp;#8594;&lt;fb:user uid=&quot;12345&quot;&gt;
&amp;#8594;&lt;/p&gt;&quot;^^http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral .
&quot;&quot;&quot;

Rationale:

The previous text did specify that all namespace declarations should be preserved on the top-most element, thus ensuring a namespace-well-formed XMLLiteral. Since the reader missed this, the text has been re-worded to make this more clear as well as add the requirement that the xmlns prefix value should be forced to lower-case to ensure compatibility between HTML and XHTML documents.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53069</commentid>
    <comment_count>3</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-08-04 05:06:23 +0000</bug_when>
    <thetext>mass-move component to LC1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>