Bug 339247 - accessing className of audio tag returns undefined instead of empty string
Summary: accessing className of audio tag returns undefined instead of empty string
Status: RESOLVED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: khtml ecma (show other bugs)
Version: 4.13.3
Platform: Debian stable Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords: testcase
Depends on:
Blocks:
 
Reported: 2014-09-20 19:43 UTC by Mathias Nater
Modified: 2018-12-18 22:36 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
testcase (460 bytes, text/html)
2014-09-20 19:44 UTC, Mathias Nater
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mathias Nater 2014-09-20 19:43:20 UTC
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
Comment 1 Mathias Nater 2014-09-20 19:44:29 UTC
Created attachment 88766 [details]
testcase
Comment 2 Andrew Crouthamel 2018-11-12 02:56:51 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Andrew Crouthamel 2018-11-21 04:44:04 UTC
Dear Bug Submitter,

This is a reminder that this bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? This bug will be moved back to REPORTED Status for manual review later, which may take a while. If you are able to, please lend us a hand.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Mathias Nater 2018-12-18 22:36:35 UTC
Hi

Thanks for the fix.
I just checked with Konqueror Version 5.0.97 on Ubuntu 18.10 and everything works like expected.

Best regards,
Mathias