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

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).

  • Comment on Re^8: Keep quotes around numerical attributes after parsing with HTML::Treebuilder?

Replies are listed 'Best First'.
Re^9: Keep quotes around numerical attributes after parsing with HTML::Treebuilder?
by CountZero (Bishop) on Jul 19, 2005 at 21:14 UTC
    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