in reply to Re^6: Keep quotes around numerical attributes after parsing with HTML::Treebuilder?
in thread Keep quotes around numerical attributes after parsing with HTML::Treebuilder?

<br/> doesn't show a line break followed by a greater than symbol in version 1.05 of FireFox. To do that I have to effectively double-up the > symbol.

<br/ slurps everything until the next > into the line break, so it is definitely not the same as <br/>!

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^8: Keep quotes around numerical attributes after parsing with HTML::Treebuilder?
by dorward (Curate) on Jul 19, 2005 at 21:00 UTC

    Most browsers have tag soup parsers that don't follow SGML rules correctly, Firefox is one of them.

    See how the validator handles it (by comparing the source code with the parse tree).

      You're right: <br/ gets parsed into <br></br>.

      However, even under HTML 4.01 strict <br/> gets parsed into <br></br> as well!

      CountZero

      "If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law

        That is becuase <br> is defined as an empty element.

        That isn't my point though, look again:

               breaks in it
               >breaks in it