Bug Tracker

Opened 8 years ago

Closed 8 years ago

#10139 closed bug (invalid)

NO_MODIFICATION_ALLOWED_ERR .xhtml on safari

Reported by: jlafrate@… Owned by: jlafrate@…
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 jlafrate@…

Change History (10)

comment:1 Changed 8 years ago by anonymous

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">

<head>

<title>somepage </title> <meta name="DESCRIPTION" content="ebooks_metaDescription" /><meta content="All rights reserved." name="copyright" />

<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>

</head> <body>

</body> </html>

comment:2 Changed 8 years ago by dmethvin

Owner: set to jlafrate@…
Status: newpending

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 8 years ago by anonymous

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 Changed 8 years ago by 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.

comment:5 in reply to:  4 Changed 8 years ago by anonymous

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 8 years ago by anonymous

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 8 years ago by timmywil

Component: unfiledmisc
Priority: undecidedlow

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 8 years ago by anonymous

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:9 Changed 8 years ago by anonymous

This issue does not occur in the new safari 5.1 browser

comment:10 Changed 8 years ago by dmethvin

Resolution: invalid
Status: pendingclosed
Note: See TracTickets for help on using tickets.