Re: Placement of comments

Bill Braun <[email protected]>
Newsgroups gmane.comp.web.amaya.general
Message-ID <[email protected]>
Martin J. Dürst wrote:
> When I write a comment in HTML by hand, I usually place it before some 
> construct, similar to how I would do it in a programming language.
>
> Example:
>
> <h1>document title</h1>
> <p>bla bla bla</p>
>
> <!-- very big table -->
> <table>
> ....
> </table>
>
>
> Amaya keeps comments, but it insists on moving them from immediately 
> before the next construct to immediately after the previous construct. 
> The above example turns into:
>
> <h1>document title</h1>
> <p>bla bla bla</p>
> <!-- very big table -->
>
> <table>
> ....
> </table>
>
> This looks rather inappropriate when looking at the source again. If 
> there's some frequent use of comments after (rather than before) a 
> construct, I'd like to know. Otherwise, it'd be really nice if this 
> were fixed, thanks!
>
> Regards,   Martin.
>

Another common occurrence for me is the following:

As written:

<div class="someclass">
<p>blah, blah, blah</p>
</div><!-- close class someclass -->

Which Amaya changes to:

<div class="someclass">
<p>blah, blah, blah</p>
</div>
<!-- close class someclass -->

This is small potatoes on one hand. On the other, it suggests that Amaya 
is moving markup code around, which may be a larger issue.

Regards,

Bill B
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.