Bug Tracker

Opened 10 years ago

Closed 10 years ago

#5836 closed bug (worksforme)

1.4 throws exception when selecting custom tag in IE

Reported by: mike_t2e Owned by:
Priority: major Milestone: 1.4.1
Component: selector Version: 1.4
Keywords: Cc:
Blocked by: Blocking:

Description

I've an HTML page with custom tags in it that I need to get the .html() of. The following works in IE using 1.3.2, but in 1.4 gives a "Exception thrown and not caught" error. Using the 1.3 compat file doesn't make a difference either.

(If there's a better way to do what I'm trying to do please feel free to let me know!)

<!DOCTYPE HTML internal "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns:mycustomtag="">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script language="javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script language="javascript">
$(document).ready(function() {
alert($("default//:mycustomtag").html());							
});
</script>
</head>
<body>
<mycustomtag:default>custom tag</mycustomtag:default>
</body>
</html>

Change History (1)

comment:1 Changed 10 years ago by dmethvin

Component: unfiledselector
Resolution: worksforme
Status: newclosed

If the selector is "mycustomtag
:default", which is what I think you meant, it works.

Note: See TracTickets for help on using tickets.