This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 6076 - XML Tree gratuitously reorganized
Summary: XML Tree gratuitously reorganized
Status: RESOLVED FIXED
Alias: None
Product: Amaya
Classification: Unclassified
Component: Editing (show other bugs)
Version: 10.1
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Vincent Quint
QA Contact: Vatton
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-15 22:17 UTC by CPK Smithies
Modified: 2008-09-16 08:45 UTC (History)
4 users (show)

See Also:


Attachments
Valid XHTML1.1 file demonstrating the XML Tree Reordering feature (1.77 KB, application/xml)
2008-09-15 22:17 UTC, CPK Smithies
Details

Description CPK Smithies 2008-09-15 22:17:45 UTC
Created attachment 583 [details]
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 <div> element occurs within a <button> element, then in the course of presenting the output, Amaya revises the XML tree so that the <div> encloses the <button>; so, for example,

<button><div>Text</div></button>

becomes

<div><button>Text</button></div>.

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 <div> 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.