https://bugs.kde.org/show_bug.cgi?id=404320

            Bug ID: 404320
           Summary: WebHitTestResult incorrectly assumes every <a> element
                    has 'href' attribute
           Product: Falkon
           Version: unspecified
          Platform: Gentoo Packages
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: now...@gmail.com
          Reporter: eugene.shalygin+bugzilla....@gmail.com
  Target Milestone: ---

SUMMARY
If <a> element does not have 'href' attribute, the JS script in
WebHitTestResult generates an error: Uncaught TypeError: Cannot read property
'trim' of null.

Such <a> tags are widely used by Twine/Tweego story formats. Thus debugging
such stories using Falkon is greatly complicated.

STEPS TO REPRODUCE
1. Create a HTML document with <a> element which does not have 'href' attribute
(handles the link via a script, for example)
2. Open it in Falkon
3. Click the link.

OBSERVED RESULT

"TypeError: Cannot read property 'trim' of null." in the console log.


EXPECTED RESULT
No errors

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: git master
KDE Frameworks Version: git master
Qt Version: 5.12.1

ADDITIONAL INFORMATION

http://www.motoslave.net/tweego/

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to