|
[ tidy-Feature Requests-1238794 ] CFG: option to keep spaces in CDATA value: msg#00062web.html-tidy.tracker
Feature Requests item #1238794, was opened at 2005-07-15 11:57 Message generated for change (Comment added) made by hoehrmann You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=390966&aid=1238794&group_id=27659 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. >Category: HTML/XML/XHTML Parser >Group: Current - all platforms Status: Open Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) >Summary: CFG: option to keep spaces in CDATA values Initial Comment: <?php $html = '<p><input type="submit" value=" submit " /></p>'; $tidy = tidy_parse_string($html); $tidy->CleanRepair(); echo $tidy; ?> outputs: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN"> <html> <head> <title></title> </head> <body> <p><input type="submit" value=" submit "></p> </body> </html>´ (it removes the extra spaces inside the value attrivute of the input tag) ---------------------------------------------------------------------- >Comment By: Björn Höhrmann (hoehrmann) Date: 2005-08-18 22:31 Message: Logged In: YES user_id=188003 This is often unavoidable though. Tidy does not know whether those spaces are there by intent and whether the user wants Tidy to repair the document or not. If we'd fix this we would probably need to make it configurable and I'm not sure this is really worth a new option. ---------------------------------------------------------------------- Comment By: Nuno Lopes (nuno-lopes) Date: 2005-08-03 17:35 Message: Logged In: YES user_id=841194 Thinking in pratical terms, it doesn't seem correct to me. If someone is repairing his documents, he/she doesn't expect to change its apparence. The leading spaces are often used to enlarge the buttons. ---------------------------------------------------------------------- Comment By: Björn Höhrmann (hoehrmann) Date: 2005-08-03 14:39 Message: Logged In: YES user_id=188003 Yes, the value attribute is a CDATA attribute and the HTML 4.01 Recommendation explicitly allows implementations to remove leading and trailing white space. It also notes that use of such white space should be avoided. I don't really see a reason to change this behavior. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=390966&aid=1238794&group_id=27659 ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [ tidy-Bugs-1263391 ] ADDRESS tag is wrongly defined as BLOCK container: 00062, SourceForge.net |
|---|---|
| Next by Date: | [ tidy-Bugs-1161797 ] --word-2000 always outputs numeric entities: 00062, SourceForge.net |
| Previous by Thread: | [ tidy-Bugs-1263391 ] ADDRESS tag is wrongly defined as BLOCK containeri: 00062, SourceForge.net |
| Next by Thread: | [ tidy-Bugs-1161797 ] --word-2000 always outputs numeric entities: 00062, SourceForge.net |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |