[prev in list] [next in list] [prev in thread] [next in thread] 

List:       konq-bugs
Subject:    [konqueror] [Bug 339247] New: accessing className of audio tag returns undefined instead of empty st
From:       Mathias Nater <mathiasnater () gmail ! com>
Date:       2014-09-20 19:43:20
Message-ID: bug-339247-5021 () http ! bugs ! kde ! org/
[Download RAW message or body]

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

            Bug ID: 339247
           Summary: accessing className of audio tag returns undefined
                    instead of empty string
           Product: konqueror
           Version: unspecified
          Platform: Debian stable
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: khtml ecma
          Assignee: konq-bugs@kde.org
          Reporter: mathiasnater@gmail.com

When accessing className of an <audio>-tag all other browsers return an empty
string, if no class is defined. Konqueror (Tested in 4.8.4 on debian wheezy)
returns 'undefined'

Reproducible: Always

Steps to Reproduce:
Test this:

<!DOCTYPE html>
<html lang="fr">
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
    <title>Bug: access className in audio-tag</title>
</head>

<body>

    <audio controls="controls" id="audiotag"><source 
src="https://archive.org/download/testmp3testfile/mpthreetest.mp3"
type="audio/mpeg"></audio>

    <script type="text/javascript">
        alert("#" + document.getElementsByTagName("audio")[0].className + "#");
    </script>

</body>
</html>

Actual Results:  
alert shows #undefined# (instead of ##)

Expected Results:  
return an empty string

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Konq-bugs mailing list
Konq-bugs@kde.org
https://mail.kde.org/mailman/listinfo/konq-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic