- From: Robin Smidsrød <robin@smidsrod.no>
- Date: Tue, 14 Mar 2006 16:52:41 +0100
- To: html-tidy@w3.org
I've been struggling for a while with coming up with a working tidy config file. At the moment I have this content: <script type="text/javascript" src="http://xxx/js/tabpane/tabpane.js"></script> <link type="text/css" rel="stylesheet" href="http://xxx/js/tabpane/tab.winclassic.css" /> <div class="tab-pane" id="tab-pane-022e4daf-9f2c-4904-afbf-96ee097e7689"> <div class="tab-page"> <span class="tab">Test</span>Dette er artig </div> </div> After I run it through Tidy I get this: <div class="tab-pane" id="tab-pane-022e4daf-9f2c-4904-afbf-96ee097e7689"> <div class="tab-page"><span class="tab">Test</span> Dette er artig</div> </div> I use this Tidy config file: input-encoding: utf8 output-encoding: utf8 output-xhtml: y show-body-only: y Why is tidy removing my <script> and <link> tags, even though they don't contain any inline code at all? My tidy doesn't generate any errors about these tags being in error. I want to output XHTML 1.1, but apparently Tidy only support XHTML 1.0. But this shouldn't pose a problem, should it? Am I missing something essential? And just in case, I'll be using this in an AJAX application, that's why I don't need the entire header, only the body content. I've be reading the tidy documentation up and down, I even looked at the tidy source code (but my C skills are not very good) to try and understand WHY my <script> and <link> tags are getting filtered out from my final output. I'm using HTML::Tidy (perl) in the application, but the problem is also present when I use the command-line version (version: HTML Tidy for Linux/x86 released on 1st August 2004) of tidy. So, how do I stop Tidy from removing my <script> and <link> tags? Please CC directly to me, as I'm not a member of the mailing-list. Regards, Robin Smidsrød
Received on Wednesday, 15 March 2006 09:56:55 UTC