<name > becomes tagname and null Attribute
Brought to you by:
derrickoswald
Hi Derrick,
I am not nitpicking on htmlparser. I just report this
behaviour to help to improve htmlparser.
I experienced that:
<a > becomes a Tag with the name Attribute at first
position in the Vector (getAttributesEx()) and a
strange Attribute with a null name at 2nd position.
Takes some debugging to catch it but it's possible to
deals with it. I don't know the reason and did not have
time to dive. Possibly somewhere in parsing code.
kind regards,
Achim
Logged In: YES
user_id=605407
This is the desired behaviour.
The attribute in the second position is a whitespace
attribute, and is required to output the same HTML that was
read in. These whitespace attributes are generated very
often, whereever there is text, that isn't an attribute,
within the tag itself.
Of course this is an invalid link tag, and the parser's
interpretation of it (and your program's interpretation) may
be way incorrect, but a whitespace attribute is probably the
best way to handle it.
Marking it "won't fix" unless there's something more to it
than what's described.
Logged In: YES
user_id=1312539
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 90 days (the time period specified by
the administrator of this Tracker).