Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-6172

Inconsistent results from getTag[s]ByWicketId

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 8.0.0-M1, 7.4.0, 6.24.0
    • wicket
    • None

    Description

      The change in WICKET-5874 alters the behavior for getTagByWicketId but not getTagsByWicketId . Thus for markup like this:

      <div><img ...></div>

      getTagByWicketId will return the img tag, but getTagsByWicketId will return an empty list, which feels very inconsistent.

      Since HTML5 made the /> syntax optional for void elements like input and img, the XmlPullParser probably needs to be replaced with something that can parse HTML5. The fix in WICKET-5874 does not seem sufficient.

      Attachments

        1. tag-tester-quickstart.zip
          46 kB
          Boris Goldowsky

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            boris@alum.mit.edu Boris Goldowsky
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: