in reply to Re^3: Keep quotes around numerical attributes after parsing with HTML::Treebuilder?
in thread Keep quotes around numerical attributes after parsing with HTML::Treebuilder?
Well "...ish".
You can't write HTML 4.01 that conforms to XML standards, but XHTML 1.0 is a language that reimplements HTML 4.01 in XML.
The obvious change to give as an example is that <br> in HTML is <br/> in XHTML - but if you tried to use <br/> in HTML then it would mean the same as <br/>> (or a line beak followed by a greater than symbol).
So you can't just output XHTML and then slap an HTML Doctype on it. (Heck, its not really safe to serve XHTML as text/html despite what it says in Appendix C of the XHTML 1.0 Spec.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Keep quotes around numerical attributes after parsing with HTML::Treebuilder?
by CountZero (Bishop) on Jul 19, 2005 at 16:07 UTC | |
by dorward (Curate) on Jul 19, 2005 at 16:17 UTC | |
by CountZero (Bishop) on Jul 19, 2005 at 19:59 UTC | |
by dorward (Curate) on Jul 19, 2005 at 21:00 UTC | |
by CountZero (Bishop) on Jul 19, 2005 at 21:14 UTC | |
|