<?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>9666</bug_id>
          
          <creation_ts>2010-05-06 12:18:28 +0000</creation_ts>
          <short_desc>Tests on DOM tree are not run when DOCTYPE and XHTML namespace are missing</short_desc>
          <delta_ts>2010-05-06 12:42:32 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>mobileOK Basic checker</product>
          <component>Java Library</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></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="fd">fd</reporter>
          <assigned_to name="fd">fd</assigned_to>
          
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>35457</commentid>
    <comment_count>0</comment_count>
    <who name="fd">fd</who>
    <bug_when>2010-05-06 12:18:28 +0000</bug_when>
    <thetext>Subtests such as IMAGES_SPECIFY_SIZE-4 are applied to the DOM tree generated from the resource under test.

When that resource neither declares a DOCTYPE nor contains an XHTML namespace declaration (the &quot;xmlns&quot; attribute), these tests are not run because the XSL stylesheets expect that the DOM tree in the moki document belongs to the XHTML namespace.

Ex of source that triggers the problem (with an image that is bigger than the dimensions announced in the markup):
&lt;html xml:lang=&quot;en&quot;&gt;
 &lt;head&gt;
  &lt;title&gt;No doctype, no namespace&lt;/title&gt;
 &lt;/head&gt;
 &lt;body&gt;
  &lt;p&gt;&lt;img src=&quot;w3c.gif&quot; alt=&quot;W3C&quot; height=&quot;50&quot; width=&quot;50&quot; /&gt;&lt;/p&gt;
 &lt;/body&gt;
&lt;/html&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35458</commentid>
    <comment_count>1</comment_count>
    <who name="fd">fd</who>
    <bug_when>2010-05-06 12:42:32 +0000</bug_when>
    <thetext>XHTML namespace forced in XhtmlContent.importNodeWithPosition.

It might be better to add a DOCTYPE declaration before injecting the content in the XML parser, but then the whole question would be: when does &quot;tidying&quot; start? In other words, if we change the source, we already start the tidying process (note that if the source has to go through parseTidiedDOM, the namespace would be automatically added).

The IMAGES_SPECIFY_SIZE 15 test was added to the test suite to prevent regression.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>