Re: how can I disable <style> element's movement?

"Rijk van Geijtenbeek" <[email protected]>
Newsgroups gmane.comp.web.html-tidy.user
Organization Opera Software ASA
Message-ID <[email protected]>
Op Fri, 18 Sep 2009 06:48:57 +0200 schreef 石瑞 <[email protected]>:

> input:
><div>
>> <style>
>> xxx
>> </style>
> </div>
>tidy output:
><html>
>> <head>
>>> <style>
>>> xxx
>>> </style>
>> </head>
>> <body>
>> <div></div>
>> </body>
> </html>
>but I want this:
><html>
>> <head>
>> </head>
>> <body>
>> <div>
>>> <style>
>>>> xxx
>>> </style>
>> </div>
>> </body>
> </html>
>How can I disable the style element's movement? Thanks a lot!
>

That's not possible I think. Note that in HTML, the style element is  
supposed to be in the head, it is not allowed in the body. So tidy does  
what its name implies: tidies up the wrong placement of the style element.

-- 
  Rijk van Geijtenbeek
  Opera Software ASA
http://my.opera.com/Rijk/blog/

"The most common way to get usability wrong is to listen to what users
say rather than actually watching what they do." - J.Nielsen
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.