Skip to main content

Bug Tracker

Side navigation

#1266 closed bug (fixed)

Opened June 03, 2007 05:20AM UTC

Closed June 15, 2007 06:01AM UTC

Last modified June 21, 2007 03:47AM UTC

$(object).show turns a line level element into a block level element :(

Reported by: vishaldpatel Owned by:
Priority: major Milestone: 1.1.3
Component: ajax Version: 1.1.2
Keywords: Cc:
Blocked by: Blocking:
Description

<!DOCTYPE html PUBLIC "-W3CDTD XHTML 1.0 StrictEN" "http:www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>

<title>UTF-8 Test</title>

<script type="text/javascript" src="jquery-latest.js"></script>

<script type="text/javascript">

$(document).ready(

function(){

thanks("this is a car", true);

// On click functions for links.

$("a").click(function(){

var expected = thanks("we will disappear now...", true);

$(this).addClass("highlight");

$(this).hide('slow');

return false;

}

);

$("p").click(function(){

thanks("you clicked a p link", true);

$("a").show("slow");

return true;

}

);

}

);

function thanks(message, return_message)

{

alert("alert: " + message);

return return_message;

}

</script>

<style type='text/css'>

.highlight {

background-color: yellow;

}

</style>

</head>

<body>

<a href="http://jquery.com" style="display: inline">JQuery</a>

<a>This is a local anchor</a>

<p>Lorem ipsum delorem something something</p>

</body>

</html>

Attachments (0)
Change History (1)

Changed June 15, 2007 06:01AM UTC by brandon comment:1

resolution: → fixed
status: newclosed

This is fixed in 1.1.3a (latest SVN)