Opened 11 years ago
Closed 11 years ago
#10139 closed bug (invalid)
NO_MODIFICATION_ALLOWED_ERR .xhtml on safari
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | low | Milestone: | None |
Component: | misc | Version: | 1.6.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
I am getting a similar error to ticket 3071:
The following contents saved as somepage.xhtml will throw
jquery-1.6.2.js:6111 NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7: An attempt was made to modify an object where modifications are not allowed. in safari.
which is line div.innerHTML = wrap[1] + elem + wrap[2]; in the jquery-1.6.2.js
Works fine as .html page. Thoughts? Does jquery not support .xhtml?
Thanks Jeff [email protected]…
Change History (10)
comment:1 Changed 11 years ago by
comment:2 Changed 11 years ago by
Owner: | set to [email protected]… |
---|---|
Status: | new → pending |
I think we'd need a bit more information to investigate. Looks like the test case just includes jQuery and jQuery Mobile and has no other code. Does the problem go away if you remove the jQuery Mobile include? If so you should report it there. (This bug tracker is just for jQuery core bugs.)
comment:3 Changed 11 years ago by
yes.. The error goes away when you do not import jquery. Please let me know if you have any questions.
The test I included runs on my windows iis server. You can copy / paste the content as well to duplicate the error with a safari 5.0.5 browser.
comment:4 follow-up: 5 Changed 11 years ago by
Sorry, but I am not clear. The problem goes away when you include jQuery but you are leaving jQuery Mobile? That wouldn't make sense, jQuery Mobile depends on jQuery.
comment:5 Changed 11 years ago by
Replying to dmethvin:
Sorry, but I am not clear. The problem goes away when you include jQuery but you are leaving jQuery Mobile? That wouldn't make sense, jQuery Mobile depends on jQuery.
If I remove the following two lines the problem goes away:
<script type="text/javascript" src="/jsincludes/jquery/jquery-1.6.2.js" language="javascript"></script>
<script type="text/javascript" src="/jsincludes/jquery/1.0b2/jquery.mobile-1.0b2.js" language="javascript"></script>
Not sure how I can be more clear. I have a simple .xhtml file with nothing but lines that include Jquery. The page blows up when it is rendered:
jquery-1.6.2.js:6111 NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7: An attempt was made to modify an object where modifications are not allowed. in safari.
which is line div.innerHTML = wrap[1] + elem + wrap[2]; in the jquery-1.6.2.js
Have you tried to recreate the problem?
Please call me at 407-444-7338 if I am still not clear.
Jeff LaFrate
comment:6 Changed 11 years ago by
To recreate:
Save Somepage.xhtml to a directory on a IIS / windows machine: Navigate to http://localhost/somepage.xhtml in Safari. It will blow up.
comment:7 Changed 11 years ago by
Component: | unfiled → misc |
---|---|
Priority: | undecided → low |
It is probably best not to post phone numbers or email addresses on the bug tracker as it is not secure. Posting replies here is enough. Is there a test page on a public server that you can post?
comment:8 Changed 11 years ago by
Go here:
http://certc.national.aaa.com/AAA/somepage.xhtml vs http://certc.national.aaa.com/AAA/somepage.html
In safari...look at your error console. to see error when you try to render the xhtml version.
comment:10 Changed 11 years ago by
Resolution: | → invalid |
---|---|
Status: | pending → closed |
Somepage.xhtml:
<!DOCTYPE html PUBLIC "-W3CDTD XHTML 1.0 TransitionalEN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > <html xmlns="http://www.w3.org/1999/xhtml" xmlns:trav="http://www.aaa.com/jsf/facelets/travel" xmlns:spry="http://ns.adobe.com/spry">
</body> </html>