0

I use Tidy to clean and make HTML files compliant to HTML/XHTML. However, output contains non-standard attributes values like :

<table id='abc'>...

or

<input type='button' />

(look at the single quotes). How can I configure Tidy to give strict XHTML output? Thank you in advance!

Serhat Ozgel
  • 23,496
  • 29
  • 102
  • 138
Viet
  • 17,944
  • 33
  • 103
  • 135
  • 6
    Sorry, I don't know the answer to the question, however I thought I'd leave this comment to let you know that using a single-quote is perfectly ok - it is well formed XHTML/XML to use either type of quote. As long as it is consistant (always ' or ") I see no problem with it. – Mark Embling Jul 01 '09 at 09:47
  • Tidy is written in C and I need to write code in C++ to config, I don't use command line tool. – Viet Jul 01 '09 at 09:57

1 Answers1

7

This is indeed a valid XHTML. You can put either double quotes or single quotes for attribute values.

rahul
  • 184,426
  • 49
  • 232
  • 263