Using:

    $("area").tooltip({
        delay: 0,
        fade: 250,
        bodyHandler: function() {
            var content = $(this).attr("title");
            console.log(content);
            return $("<p>").html(content);
        }
    });


console logs empty returns and the tooltip is empty. Note that this is
an issue with the "attr" method, not "tooltip". If I set "content"
equal to attr("shape") or attr("name"), name attribute supplied, the
method works fine. Why would the title attribute return nothing on an
element that returns all other attributes normally? Here's an example
<area> that returns all non-title attributes:

    <area title="AL" shape="poly" coords="omitted for brevity"
name="Alabama"></area>

Ideas? Why would only "title" fail to return?

Reply via email to