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

View: New views
2 Messages — Rating Filter:   Alert me  

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

by 石瑞 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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!
 

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

by Jan Frits Vegter :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

The  <style> xxx </style> are supposed to be in the head

 

But if you want it in the page try

 

<div style=""

 

</div>

Greetings

Jan Frits Vegter

 

 


From: html-tidy-request@... [mailto:html-tidy-request@...] On Behalf Of ??
Sent: Friday, September 18, 2009 6:54 AM
To: html-tidy
Subject: how can I disable <style> element's movement?

 

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!