Skip to content

typeNameOf fixes for Firefox clobber Safari (and IE) #1884

Closed
@nex3

Description

@nex3

The current typeNameOf function in Frog uses Object.prototype.toString to extract the type name of objects in non-Chrome browsers. It then manually checks for "Document" and "XMLDocument" and renames those to "HTMLDocument" and "Document" respectively, since Firefox uses unusual names. However, Safari does not. This means that Safari's XML document object is named "Document" but gets renamed to "HTMLDocument" incorrectly.

The situation for IE is even worse: it calls both HTML and XML documents "Document".

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions