Menu

#199 <name > becomes tagname and null Attribute

v1.6
closed-wont-fix
5
2006-04-24
2006-01-23
No

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

Discussion

  • Derrick Oswald

    Derrick Oswald - 2006-01-23

    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.

     
  • Derrick Oswald

    Derrick Oswald - 2006-01-23
    • labels: --> Attribute Parsing
    • milestone: --> v1.6
    • assigned_to: nobody --> derrickoswald
    • status: open --> pending-wont-fix
     
  • SourceForge Robot

    • status: pending-wont-fix --> closed-wont-fix
     
  • SourceForge Robot

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

     

Log in to post a comment.

MongoDB Logo MongoDB