BeautifulSoup bug when ">>>" found in attribute value
Duncan Booth
duncan.booth at invalid.invalid
Thu Dec 28 04:54:00 EST 2006
"Anne van Kesteren" <annevankesteren at gmail.com> wrote:
>> Mind you, the sentence before that says 'should' for quoting <
>> characters which is just plain silly.
>
> For quoted attribute values it isn't silly at all. It's actually part
> of how HTML works.
>
Yes, but the sentence I was complaining about isn't talking specifically
about attribute values. It says:
> Authors wishing to put the "<" character in text should use "<"
> (ASCII decimal 60) to avoid possible confusion with the beginning of a
> tag (start tag open delimiter).
Not requiring "<" to be quoted in text is, IMHO, silly. However I fully
admit that all the browsers I tried will happily accept < followed by a
space character as not starting a tag.
More information about the Python-list
mailing list