in reply to Re^4: Keep quotes around numerical attributes after parsing with HTML::Treebuilder?
in thread Keep quotes around numerical attributes after parsing with HTML::Treebuilder?
if you tried to use <br/> in HTML then it would mean the same as <br/>> (or a line break followed by a greater than symbol)Are you sure? I tried <br/> in a small HTML-file and had it validated by the "official" W3C-validator at http://validator.w3.org.
The uploaded file was tentatively found to be Valid. That means it would validate as HTML 4.01 Strict if you updated the source document to match the options used (typically this message indicates that you used either the Document Type override or the Character Encoding override). Source Listing Below is the source input I used for this validation:I don't think you can "escape" characters with special meaning in (X)HTML by using a slash. You must use entities for that.1: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"> 2: <html> 3: <head><title>TITLE</title></head> 4: <body><p>TEST<br/>TEST</p></body> 5: </html>
CountZero
"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Keep quotes around numerical attributes after parsing with HTML::Treebuilder?
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 | |
by dorward (Curate) on Jul 19, 2005 at 21:26 UTC |