Permalink
Commits on Jul 4, 2011
  1. Annotator release v1.0.0rc4

    aron committed Jul 4, 2011
  2. Fixed a bug in the Tag filter when annotations had no tags.

    aron committed Jul 4, 2011
    Moved filter callback into class method on the Tags object and added
    unit tests
  3. Updated the background colour of the Editor controls to match the cal…

    aron committed Jul 4, 2011
    …lout
    
    This only affects browsers that don't yet support CSS gradients
  4. Changed offset of Filter plugin to use padding not margin. Ticket #2.

    aron committed Jul 4, 2011
    Using margin top on the HTML element seems to throw out the positions on
    the mouse event object that are used to position elements.
  5. Fixed an issue with jQuery.fn.textNodes() not working in IE9. Ticket #2

    aron committed Jul 4, 2011
    This issue seems to have bee caused by an issue with IE9's implementation
    of Text.splitText() that did not update the parents .childNodes property.
    This meant that jQuery.fn.contents() was returning the incorrect results.
    jQuery.fn.textNodes() now manually traverses an elements children in order
    to work around this issue.
Commits on Jul 1, 2011
  1. Now unbinding events bound to document after each test has run

    aron committed Jul 1, 2011
    This prevents the mousedown listeners firing after the annotator has been
    destroyed. Ideally we should create a destroy method on the annotator to
    clean up after itself.
  2. Now passing strings into document.createTextNode()

    aron committed Jul 1, 2011
    The argument is not optional in Internet Explorer 9.
  3. Fixed an IE issue with passing arguments to setTimeout()

    aron committed Jul 1, 2011
    Internet Explorer does not support the passing of default arguments into
    the setTimeout() function. Instead use jQuery.proxy() to maintain scope.
  4. Updated jQuery to 1.6.1 to fix an issue in Internet Explorer 9

    aron committed Jul 1, 2011
    jQuery > 1.5.1 contain the necessary fix. Also updated some of the tests
    to use the new .prop() method in place of .attr().
Commits on Jun 30, 2011
  1. Added options argument to Annotator::setupPlugins(). Ticket #46

    aron committed Jun 30, 2011
    This allows the user to further customise or exclude the defaults
Commits on Jun 29, 2011
  1. Bookmarklet now removes globals if they were not present before. Fixes

    aron committed Jun 29, 2011
    …#60
    
    Previously if jQuery or the Annotator were not present in the page loading
    the bookmarklet would leave them on the window object with a value of
    undefined. We now remove the properties if nessecary.
  2. Added matcher for jQuery.fn.escape() to match '"' and '"'

    aron committed Jun 29, 2011
    In the browser innerHTML returns " and JSDOM returns " so for now we
    use a regular expression to match both.
  3. Fixed the loadTests callback in the browser runner

    aron committed Jun 29, 2011
     * Adding cache buster to all script requests
     * Including all plugins by default
  4. Now loading in annotator source using script tags to help debugging

    aron committed Jun 29, 2011
    Previously the annotator source was loaded in using $.getScript() but
    this removes the script tags after load which means they can't be viewed
    in the developer tools.
  5. Now using .triggerHandler() to publish custom events. Fixes #61

    aron committed Jun 29, 2011
    Unlike .trigger(), .triggerHandler() does not bubble up the DOM. This
    fixes an issue where the Editor.load() method caused window.onload to be
    called.
Commits on Jun 28, 2011
  1. Annotator can now de serialise annotation in XML documents. Fixes #54

    aron committed Jun 28, 2011
    Previously the annotator failed to parse the XPaths stored on the
    annotations when loaded into an XHTML document served as
    application/xhtml+xml. We now check to see if the current document is an
    XML one and if it is try to resolve any namespaced elements first by using
    a namespace resolver created with document.createNSResolver() then falling
    back to a cruder method of defining a custom resolver and appending a
    custom namespace to all nodes.
    
    Also added a dev.xhtml file for specifically testing the injection of
    annotations into an XHTML document. This can be removed once we have a
    working browser test runner.
Commits on Jun 27, 2011
  1. Fixing closing div in Annotator.Editor. Fixes #54

    aron committed Jun 27, 2011
    The closing div tag of the Editor element did not have a properly formatted
    closing tag. This invalid XML caused a DOM exception to be thrown when
    inserting the Annotator into an XHTML document.