<?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>17890</bug_id>
          
          <creation_ts>2012-07-18 07:13:01 +0000</creation_ts>
          <short_desc>xml:base and xml:space allowed on foreign elements, but also forbidden</short_desc>
          <delta_ts>2012-08-24 19:02:24 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ht</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>public-xml-core-wg</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>70250</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-07-18 07:13:01 +0000</bug_when>
    <thetext>This was was cloned from bug 17745 as part of operation convergence.
Originally filed: 2012-07-11 15:28:00 +0000
Original reporter: Henry S. Thompson &lt;ht@inf.ed.ac.uk&gt;

================================================================================
 #0   Henry S. Thompson                               2012-07-11 15:28:03 +0000 
--------------------------------------------------------------------------------
Is it a terminology issue, or a deeper problem, that we have both

  When a _foreign element_ has one of the namespaced attributes given by
  the local name and namespace of the first and second cells of a row
  from the following table, it must be written using the name given by
  the third cell from the same row. . . xml:base . . . xml:space

  [Section 8.1.2.3 Attributes, in Section 8 The HTML Syntax]

but also

  Authors must not use the xml:base attribute in _HTML documents_.

  [Section 3.2.3.5 The xml:base attribute (XML only)]

?

That is, the former appears to allow xml:base on foreign elements,
while the latter appears to forbid it.  Please clarify this in the
spec. one way or the other --- our preference would be for the xml:
attributes to be allowed on foreign elements.

Submitted on behalf of the XML Core WG
================================================================================
 #1   Simon Pieters                                   2012-07-11 16:48:09 +0000 
--------------------------------------------------------------------------------
I think they should be allowed on HTML elements as well. They can be set by script, and xml:base might well be useful.
================================================================================</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72715</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-08-24 19:01:31 +0000</bug_when>
    <thetext>&gt;   When a _foreign element_ has one of the namespaced attributes given by
&gt;   the local name and namespace of the first and second cells of a row
&gt;   from the following table, it must be written using the name given by
&gt;   the third cell from the same row. . . xml:base . . . xml:space

This doesn&apos;t say whether the attribute is allowed or not, just what syntax must be used if it is present.

Whether the attributes in question are allowed or not is up to the specifications that define the elements in question (namely, SVG for SVG elements, MathML for MathML elements, and HTML for HTML elements).

I&apos;ve added a clarifying note to this effect.


&gt;   Authors must not use the xml:base attribute in _HTML documents_.

This was written before HTML documents contained SVG and MathML nodes in the text/html serialisation. I&apos;ve updated this text to refer just to HTML elements.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72716</commentid>
    <comment_count>2</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-08-24 19:02:24 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r7267.
Check-in comment: Narrow the scope of the xml:base ban to HTML elements. If SVG wants to allow them, e.g., that&apos;s up to them.
http://html5.org/tools/web-apps-tracker?from=7266&amp;to=7267</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>