<?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>6076</bug_id>
          
          <creation_ts>2008-09-15 22:17:45 +0000</creation_ts>
          <short_desc>XML Tree gratuitously reorganized</short_desc>
          <delta_ts>2008-09-16 08:45:52 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Amaya</product>
          <component>Editing</component>
          <version>10.1</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</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="CPK Smithies">c.1</reporter>
          <assigned_to name="Vincent Quint">vincent.quint</assigned_to>
          <cc>carcone</cc>
    
    <cc>fred.wang</cc>
    
    <cc>Irene.Vatton</cc>
    
    <cc>vincent.quint</cc>
          
          <qa_contact name="Vatton">Irene.Vatton</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>21905</commentid>
    <comment_count>0</comment_count>
      <attachid>583</attachid>
    <who name="CPK Smithies">c.1</who>
    <bug_when>2008-09-15 22:17:45 +0000</bug_when>
    <thetext>Created attachment 583
Valid XHTML1.1 file demonstrating the XML Tree Reordering feature

I have found various cases, of which this is the clearest cut, where Amaya has reorganized the XML tree of the input document and has saved it in its reorganized form. If, within a valid document, a &lt;div&gt; element occurs within a &lt;button&gt; element, then in the course of presenting the output, Amaya revises the XML tree so that the &lt;div&gt; encloses the &lt;button&gt;; so, for example,

&lt;button&gt;&lt;div&gt;Text&lt;/div&gt;&lt;/button&gt;

becomes

&lt;div&gt;&lt;button&gt;Text&lt;/button&gt;&lt;/div&gt;.

The attached valid XHTML1.1 file can be viewed in an up to date browser and will show a button with white text on a black background. On first loading with Amaya, the button is rendered as if enclosed in the &lt;div&gt; element, and if the document is saved (unless - workaround! - the document is saved while the source view is active) it will be saved thus reordered.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>583</attachid>
            <date>2008-09-15 22:17:45 +0000</date>
            <delta_ts>2008-09-15 22:17:45 +0000</delta_ts>
            <desc>Valid XHTML1.1 file demonstrating the XML Tree Reordering feature</desc>
            <filename>AmayaBug01.html</filename>
            <type>application/xml</type>
            <size>1810</size>
            <attacher name="CPK Smithies">c.1</attacher>
            
              <data encoding="base64">PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IURPQ1RZUEUgaHRt
bCBQVUJMSUMgIi0vL1czQy8vRFREIFhIVE1MIDEuMS8vRU4iCiAgICAgICJodHRwOi8vd3d3Lncz
Lm9yZy9UUi94aHRtbDExL0RURC94aHRtbDExLmR0ZCI+CjxodG1sIHhtbG5zPSJodHRwOi8vd3d3
LnczLm9yZy8xOTk5L3hodG1sIiB4bWw6bGFuZz0iZW4tR0IiPgo8aGVhZD4KICA8bWV0YSBodHRw
LWVxdWl2PSJjb250ZW50LXR5cGUiCiAgY29udGVudD0iYXBwbGljYXRpb24veGh0bWwreG1sOyBj
aGFyc2V0PWlzby04ODU5LTEiIC8+CiAgPHRpdGxlPkFtYXlhQnVnMDE8L3RpdGxlPgogIDxzdHls
ZSB0eXBlPSJ0ZXh0L2NzcyI+Ci8qPCFbQ0RBVEFbKi8KYnV0dG9uPmRpdi5ibGFjayB7IGNvbG9y
OiNGRkY7IGJhY2tncm91bmQtY29sb3I6IzAwMDsgfQojZXh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