https://bugzilla.wikimedia.org/show_bug.cgi?id=31326
Web browser: ---
Bug #: 31326
Summary: Embedding Wikipedia Mobile pages throws error
Product: Wikimedia Mobile
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: minor
Priority: Unprioritized
Component: generic
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
Created attachment 9151
--> https://bugzilla.wikimedia.org/attachment.cgi?id=9151
Error message on an iPhone
When embedding a mobile Wikipedia page in an iframe, the Javascript run from
within the iframe causes the following error on an iPhone:
NO_MODIFICATION_ALOWED_ERR: DOM EXCEPTION 7
The offending file is
http://bits.wikimedia.org/w/extensions-1.17/MobileFrontend/javascripts/application.js?version=20110920T172820Z
Specifically, like 70:
decode.innerHTML = unescape( decode.innerHTML )
The use of innerHTML is not allowed in Mobile Safari. I believe innerText
should be used instead.
Here is an example in a JSFiddle:
http://jsfiddle.net/swLYU/
If you view that link on an iPhone, click "Run" and you will see the error.
This is an unfortunate error as it hinders iPhone development with Wikipedia
pages.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l