Closed
Bug 168768
Opened 23 years ago
Closed 23 years ago
The navigator.appName DOM Object gives out the String "Netscape". This makes ist hard to create cross-browser scripts, when trying to use Mozilla-related Objects that are not available in Netscape, and when trying to print the Broser Name to the Screen.
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
People
(Reporter: arjun, Assigned: jst)
Details
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.1) Gecko/20020826
Build Identifier: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.1) Gecko/20020826
You will have to change the Parse String for "navigator.appName".
Reproducible: Always
Steps to Reproduce:
1.Create an HTML File with the Content:
<html>
<head>
<script language="javascript">
apps = navigator.appName
</script>
</head>
<body>
<script language="javascript">
document.write("<b>"+apps+"</b>");
</script>
</body>
</html>
2. Open the HTML Document in Mozilla (tested with 1.1) and look out for String
output "Netscape".
Actual Results:
I got the String "Netscape" appearing on my Browser Screen.
Expected Results:
Given out the String "Mozilla"
Comment 1•23 years ago
|
||
I don't think so, because
1. Mozilla is from the scripting aspect the same as Netscape 6/7 (the sites have
to proof the Version Mozilla/x.0)
2. navigator.appName is the offical modellname, but Mozilla is a browser,
orginally developed for new Netscape-Versions, what's still like this.
navigator.appCodeName is Mozilla and thats right.
I think there is no change needed for navigator.appName.
Comment 2•23 years ago
|
||
*** This bug has been marked as a duplicate of 61071 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•