|
[ tidy-Bugs-1604555 ] PRE block reordering produces visually different outp: msg#00045web.html-tidy.tracker
Bugs item #1604555, was opened at 2006-11-28 17:18 Message generated for change (Comment added) made by hoehrmann You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=390963&aid=1604555&group_id=27659 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: HTML/XHTML Parser Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Christopher M. Woods (cmwoods) Assigned to: Nobody/Anonymous (nobody) Summary: PRE block reordering produces visually different output Initial Comment: I've stumbled onto a situation in which Tidying an HTML file (of which I have no control) is producing output that renders visually inconsistent when compared to the input document. It appears that Tidy is taking: ... <PRE> <DIV> Content Data Spaced Data </DIV> </PRE> and rearranging it to be: <DIV> Content Data Spaced Data </DIV> <PRE> </PRE> For both MSIE (7.0) and Firefox (2.0) are in agreement with how they render these two snippets. The "Content Data" block in the former appears as being within the PRE block (courier new, 10pt, whitespace maintained); in the latter it appears as being within a DIV block (default font, 16pt, whitespace compressed). At first glance, it appears that these browsers are discarding the DIV. However more extensive testing will be needed in order to determine if it is completely discarded, just moved as an empty block, or whether the block actually remains (but that the browsers override the properties as needed). I've attached a sample with input, output, log, and tree representation. ---------------------------------------------------------------------- >Comment By: Björn Höhrmann (hoehrmann) Date: 2007-05-25 05:46 Message: Logged In: YES user_id=188003 Originator: NO What do you suggest should Tidy's output look like? ---------------------------------------------------------------------- Comment By: Christopher M. Woods (cmwoods) Date: 2006-12-06 18:03 Message: Logged In: YES user_id=576763 Originator: YES I just noticed that Sourceforge removed the extra whitespace in my bug report that was supposed to appear between the "Content Data" and the "Spaced Data". This was supposed to show that the issue is resulting in the loss of significant whitespace of a pre-formatted block due to the fact that the enclosed DIV is being moved to _before_ the PRE. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=390963&aid=1604555&group_id=27659 ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Tidy-tracker mailing list Tidy-tracker@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/tidy-tracker |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [ tidy-Bugs-1636028 ] Tidy API function tidyNodeGetText escapes output: 00045, SourceForge.net |
|---|---|
| Next by Date: | [ tidy-Bugs-1542404 ] Newlines inserted incorrectly within <pre> block: 00045, SourceForge.net |
| Previous by Thread: | [ tidy-Bugs-1636028 ] Tidy API function tidyNodeGetText escapes outputi: 00045, SourceForge.net |
| Next by Thread: | [ tidy-Bugs-1604555 ] PRE block reordering produces visually different output: 00045, SourceForge.net |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |