Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6570546

Inline HTML elements should be preserved in the parsed document tree

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P5 P5
    • None
    • 1.3.1, 7
    • client-libs
    • generic, x86
    • generic, linux

      Inline elements such as SPAN, I, B, FONT, etc. aren't currently kept in the HTMLDocument tree. The relevant information is stored as the character content attributes. This results in a number of problems.

        * Element addressing. There's no way to locate inline HTML elements (by their IDs for example) in the parsed document tree as they don't actually exist. This makes it difficult to properly implement ID-based CSS locators or DOM API basics.

        * CSS box model. It's not possible to implement the basic CSS functionality like borders and backgrounds for the inline elements.

        * I/O fidelity. The HTML serializer output does not correspond to the input document read by the HTML parser. This confuses users.

      The inline HTML elements should be preserved in the parsed document tree in a way that a) makes it possible to address the above problems and b) is compatible with the current element API.

            peterz Peter Zhelezniakov
            gsm Sergey Groznyh (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: