Closed
Bug 281376
Opened 20 years ago
Closed 6 years ago
Provide interfaces for DOM host objects
Categories
(Rhino Graveyard :: Core, enhancement, P5)
Tracking
(Not tracked)
RESOLVED
INACTIVE
People
(Reporter: djgredler, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Most JavaScript is used to manipulate HTML documents (ICEBrowser, HttpUnit,
HtmlUnit, etc). It would be nice if Rhino had interfaces for the DOM objects
(Window, Input, Page, Navigator,etc) that each of these projects could then
implement as necessary when creating their host objects. Would such interfaces
be accepted for inclusion? For example:
public interface INavigator {
public String jsGet_appCodeName();
public String jsGet_appMinorVersion();
public String jsGet_appName();
public String jsGet_appVersion();
public String jsGet_browserLanguage();
public boolean jsGet_cookieEnabled();
public String jsGet_cpuClass();
public boolean jsGet_onLine();
public String jsGet_platform();
public String jsGet_systemLanguage();
public String jsGet_userAgent();
public String jsGet_userLanguage();
public Object jsFunction_plugins();
public boolean jsFunction_javaEnabled();
public boolean jsFunction_taintEnabled();
}
The interface could also include documentation for each property/method,
including browser-specific anomalies, doc links, etc.
Thoughts?
Reproducible: Always
Steps to Reproduce:
Comment 1•19 years ago
|
||
Reassigning to please_see_bug_288433@eml.cc pending resolution of bug 288433
Assignee: igor.bukanov → please_see_bug_288433
Updated•19 years ago
|
Assignee: please_see_bug_288433 → nobody
Comment 3•6 years ago
|
||
Closing. Bug management is now done here:
https://github.com/mozilla/rhino
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INACTIVE
You need to log in
before you can comment on or make changes to this bug.
Description
•