Skip to main content

Bug Tracker

Side navigation

#10139 closed bug (invalid)

Opened August 25, 2011 09:18PM UTC

Closed September 22, 2011 03:49AM UTC

NO_MODIFICATION_ALLOWED_ERR .xhtml on safari

Reported by: jlafrate@national.aaa.com Owned by: jlafrate@national.aaa.com
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@national.aaa.com

Attachments (0)
Change History (10)

Changed August 25, 2011 09:19PM UTC by anonymous comment:1

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>

Changed August 25, 2011 09:47PM UTC by dmethvin comment:2

owner: → jlafrate@national.aaa.com
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.)

Changed August 26, 2011 01:13AM UTC by anonymous comment:3

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.

Changed August 27, 2011 08:35PM UTC by dmethvin comment:4

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.

Changed August 29, 2011 02:22PM UTC by anonymous comment:5

Replying to [comment:4 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

Changed August 29, 2011 02:25PM UTC by anonymous comment:6

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.

Changed August 29, 2011 08:14PM UTC by timmywil comment:7

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?

Changed August 29, 2011 08:26PM UTC by anonymous comment:8

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.

Changed September 08, 2011 05:05PM UTC by anonymous comment:9

This issue does not occur in the new safari 5.1 browser

Changed September 22, 2011 03:49AM UTC by dmethvin comment:10

resolution: → invalid
status: pendingclosed